summaryrefslogtreecommitdiff
path: root/.config/emacs/archive/if_i_use_emacs_keybinds.el
blob: 647b7bc3386eea22a9e5740b1dcc1f64d061e174 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
;; mwim
(use-package mwim
  :bind (("C-a" . mwim-beginning)
		 ("C-e" . mwim-end-of-line)))

;; expand keybind
(use-package expand-region
  :bind("C-=" . er/expand-region))

;; multiple cursors
(use-package multiple-cursors
  :bind (:map global-map
			  ("C->" . 'mc/mark-next-like-this)
			  ("C-<" . 'mc/mark-previous-like-this)
			  ("C-c C->" . 'mc/mark-all-like-this)
			  :map mc/keymap
			  ("<return>" . nil)))

;; delete marked text when typing start
(use-package delsel
  :ensure nil
  :hook (after-init . delete-selection-mode))