Add CMake configuration
This commit is contained in:
parent
3dfa39bffb
commit
8d11d25bf5
1 changed files with 27 additions and 0 deletions
|
@ -1241,6 +1241,33 @@ Computing Environment".
|
||||||
(add-hook 'html-mode-hook 'electric-pair-local-mode)
|
(add-hook 'html-mode-hook 'electric-pair-local-mode)
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
|
** CMake mode
|
||||||
|
:PROPERTIES:
|
||||||
|
:header-args: :tangle "init/oni-cmake-init.el"
|
||||||
|
:END:
|
||||||
|
|
||||||
|
#+BEGIN_SRC emacs-lisp :tangle yes
|
||||||
|
(with-eval-after-load 'cmake-mode (load "oni-cmake-init"))
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
|
Turn on extra font locking for function arguments etc.
|
||||||
|
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(add-hook 'cmake-mode-hook 'cmake-font-lock-activate)
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
|
Enable company mode for completions.
|
||||||
|
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(add-hook 'cmake-mode-hook 'company-mode)
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
|
Enable electric pairing.
|
||||||
|
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(add-hook 'cmake-mode-hook 'electric-pair-local-mode)
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
* Applications
|
* Applications
|
||||||
|
|
||||||
- [[file:init/dired-init.org][Dired]] :: The Emacs file manager. Very powerful, and I don't use it
|
- [[file:init/dired-init.org][Dired]] :: The Emacs file manager. Very powerful, and I don't use it
|
||||||
|
|
Loading…
Reference in a new issue