textmate / shellscript.tmbundle

TextMate support for ShellScript
43 stars 29 forks source link

Enable on Emacs 1st line #... -*- shell-script -*- #25

Closed nanoant closed 8 years ago

nanoant commented 9 years ago

Reason for this patch is that I happened to work with lot of the files marked like that, which is valid way to mark shell scripts for Emacs.

We do not really need to specify -*- mode: shell-script -*-, as this used rather when we want to put also some extra Emacs variables. Also mode comment can be preceded by anything on 1st line, eg.:

# bash completion for python                              -*- shell-script -*-

For more information see: https://www.gnu.org/software/emacs/manual/html_node/emacs/Choosing-Modes.html

mkhl commented 9 years ago

Looks good, thanks.

Would you mind removing the old alternative matching mode: shell-script? It seems that your version completely supersedes it.