diff options
author | Tom Willemse | 2020-04-30 18:27:40 -0700 |
---|---|---|
committer | Tom Willemse | 2020-04-30 18:27:40 -0700 |
commit | 84903e44254996836a57cd16dec42d84cc3b92dd (patch) | |
tree | cbb109a398290370f8719db10c4d23e8b1869b2d | |
parent | 3da3700fae9b141aa10c56941c98abea49214a00 (diff) | |
download | emacs-config-84903e44254996836a57cd16dec42d84cc3b92dd.tar.gz emacs-config-84903e44254996836a57cd16dec42d84cc3b92dd.zip |
Fix making scripts executable on save
-rw-r--r-- | oni-core.el | 3 | ||||
-rw-r--r-- | oni-sh.el | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/oni-core.el b/oni-core.el index 3ee3b6a..3378834 100644 --- a/oni-core.el +++ b/oni-core.el @@ -4,7 +4,7 @@ ;; Author: Tom Willemse <tom@ryuslash.org> ;; Keywords: local -;; Version: 2020.0426.214442 +;; Version: 2020.0427.091457 ;; Package-Requires: (oni-data-dir expand-region multiple-cursors embrace helpful) ;; This program is free software; you can redistribute it and/or modify @@ -135,6 +135,7 @@ (add-hook 'minibuffer-setup-hook 'electric-pair-local-mode) (add-hook 'prog-mode-hook 'goto-address-prog-mode) (add-hook 'auto-save-hook #'oni-core--ensure-autosave-directory-exists) +(add-hook 'after-save-hook 'executable-make-buffer-file-executable-if-script-p) (global-set-key (kbd "C-M-SPC") 'er/expand-region) (global-set-key (kbd "M-+") 'mc/mark-next-like-this) @@ -4,7 +4,7 @@ ;; Author: Tom Willemse <tom@ryuslash.org> ;; Keywords: local -;; Version: 2020.0417.142006 +;; Version: 2020.0427.091422 ;; Package-Requires: (reformatter oni-flycheck oni-fci oni-smartparens) ;; This program is free software; you can redistribute it and/or modify @@ -44,7 +44,6 @@ :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) |