https://github.com/zk-phi/electric-align
Insert a certain amout of spaces at once to easily align columns
https://github.com/zk-phi/electric-align
emacs
Last synced: 10 months ago
JSON representation
Insert a certain amout of spaces at once to easily align columns
- Host: GitHub
- URL: https://github.com/zk-phi/electric-align
- Owner: zk-phi
- Created: 2016-04-30T15:48:43.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2024-09-24T04:19:26.000Z (over 1 year ago)
- Last Synced: 2025-04-08T03:35:14.594Z (about 1 year ago)
- Topics: emacs
- Language: Emacs Lisp
- Homepage:
- Size: 71.3 KB
- Stars: 52
- Watchers: 2
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: Readme.org
Awesome Lists containing this project
README
* electric-align.el
Insert a certain amout of spaces at once to easily align columns.
一気にスペースを挿入して簡単に桁をそろえる
NOTE: This is an experimental work and needs improvement, in the sense
that it's not clear that what the word "alignment" means in the real
examples.
** Screencast
[[imgs/screencast.gif]]
[[imgs/screencast2.gif]]
** Usage
Put electric-align.el in a "load-path"ed directory, and require this
script.
: (require 'electric-align)
then call =M-x electric-align-mode= to turn on the mode.
You can also add the function to =prog-mode-hook=, to enable the mode
in all buffers editing programs.
: (add-hook 'prog-mode-hook 'electric-align-mode)
While =electric-align-mode= is turned on, you can insert a certain
amount of spaces at once by pressing =SPC= multiple times.