diff options
author | 2022-05-19 22:07:06 -0400 | |
---|---|---|
committer | 2022-05-19 22:20:05 -0400 | |
commit | b5fccd8fa317a5bf02bab8b6644a700b470ce824 (patch) | |
tree | d3caabc919510bbd78b4c01073e176ba925377ad /.emacs.d/init.el | |
parent | 22758e8c9214f2086fe0c0a424c993f0a52a5780 (diff) | |
download | configs-b5fccd8fa317a5bf02bab8b6644a700b470ce824.tar.gz configs-b5fccd8fa317a5bf02bab8b6644a700b470ce824.tar.xz configs-b5fccd8fa317a5bf02bab8b6644a700b470ce824.zip |
Import cmake-mode.el and add cmake-font-lock submodule
* .emacs.d/init.el: require cmake-mode and cmake-font-lock.
* .emacs.d/lisp/cmake-mode.el: Import from upstream cmake repo as of
https://gitlab.kitware.com/cmake/cmake/-/blob/9daa244e9904e3d80afa149c927a01413e2a6cd0/Auxiliary/cmake-mode.el
into .emacs.d/lisp/ under the 3-clause BSD license.
Diffstat (limited to '.emacs.d/init.el')
-rw-r--r-- | .emacs.d/init.el | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 11e4fb2..e8be641 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -786,6 +786,12 @@ Effectively a very simple light/dark theme toggle switch." (add-hook 'tex-mode-hook #'auto-fill-mode) (add-hook 'tex-mode-hook #'flyspell-mode) +(run-with-idle-timer 0.5 nil #'require 'cmake-mode) +(with-eval-after-load 'cmake-mode + (setq cmake-tab-width 4) + (add-to-list 'load-path (b/lisp "cmake-font-lock")) + (run-with-idle-timer 0.5 nil #'require 'cmake-font-lock)) + ;;; Emacs enhancements & auxiliary packages |