diff --git a/init.el b/init.el index d2432a2..6f7c911 100644 --- a/init.el +++ b/init.el @@ -1,5 +1,5 @@ ;;; init.el --- tastytea's Emacs init file. -;; Time-stamp: <2019-07-29T13:00:38+00:00> +;; Time-stamp: <2019-08-01T18:47:22+00:00> ;;; Commentary: ;; I am using this file with Emacs 26, but most of it will probably work with @@ -422,7 +422,32 @@ With argument, do this that many times." (cmake-ide-cmake-opts "") ; Use the already configured options. :config (cmake-ide-setup)) -) ; unless slow-computer + ) ; unless slow-computer + + +;; Highlighting and indentation for CMake. +(use-package cmake-mode + ;; The CMake ebuild installs the mode. + :unless (string-match-p "gentoo" operating-system-release) + :mode + ("CMakeLists\\.txt\\'" . cmake-mode) + ("\\.cmake\\'" . cmake-mode) + ) + +;; ;; Doesn't work, find bug later. +;; ;; Advanced highlighting for CMake. +;; (use-package cmake-font-lock +;; :after cmake-mode +;; :hook +;; (cmake-mode . 'cmake-font-lock-activate) +;; ) + +;; CMake reference. +(use-package eldoc-cmake + :after cmake-mode + :hook + (cmake-mode . eldoc-cmake-enable) + ) ;; GUI for gdb and other debuggers. (use-package realgud