]> git.armaanb.net Git - config.org.git/blobdiff - config.org
Implement sh-mode improvements
[config.org.git] / config.org
index 03a3d7df29480d27a60fedd1d1c7cbe5035b4e5a..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
+** 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.
@@ -904,6 +912,7 @@ Use the vi editing mode. I still haven't found a good way to show visual feedbac
   export GOPATH="$HOME/.local/share/go"
   export JUPYTER_CONFIG_DIR="$HOME/.config/jupyter"
   export IPYTHON_DIR="$HOME/.local/share/ipython"
+  export DISTCC_DIR="$HOME/.local/state/distcc"
 
   export PAGER='less'
   export GTK_USE_PORTAL=1