summaryrefslogtreecommitdiff
path: root/dot_config/emacs/lisp/editing-config.el
blob: 3df8a99b24016b95014559986d2b68874f688168 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
(use-package expreg
  :bind
  ("C-=" . expreg-expand)
  :config
  (defvar expreg-repeat-map
    (let ((map (make-sparse-keymap)))
      (define-key map "=" #'expreg-expand)
      (define-key map "-" #'expreg-contract)
      map))
  (put 'expreg-expand 'repeat-map 'expreg-repeat-map)
  (put 'expreg-contract 'repeat-map 'expreg-repeat-map))

(use-package surround
  :ensure t
  :bind-keymap ("M-'" . surround-keymap))

(use-package easy-kill
  :config
  (global-set-key [remap kill-ring-save] 'easy-kill)
  (global-set-key [remap mark-sexp] 'easy-mark))

(use-package devil
  :config
  (global-devil-mode 1))

(use-package ace-window
  :config
  (global-set-key (kbd "s-w") 'ace-window)
  (global-set-key [remap other-window] 'ace-window))

(use-package vundo
  :bind (("C-x u" . vundo)))

(use-package multiple-cursors
  :ensure t
  :bind (("C-c g" . mc/mark-all-dwim)
         ("C->"         . mc/mark-next-like-this)
         ("C-<"         . mc/mark-previous-like-this)
         ("M-<mouse-1>" . mc/add-cursor-on-click)))

(provide 'editing-config)