summaryrefslogtreecommitdiff
path: root/dot_config/emacs/lisp/editing-config.el
diff options
context:
space:
mode:
Diffstat (limited to 'dot_config/emacs/lisp/editing-config.el')
-rw-r--r--dot_config/emacs/lisp/editing-config.el41
1 files changed, 41 insertions, 0 deletions
diff --git a/dot_config/emacs/lisp/editing-config.el b/dot_config/emacs/lisp/editing-config.el
new file mode 100644
index 0000000..3df8a99
--- /dev/null
+++ b/dot_config/emacs/lisp/editing-config.el
@@ -0,0 +1,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)