From b5fccd8fa317a5bf02bab8b6644a700b470ce824 Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Thu, 19 May 2022 22:07:06 -0400 Subject: 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. --- .emacs.d/init.el | 6 ++++++ 1 file changed, 6 insertions(+) (limited to '.emacs.d/init.el') 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 -- cgit v1.2.3-60-g2f50