From 8d11d25bf5944d551e855f6b1bf142bcf6d26a73 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sun, 6 May 2018 23:23:01 -0700 Subject: Add CMake configuration --- emacs/.emacs.d/init.org | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org index fde7e4c..cb1420a 100644 --- a/emacs/.emacs.d/init.org +++ b/emacs/.emacs.d/init.org @@ -1241,6 +1241,33 @@ Computing Environment". (add-hook 'html-mode-hook 'electric-pair-local-mode) #+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 - [[file:init/dired-init.org][Dired]] :: The Emacs file manager. Very powerful, and I don't use it -- cgit v1.2.3-54-g00ecf