emacs tip of the week #4: auto-chmod +x

Put this in your .emacs to automatically make your scripts (bash, python, perl, ruby, etc) executable:

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

Leave a Reply

Your email address will not be published. Required fields are marked *