From 5df9dda658d2c20d1e6facf679ac5e968d69f4a4 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Wed, 4 Sep 2019 11:17:49 +0200 Subject: emacs.d: added a hook for lisp-mode MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Quite similar to what I'm doing in emacs-lisp. Signed-off-by: Miquel Sabaté Solà --- .emacs.d/init.org | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.emacs.d/init.org b/.emacs.d/init.org index 74fc18f..13298c0 100644 --- a/.emacs.d/init.org +++ b/.emacs.d/init.org @@ -1938,6 +1938,16 @@ Configure =ielm= with the proper ELisp utilities: (global-set-key (kbd "C-x i l") 'ielm)) #+END_SRC +Add =rainbow-delimiters= and =warnings-mode-hook= also for =lisp-mode=: + +#+BEGIN_SRC elisp +(add-hook 'lisp-mode-hook + (lambda () + (warnings-mode-hook) + (rainbow-delimiters-mode 1) + (setq mode-name "λ"))) +#+END_SRC + ** C and C++ C and C++ only require the =warnings-mode-hook= function, spell checking for the -- cgit v1.2.3