gnu-emacs-sources
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "insert-shebang" version 0.9.3 released.


From: isachin
Subject: Re: "insert-shebang" version 0.9.3 released.
Date: Fri, 21 Feb 2014 12:29:07 +0530

Agreed, but what about support for Python, Perl etc. One can customize 'insert-shebang' group for all scripting langauges and to some extend compiled languages. Also many python developers don't put shebang line in the scripts say for example the django framework. These file can be safely ignored.




On Thu, Feb 20, 2014 at 8:12 PM, Kevin Rodgers <address@hidden> wrote:
On 2/16/14 8:24 PM, isachin wrote:

"insert-shebang" version 0.9.3 released.


http://carlfg.wordpress.com/2013/10/21/insert-shebang-extension-for-emacs/

How does that improve what Emacs provides:

C-c : runs the command sh-set-shell, which is an interactive compiled
Lisp function in `sh-script.el'.

It is bound to C-c :, <menu-bar> <sh-script> <sh-set-shell>.

(sh-set-shell SHELL &optional NO-QUERY-FLAG INSERT-FLAG)

Set this buffer's shell to SHELL (a string).
When used interactively, insert the proper starting #!-line,
and make the visited file executable via `executable-set-magic',
perhaps querying depending on the value of `executable-query'.

When this function is called noninteractively, INSERT-FLAG (the third
argument) controls whether to insert a #!-line and think about making
the visited file executable, and NO-QUERY-FLAG (the second argument)
controls whether to query about making the visited file executable.

Calls the value of `sh-set-shell-hook' if set.

--
Kevin Rodgers
Denver, Colorado, USA


_______________________________________________
gnu-emacs-sources mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/gnu-emacs-sources



--
Sachin

reply via email to

[Prev in Thread] Current Thread [Next in Thread]