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)
Written by Stefan Arentz
Related protips
1 Response
Thx for the tip ! Never think to make this simple feature. Here my vim version
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Emacs
Authors
Related Tags
#emacs
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#