diff --git a/.config/doom/config.el b/.config/doom/config.el index f897d8d..f73f52c 100644 --- a/.config/doom/config.el +++ b/.config/doom/config.el @@ -404,6 +404,10 @@ List of keybindings (SPC h b b)") :desc "Add a buffer current perspective" "+" #'persp-add-buffer :desc "Remove perspective by name" "-" #'persp-remove-by-name) +(define-globalized-minor-mode global-rainbow-mode rainbow-mode + (lambda () (rainbow-mode 1))) +(global-rainbow-mode 1 ) + (map! :leader (:prefix ("r" . "registers") :desc "Copy to register" "c" #'copy-to-register diff --git a/.config/doom/config.org b/.config/doom/config.org index d683978..4f6a4d7 100644 --- a/.config/doom/config.org +++ b/.config/doom/config.org @@ -43,6 +43,7 @@ - [[#org-roam][Org-roam]] - [[#password-store][PASSWORD STORE]] - [[#perspective][PERSPECTIVE]] +- [[#rainbow-mode][RAINBOW MODE]] - [[#registers][REGISTERS]] - [[#shells][SHELLS]] - [[#splits][SPLITS]] @@ -790,6 +791,15 @@ Perspective provides multiple named workspaces (or "perspectives") in Emacs, sim :desc "Remove perspective by name" "-" #'persp-remove-by-name) #+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. + +#+begin_src emacs-lisp +(define-globalized-minor-mode global-rainbow-mode rainbow-mode + (lambda () (rainbow-mode 1))) +(global-rainbow-mode 1 ) +#+end_src + * REGISTERS Emacs registers are compartments where you can save text, rectangles and positions for later use. Once you save text or a rectangle in a register, you can copy it into the buffer once or many times; once you save a position in a register, you can jump back to that position once or many times. The default GNU Emacs keybindings for these commands (with the exception of counsel-register) involves 'C-x r' followed by one or more other keys. I wanted to make this a little more user friendly, and since I am using Doom Emacs, I choose to replace the 'C-x r' part of the key chords with 'SPC r'.