config(emacs): Automatically "set +x" scripts with shebang
The way it is implemented has some false positives (e.g jinja2 templates of scripts), but overall it is net win.
This commit is contained in:
parent
9391102c91
commit
635792de44
@ -18,6 +18,7 @@
|
||||
(unless (>= emacs-major-version min-version)
|
||||
(user-error "Unsupported Emacs version: %s < %s" emacs-major-version min-version)))
|
||||
(require 'evil)
|
||||
(add-hook 'after-save-hook 'executable-make-buffer-file-executable-if-script-p)
|
||||
|
||||
(setq history-delete-duplicates t)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user