Splitting windows

  • C-x 2: split into two windows, one above the other
  • C-x 3: split into two windows, side by side
  • C-x o: switch to other buffer in window split

(Spacemacs only) Required package request-0.1.0 is unavailable

see issue #4642

  1. M-x list-packages
  2. search and install request
  3. 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)