Simplify "lst:configure-ws-butler"

This commit is contained in:
Gerard Vermeulen 2024-06-12 16:54:43 +02:00
parent 7c0c2e591a
commit cbf7ce9d9e

View File

@ -5657,8 +5657,7 @@ setup and requires no configuration.
#+caption: Configure =ws-butler=.
#+name: lst:configure-ws-butler
#+begin_src emacs-lisp -n :results silent
(when (and (ensure-package-installation 'ws-butler)
(fboundp 'ws-butler-mode))
(when (ensure-package-installation 'ws-butler)
(setopt ws-butler-keep-whitespace-before-point nil)
(add-hook 'prog-mode-hook #'ws-butler-mode)
(add-hook 'text-mode-hook #'ws-butler-mode))