Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/soutaro/hungry-delete.el
Delete following / preceeding white spaces
https://github.com/soutaro/hungry-delete.el
Last synced: 22 days 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 (over 13 years ago)
- Default Branch: master
- Last Pushed: 2014-08-21T03:41:17.000Z (about 10 years ago)
- Last Synced: 2024-05-01T23:25:49.087Z (6 months ago)
- Language: Emacs Lisp
- Homepage:
- Size: 135 KB
- Stars: 15
- Watchers: 5
- 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.