From 01fb50ab6cdc8624a65be3890f6816e5343400f5 Mon Sep 17 00:00:00 2001 From: Armaan Bhojwani Date: Wed, 30 Jun 2021 20:07:44 -0400 Subject: [PATCH] Implement sh-mode improvements --- config.org | 8 ++++++++ 1 file changed, 8 insertions(+) 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. -- 2.39.2