diff --git a/configuration.org b/configuration.org index 395094f..ec2bd97 100644 --- a/configuration.org +++ b/configuration.org @@ -1191,14 +1191,16 @@ Because I’m a sysadmin, too. ~whitespace-mode~ is turned on by default, and can be toggled with ~F10~. #+BEGIN_SRC emacs-lisp -(defun prevent-whitespace-mode-for-magit () - "Prevent whitespace-mode from running in magit derived modes." - (not (derived-mode-p 'magit-mode))) +(defun prevent-whitespace-mode-for-some () + "Prevent whitespace-mode from running in some modes." + (and + (not (derived-mode-p 'magit-mode)) + (not (derived-mode-p 'org-mode)))) (use-package whitespace :demand :config - (add-function :before-while whitespace-enable-predicate 'prevent-whitespace-mode-for-magit) + (add-function :before-while whitespace-enable-predicate 'prevent-whitespace-mode-for-some) (global-whitespace-mode 1) (setq whitespace-line-column 100) :bind