(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.