diff options
| author | Sakamoto <me@sakamoto.network> | 2026-08-16 15:34:00 -0500 |
|---|---|---|
| committer | Sakamoto <me@sakamoto.network> | 2026-08-16 15:34:00 -0500 |
| commit | d51beea88d300cb5066bb92a8148cad52fa1091d (patch) | |
| tree | 4357b4958c19dddd304a0d6ee77994fb9f12c118 /dot_config/emacs/lisp/editing-config.el | |
| parent | a623fed63460d6d810605ce1ce858a58a5b222f7 (diff) | |
| download | dotfiles-d51beea88d300cb5066bb92a8148cad52fa1091d.tar.xz dotfiles-d51beea88d300cb5066bb92a8148cad52fa1091d.zip | |
update
Diffstat (limited to 'dot_config/emacs/lisp/editing-config.el')
| -rw-r--r-- | dot_config/emacs/lisp/editing-config.el | 41 |
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) |
