]> git.armaanb.net Git - config.org.git/commitdiff
Implement sh-mode improvements
authorArmaan Bhojwani <me@armaanb.net>
Thu, 1 Jul 2021 00:07:44 +0000 (20:07 -0400)
committerArmaan Bhojwani <me@armaanb.net>
Thu, 1 Jul 2021 00:07:44 +0000 (20:07 -0400)
config.org

index 814c963684cbe102890d97cc5f9427502e6fbdbd..e7fd1dc91438c4ab3449cc0b409bc001802abd59 100644 (file)
@@ -704,6 +704,14 @@ Style is basically ddevault's style guide but with 4 spaces instead of 8 char ta
 
   (add-hook 'before-save-hook 'clang-format-buffer-smart nil)
 #+end_src
 
   (add-hook 'before-save-hook 'clang-format-buffer-smart nil)
 #+end_src
+** KISS
+#+begin_src emacs-lisp
+  (append auto-mode-alist '("/home/armaa/repos/" . sh-mode))
+#+end_src
+** Shell
+#+begin_src emacs-lisp
+  (add-hook 'after-save-hook 'executable-make-buffer-file-executable-if-script-p)
+#+end_src
 * General text editing
 ** Spell checking
 Spell check in text mode, and in prog-mode comments.
 * General text editing
 ** Spell checking
 Spell check in text mode, and in prog-mode comments.