No Description

psachin b44c25d4b7 Subject: Tagged as 0.9.4 10 years ago
ert-tests 2f6e539404 Subject: Added travis conf from: 11 years ago
.gitignore 8a00e2cca1 Subject: Clean command to remove *autoloads.el files in Makefile. 11 years ago
.travis.yml 2f6e539404 Subject: Added travis conf from: 11 years ago
COPYING 6587bd3e29 Subject: workable emacs extension 11 years ago
ChangeLog 4161cc8c7d Subject: Tagged as 0.9.4 10 years ago
Makefile 8a00e2cca1 Subject: Clean command to remove *autoloads.el files in Makefile. 11 years ago
ReadMe.org 9fcf1d0ff5 Update ReadMe.org 10 years ago
TODO.org 1a5767397c Subject: FIX #85f9cc5 11 years ago
insert-shebang.el 9f6679d4bc Subject: More verbose message. 11 years ago

ReadMe.org

Insert shebang line automatically.

Clone

  • Clone this repository
  • #+BEGIN_SRC sh git clone https://github.com/psachin/insert-shebang.git #+END_SRC sh

Install

Manual

    #+BEGIN_SRC emacs-lisp M-x package-install RET insert-shebang RET #+END_SRC emacs-lisp
  • 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 emacs-lisp
  • To load a package, add:
  • #+BEGIN_SRC emacs-lisp (require 'insert-shebang) #+END_SRC emacs-lisp
  • To enable it globally, add:
  • #+BEGIN_SRC emacs-lisp (add-hook 'find-file-hook 'insert-shebang) #+END_SRC emacs-lisp
  • Optionally, run make to byte-compile the file.

Customize

Env Path

File Types

Custom Headers

Ignore Extensions

Ignored Filename

  • Customize using:
  • #+BEGIN_SRC emacs-lisp M-x customize-group RET insert-shebang RET #+END_SRC emacs-lisp 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 #+BEGIN_SRC emacs-lisp M-x insert-shebang-open-log-buffer #+END_SRC emacs-lisp

License