Emacs
Splitting windows
C-x 2
: split into two windows, one above the otherC-x 3
: split into two windows, side by sideC-x o
: switch to other buffer in window split
(Spacemacs only) Required package request-0.1.0
is unavailable
see issue #4642
M-x list-packages
- search and install
request
- restart emacs
M-m f e R
(for ‘evil’:SPC f e R
)
Duplicate current line
(defun duplicate-line()
(interactive)
(move-beginning-of-line 1)
(kill-line)
(yank)
(open-line 1)
(next-line 1)
(yank)
)
(global-set-key (kbd "C-c d") 'duplicate-line)
Delete entire current line
(global-set-key (kbd "C-c f") 'kill-whole-line)
Mac command key work as expected again (Mac)
(setq mac-option-modifier 'nil)
(setq mac-right-option-modifier 'nil)
(mac-auto-operator-composition-mode)