diff options
author | 2020-04-30 18:27:40 -0700 | |
---|---|---|
committer | 2020-04-30 18:27:40 -0700 | |
commit | 84903e44254996836a57cd16dec42d84cc3b92dd (patch) | |
tree | cbb109a398290370f8719db10c4d23e8b1869b2d /oni-core.el | |
parent | 3da3700fae9b141aa10c56941c98abea49214a00 (diff) | |
download | emacs-config-84903e44254996836a57cd16dec42d84cc3b92dd.tar.gz emacs-config-84903e44254996836a57cd16dec42d84cc3b92dd.zip |
Fix making scripts executable on save
Diffstat (limited to 'oni-core.el')
-rw-r--r-- | oni-core.el | 3 |
1 files changed, 2 insertions, 1 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) |