Source: [2021-08-28 Sat], hlissner/doom-emacs#5243 fill-column indicator module is no longer working af…
display-fill-column-indicator is built into Emacs 27.1+. To activate it add (add-hook ‘doom-first-buffer-hook #’global-display-fill-column-indicator-mode) to your config, or (add-hook! (prog-mode conf-mode text-mode) #’display-fill-column-indicator-mode) – whichever you prefer.
(if (< (rand) 0.5) '(add-hook 'doom-first-buffer-hook #'global-display-fill-column-indicator-mode) '(add-hook! (prog-mode conf-mode text-mode) #'display-fill-column-indicator-mode))
key | command | previous |
---|---|---|
C-j | next-line | nil |
C-k | previous-line | nil |
C-w | doom/delete-backward-word | |
C-y | repeats-char-on-last-line | |
M-y | popup-kill-ring-window | |
M-d | Kill word |
Smartparens - v highlight text then M-( also applied to ” “” [] {}
Navigate to get inside the parentheses, then y/v/c/d i ([{‘” or }])
(C-x TAB) control indent with h l H L
(C-x TAB) control indent with h l H L
- f: find char in the row
- F: backward find
- t: place cursor before target char in the row
- T: t backward
- s: find 2char in the row
- S: s backward
- Avy can navigate to word on another line, paragraph or window(have to enable avy-all-window var)
- Avy can process any command on the target word (just navigate if no command given)
- x: delete and move cursor command
- X: delete but stay in place command
- y: yank(copy) and paste word to the current position
- Y: yank(copy) and paste string from word to the EOL to the current position
- t: teleport(move) word to the current position
- T: teleport(move) string from word to the EOL to the current position
- M-d: highlight the next occurrence of current word/highlight(v) with new cursor
- M-D: highlight the previous occurrence of current word/highlight(v) with new cursor
- R: highlight all occurrences of the highlight(v) string with new cursors.
- C-n: navigate to the next occurrence
- C-p: navigate to the previous..
- Enter: include/exclude the occurrence
- beware of editing out of the boundaries, for example by delete the last word with ‘d w’ but all the cursors doesn’t cover highlights with spaces at the end of the last word which will not have the same result as the editing one.