rainbow-mode destroys org-agenda-mode highlighting. this fixes it by removing rainbow-mode from org-agenda-mode.

This commit is contained in:
Tim Hansinger
2022-07-06 09:08:56 +00:00
parent 5e87727620
commit 5c58c64d66

View File

@@ -1127,11 +1127,14 @@ Perspective provides multiple named workspaces (or "perspectives") in Emacs, sim
#+end_src
* RAINBOW MODE
Rainbox mode displays the actual color for any hex value color. It's such a nice feature that I wanted it turned on all the time, regardless of what mode I am in. The following creates a global minor mode for rainbow-mode and enables it.
Rainbox mode displays the actual color for any hex value color. It's such a nice feature that I wanted it turned on all the time, regardless of what mode I am in. The following creates a global minor mode for rainbow-mode and enables it (exception: org-agenda-mode since rainbow-mode destroys all highlighting in org-agenda).
#+begin_src emacs-lisp
(define-globalized-minor-mode global-rainbow-mode rainbow-mode
(lambda () (rainbow-mode 1)))
(lambda ()
(when (not (memq major-mode
(list 'org-agenda-mode)))
(rainbow-mode 1))))
(global-rainbow-mode 1 )
#+end_src