https://github.com/soutaro/hungry-delete.el
Delete following / preceeding white spaces
https://github.com/soutaro/hungry-delete.el
Last synced: 3 months ago
JSON representation
Delete following / preceeding white spaces
- Host: GitHub
- URL: https://github.com/soutaro/hungry-delete.el
- Owner: soutaro
- Created: 2011-05-18T03:07:19.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2014-08-21T03:41:17.000Z (almost 11 years ago)
- Last Synced: 2025-03-24T10:30:39.907Z (4 months ago)
- Language: Emacs Lisp
- Homepage:
- Size: 135 KB
- Stars: 15
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.textile
Awesome Lists containing this project
README
h1. 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.
h2. 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)h1. Copying notice
Written by Soutaro Matsumoto.
Distributed under MIT License.