diff options
author | David Morgan <djm_uk@protonmail.com> | 2022-11-01 16:28:16 +0000 |
---|---|---|
committer | David Morgan <djm_uk@protonmail.com> | 2022-11-01 16:28:16 +0000 |
commit | c92918cf539380e172e186515a3a9310f87130db (patch) | |
tree | e7de6d8b9ea67578345cec5f191c471bb48a948b /.emacs.d/lisp | |
parent | aba1ab31911602127f7e5ae54fa9f8e7b9582c2d (diff) | |
download | dotfiles-c92918cf539380e172e186515a3a9310f87130db.tar.gz |
Make easy-kill behave like expand-region
Diffstat (limited to '.emacs.d/lisp')
-rw-r--r-- | .emacs.d/lisp/init-editor.el | 3 | ||||
-rw-r--r-- | .emacs.d/lisp/init-kill.el | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/.emacs.d/lisp/init-editor.el b/.emacs.d/lisp/init-editor.el index 951b696..eef354c 100644 --- a/.emacs.d/lisp/init-editor.el +++ b/.emacs.d/lisp/init-editor.el @@ -106,9 +106,6 @@ ; (text-mode . (lambda () (flyspell-mode +1))) ; (prog-mode . (lambda () (flyspell-prog-mode)))) -(use-package expand-region - :bind ("C-=" . er/expand-region)) - (use-package bookmark :custom (bookmark-default-file (expand-file-name "bookmarks" save-dir)) diff --git a/.emacs.d/lisp/init-kill.el b/.emacs.d/lisp/init-kill.el index 917ef19..f442fda 100644 --- a/.emacs.d/lisp/init-kill.el +++ b/.emacs.d/lisp/init-kill.el @@ -11,7 +11,9 @@ (use-package easy-kill :bind ([remap kill-ring-save] . easy-kill) - ("C-M-S-SPC" . easy-mark)) + ;; emulate expand-region + ("C-=" . easy-mark) + (:map easy-kill-base-map ("C-=" . easy-kill-expand))) (use-package emacs :hook |