Fix making scripts executable on save
This commit is contained in:
parent
3da3700fae
commit
84903e4425
2 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue