aboutsummaryrefslogtreecommitdiffstats
path: root/oni-sh.el
diff options
context:
space:
mode:
authorGravatar Tom Willemse2020-04-20 15:06:36 -0700
committerGravatar Tom Willemse2020-04-20 15:06:36 -0700
commit3486bfd3ef77a856bbd9f1fbb67e2936889e5b67 (patch)
tree3828d54cf92f5cf5dcf4396e27a990ed7ec9e29a /oni-sh.el
parent0599e056952c50ea69c214f63fa7050c6330d22b (diff)
downloademacs-config-3486bfd3ef77a856bbd9f1fbb67e2936889e5b67.tar.gz
emacs-config-3486bfd3ef77a856bbd9f1fbb67e2936889e5b67.zip
Automatically make shell scripts executable
Diffstat (limited to 'oni-sh.el')
-rw-r--r--oni-sh.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/oni-sh.el b/oni-sh.el
index 9161b03..e7bf3ba 100644
--- a/oni-sh.el
+++ b/oni-sh.el
@@ -4,7 +4,7 @@
;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local
-;; Version: 2020.0407.211305
+;; Version: 2020.0417.142006
;; Package-Requires: (reformatter oni-flycheck oni-fci oni-smartparens)
;; This program is free software; you can redistribute it and/or modify
@@ -44,6 +44,7 @@
:group 'shfmt)
(add-hook 'sh-mode-hook 'electric-indent-local-mode)
+(add-hook 'sh-mode-hook 'executable-make-buffer-file-executable-if-script-p)
(add-hook 'sh-mode-hook 'fci-mode)
(add-hook 'sh-mode-hook 'flycheck-mode)
(add-hook 'sh-mode-hook 'shfmt-on-save-mode)