An extension to insert shebang line for GNU Emacs
Clone or download
psachin Downgrading to Emacs 25
Looks like Ubuntu don't have Emacs26 yet. I will have to test with
`emacs-snapshot` till then.
Latest commit 7bfea92 Apr 3, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
test Bumped to version 0.9.6 Aug 25, 2017
.gitignore
.travis.yml
COPYING Need to work with todos, Jun 26, 2016
Cask cask Jul 25, 2016
ChangeLog Bumped to version 0.9.6 Aug 25, 2017
Makefile cask Jul 25, 2016
ReadMe.org Bumped to version 0.9.6 Aug 25, 2017
TODO.org cask Jul 25, 2016
insert-shebang.el Downgrading to Emacs 25 Apr 3, 2018
run-tests.sh cask Jul 25, 2016
run-travis-ci.sh Downgrading to Emacs 25 Apr 3, 2018

ReadMe.org

insert-shebang https://travis-ci.org/psachin/insert-shebang.png https://badges.gitter.im/psachin/insert-shebang.svg

Insert shebang line automatically for Emacs.

Clone

  • Clone this repository
    git clone https://github.com/psachin/insert-shebang.git
        

Install

Melpa-stable: http://stable.melpa.org/packages/insert-shebang-badge.svg Marmalade

M-x package-install RET insert-shebang RET

Manual install

  • Add directory containing insert-shebang.el file to load-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

  • Customize using:
    M-x customize-group RET insert-shebang RET
        

Env Path

Defines path to env. Default is /usr/bin/env.

File Types

Defines file types.

Custom Headers

insert-shebang can be extended to insert header for C, C++ and FORTRAN programs etc.

Ignore Extensions

Set file types(using extensions) you want to ignore.

Ignored Filename

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

Contribute

  • Feel free to send PRs
  • Create new issues
  • Make sure to run tests before sending a PR
    cask --verbose
    make test
    
    ## alternate commands
    bash ./run-tests.sh
    
    # travis
    bash ./run-travis-ci.sh
        

License