Please visit GitLab.com/psachin/insert-shebang for updates.
Insert shebang line automatically for Emacs.
Clone this repository
git clone https://gitlab.com/psachin/insert-shebang.git
Melpa-stable: Marmalade
M-x package-install RET insert-shebang RET
- Add directory containing
insert-shebang.el
file toload-path
in your~/.emacs
file. For example:(add-to-list 'load-path "/path/to/insert-shebang/")
- To load a package, add:
(require 'insert-shebang)
- Optionally, run
make
to byte-compile the file.
Customize using:
M-x customize-group RET insert-shebang RET
Defines path to env
. Default is /usr/bin/env
.
Defines file types.
insert-shebang can be extended to insert header for C, C++ and FORTRAN programs etc.
Set file types(using extensions) you want to ignore.
Files ignored during the prompt are stored with their full-path
in ~/.insert-shebang.log
file. Set to nil if you want to
disable this feature.
You can visit this log file using:
M-x insert-shebang-open-log-buffer
- Feel free to send a Merge Request
- Create new issues
- Make sure to run tests before sending a Merge Request:
make test
- See COPYING