mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-04-14 12:48:29 +10:00
Adding rainbow mode to config
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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'.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user