Skip to content

soutaro/hungry-delete.el

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

hungry-delete.el

Using soft-tab seems to be a good practice for programming. However, you provably find that you got frustrated with typing delete/backspace keys many times. This is a solution for that.

Using hungry-delete, one hit of delete-key eats the following white spaces and new lines, or just delete one character. One hit of backspace-key eats the preceding white spaces, or just delete one character.

Installation

Configure your load-path and just require hungry-delete.


(require 'hungry-delete)

Call add-hooks to enable hungry-delete in specific modes.


(add-hook 'tuareg-mode-hook #'(lambda () (hungry-keyboard tuareg-mode-map)))
(add-hook 'ruby-mode-hook #'(lambda () (hungry-keyboard ruby-mode-map)))

Or, you can enable it in global (not recommended).


(hungry-keyboard global-map)

Copying notice

Written by Soutaro Matsumoto.

Distributed under MIT License.

About

Delete following / preceeding white spaces

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published