1
0
Fork 0

Fix making scripts executable on save

This commit is contained in:
Tom Willemse 2020-04-30 18:27:40 -07:00
parent 3da3700fae
commit 84903e4425
2 changed files with 3 additions and 3 deletions

View file

@ -4,7 +4,7 @@
;; Author: Tom Willemse <tom@ryuslash.org> ;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local ;; Keywords: local
;; Version: 2020.0426.214442 ;; Version: 2020.0427.091457
;; Package-Requires: (oni-data-dir expand-region multiple-cursors embrace helpful) ;; Package-Requires: (oni-data-dir expand-region multiple-cursors embrace helpful)
;; This program is free software; you can redistribute it and/or modify ;; 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 'minibuffer-setup-hook 'electric-pair-local-mode)
(add-hook 'prog-mode-hook 'goto-address-prog-mode) (add-hook 'prog-mode-hook 'goto-address-prog-mode)
(add-hook 'auto-save-hook #'oni-core--ensure-autosave-directory-exists) (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 "C-M-SPC") 'er/expand-region)
(global-set-key (kbd "M-+") 'mc/mark-next-like-this) (global-set-key (kbd "M-+") 'mc/mark-next-like-this)

View file

@ -4,7 +4,7 @@
;; Author: Tom Willemse <tom@ryuslash.org> ;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local ;; Keywords: local
;; Version: 2020.0417.142006 ;; Version: 2020.0427.091422
;; Package-Requires: (reformatter oni-flycheck oni-fci oni-smartparens) ;; Package-Requires: (reformatter oni-flycheck oni-fci oni-smartparens)
;; This program is free software; you can redistribute it and/or modify ;; This program is free software; you can redistribute it and/or modify
@ -44,7 +44,6 @@
:group 'shfmt) :group 'shfmt)
(add-hook 'sh-mode-hook 'electric-indent-local-mode) (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 'fci-mode)
(add-hook 'sh-mode-hook 'flycheck-mode) (add-hook 'sh-mode-hook 'flycheck-mode)
(add-hook 'sh-mode-hook 'shfmt-on-save-mode) (add-hook 'sh-mode-hook 'shfmt-on-save-mode)