From: Armaan Bhojwani Date: Thu, 1 Jul 2021 00:07:44 +0000 (-0400) Subject: Implement sh-mode improvements X-Git-Url: https://git.armaanb.net/?p=config.org.git;a=commitdiff_plain;h=01fb50ab6cdc8624a65be3890f6816e5343400f5 Implement sh-mode improvements --- diff --git a/config.org b/config.org index 814c963..e7fd1dc 100644 --- a/config.org +++ b/config.org @@ -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 +** 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.