Last Updated: February 25, 2016
·
1.211K
· st3fan

Automatically making scripts executable

The following little snippet will tell emacs to automatically make scripts executable when you save them.Emacs considers everyting with a shebang (#!/some/command) as a script.

(add-hook 'after-save-hook
   'executable-make-buffer-file-executable-if-script-p)

1 Response
Add your response

Thx for the tip ! Never think to make this simple feature. Here my vim version

over 1 year ago ·