From a4792ef643a21b7bdb689a3b841c410df73f74c4 Mon Sep 17 00:00:00 2001 From: Thomas von Dein Date: Fri, 16 Jun 2023 09:07:04 +0200 Subject: [PATCH] added hungry-delete --- lisp/init-textmanipulation.el | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lisp/init-textmanipulation.el b/lisp/init-textmanipulation.el index 017a744..58302f4 100644 --- a/lisp/init-textmanipulation.el +++ b/lisp/init-textmanipulation.el @@ -284,6 +284,13 @@ in between will be killed. If INS is non-nil, it will be inserted then." (add-hook 'fundamental-mode-hook (lambda () (electric-indent-local-mode -1))) +(use-package hungry-delete + :config + (global-hungry-delete-mode) + (setq hungry-delete-join-reluctantly t) + ;; I use 'backward-delete-char, so I've got to remap it as well + (if (fboundp 'backward-delete-char) + (define-key hungry-delete-mode-map [remap backward-delete-char] 'hungry-delete-backward))) (provide 'init-textmanipulation) ;;; init-textmanipulation.el ends here