[Emacs] Automatic StumpWM mode for lisp-mode

This commit is contained in:
Lucien Cartier-Tilet 2021-11-22 11:19:53 +01:00
parent 9c70c0c172
commit d6db34736d
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA
1 changed files with 7 additions and 0 deletions

View File

@ -4946,10 +4946,17 @@ In lisp buffers, lets enable ~parinfer-rust-mode~.
(add-hook 'lisp-mode-hook #'parinfer-rust-mode)
#+end_src
My current window manager is StumpWM, inspired by Emacs and written in
CommonLisp. ~stumpwm-mode~ offers some integration between Emacs and
StumpWM so we can evaluate CLisp code and see its effects in StumpWM
immediately. Since my only use for CommonLisp is for my StumpWM
configuration, it should be automatically enabled when entering
~lisp-mode~.
#+begin_src emacs-lisp
(use-package stumpwm-mode
:straight (:build t)
:defer t
:hook lisp-mode
:config
(phundrak/major-leader-key
:keymaps 'stumpwm-mode-map