Nenhuma descrição

psachin 4eee7cfa70 Subject: minor change in `-pkg.el` file 11 anos atrás
.gitignore 23e634eaa0 Subject: added defcustom instead of hash-table 11 anos atrás
COPYING 6587bd3e29 Subject: workable emacs extension 11 anos atrás
ChangeLog 8267e702f2 Subject: Version 0.9.2 11 anos atrás
Makefile b4b3e970e3 Subject: added Makefile, modified ReadMe accordingly 11 anos atrás
ReadMe.org b4b3e970e3 Subject: added Makefile, modified ReadMe accordingly 11 anos atrás
TODO.org a4d53c8e48 Subject: minor change in `-pkg.el` file 11 anos atrás
insert-shebang-pkg.el a4d53c8e48 Subject: minor change in `-pkg.el` file 11 anos atrás
insert-shebang.el 05af50404c Subject: Fixed documentation style with `M-x checkdoc' 11 anos atrás

ReadMe.org

insert-shebang

Inserts shebang line automatically

Clone

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

Install

Marmalade, MELPA

Manual

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

Usage

  • Adds shebang line for every new file created(Bash, Python, Perl, Ruby and Emacs)
  • Customize using M-x customize-group RET insert-shebang RET
  • Prompts user if shebang line is missing for already created file

License

  • See COPYING