暂无描述

Sachin Patil adfa473f07 Bumped to version 0.9.6 7 年之前
test adfa473f07 Bumped to version 0.9.6 7 年之前
.gitignore 8a00e2cca1 Subject: Clean command to remove *autoloads.el files in Makefile. 11 年之前
.travis.yml adfa473f07 Bumped to version 0.9.6 7 年之前
COPYING 78dd99be58 Need to work with todos, 8 年之前
Cask 52928a0259 cask 8 年之前
ChangeLog adfa473f07 Bumped to version 0.9.6 7 年之前
Makefile 52928a0259 cask 8 年之前
ReadMe.org adfa473f07 Bumped to version 0.9.6 7 年之前
TODO.org 52928a0259 cask 8 年之前
insert-shebang.el adfa473f07 Bumped to version 0.9.6 7 年之前
run-tests.sh 52928a0259 cask 8 年之前
run-travis-ci.sh adfa473f07 Bumped to version 0.9.6 7 年之前

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
  • #+BEGIN_SRC sh git clone https://github.com/psachin/insert-shebang.git #+END_SRC

Install

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

#+BEGIN_SRC emacs-lisp M-x package-install RET insert-shebang RET #+END_SRC

Manual install

  • Add directory containing insert-shebang.el file to
  • =load-path= in your =~/.emacs= file. For example: #+BEGIN_SRC emacs-lisp (add-to-list 'load-path "/path/to/insert-shebang/") #+END_SRC
  • To load a package, add:
  • #+BEGIN_SRC emacs-lisp (require 'insert-shebang) #+END_SRC
  • Optionally, run make to byte-compile the file.

Customize

  • Customize using:
  • #+BEGIN_SRC emacs-lisp M-x customize-group RET insert-shebang RET #+END_SRC

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 #+BEGIN_SRC emacs-lisp M-x insert-shebang-open-log-buffer #+END_SRC

Contribute

  • Feel free to send PRs
  • Create new issues
  • Make sure to run tests before sending a PR
  • #+BEGIN_SRC sh cask --verbose make test

## alternate commands bash ./run-tests.sh

# travis bash ./run-travis-ci.sh #+END_SRC

License