mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-04-24 03:50:24 +10:00
Merge branch 'timhansinger-master-patch-19881' into 'master'
rainbow-mode destroys org-agenda-mode highlighting. this fixes it by removing... See merge request dwt1/dotfiles!65
This commit is contained in:
@@ -1127,11 +1127,14 @@ Perspective provides multiple named workspaces (or "perspectives") in Emacs, sim
|
|||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
* RAINBOW MODE
|
* 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
|
#+begin_src emacs-lisp
|
||||||
(define-globalized-minor-mode global-rainbow-mode rainbow-mode
|
(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 )
|
(global-rainbow-mode 1 )
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user