X-Git-Url: https://git.armaanb.net/?p=config.org.git;a=blobdiff_plain;f=config.org;h=e7fd1dc91438c4ab3449cc0b409bc001802abd59;hp=814c963684cbe102890d97cc5f9427502e6fbdbd;hb=01fb50ab6cdc8624a65be3890f6816e5343400f5;hpb=9ec00d7eb7fb523392cb7730d5ef27ba8f4a9ca9 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.