From c92918cf539380e172e186515a3a9310f87130db Mon Sep 17 00:00:00 2001 From: David Morgan Date: Tue, 1 Nov 2022 16:28:16 +0000 Subject: Make easy-kill behave like expand-region --- .emacs.d/lisp/init-editor.el | 3 --- .emacs.d/lisp/init-kill.el | 4 +++- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to '.emacs.d/lisp') 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 -- cgit 1.4.1-2-gfad0