added hungry-delete

This commit is contained in:
2023-06-16 09:07:04 +02:00
parent 6493158355
commit a4792ef643

View File

@@ -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