How to Link Hungry Removal for Clojure in Emacs

I just started experimenting with Clojure, and it pushes me to the fact that I cannot use c-hungry-delete-backwards, because clojure-mode is not based on cc mode. In other words, I want C-backspace Cc to remove all spaces to the left of the cursor until it is removed without spaces.

How can I do a starvation removal or equivalent operation with Clojure + emacs? Now I do not use spike or mucus.

+4
source share
1 answer

In my .emacs file at home I use:

(load "cc-mode") (global-set-key (kbd "C-<delete>") 'c-hungry-delete-forward) (global-set-key (kbd "C-<backspace>") 'c-hungry-delete-backwards) 

Which gives me hungry to delete everywhere.

On the other hand, at work I installed the hungry-delete package from package.el, which provides hungry-delete as a secondary mode, which you can add to your clojure mode hook.

+4
source

Source: https://habr.com/ru/post/1340375/


All Articles