From 97f42b031e166d98b40a9c6c19a01adc1b6fc9f2 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Thu, 24 Aug 2023 21:11:19 +0300 Subject: emacs: Update indentation settings --- .config/emacs/config.org | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to '.config/emacs') diff --git a/.config/emacs/config.org b/.config/emacs/config.org index 982cac1..48687df 100644 --- a/.config/emacs/config.org +++ b/.config/emacs/config.org @@ -642,16 +642,18 @@ with a custom function that reads a list of mode-specific indentation settings. indent-tabs-mode t) (defvar mango-indentation-settings - '((c-mode :width 8 :extra-vars (c-basic-offset)) + '((bash-ts-mode :width 4) + (c-mode :width 8 :extra-vars (c-basic-offset)) (css-mode :extra-vars (css-indent-offset)) (emacs-lisp-mode :spaces t) (graphviz-dot-mode :extra-vars (graphviz-dot-indent-width)) (lisp-mode :spaces t) (org-mode :spaces t) - (python-mode :width 4 :spaces nil :extra-vars (python-indent-offset)) - (rust-mode :width 4 :spaces nil) - (sgml-mode :width 4 :spaces nil :extra-vars (sgml-basic-offset)) - (xml-mode :width 4 :spaces nil)) + (python-mode :width 4 :extra-vars (python-indent-offset)) + (rust-mode :width 4) + (sgml-mode :width 2 :extra-vars (sgml-basic-offset)) + (sh-mode :width 4 :extra-vars (sh-basic-offset)) + (xml-mode :width 4)) "A list of per-mode indentation settings. Each list contains a major-mode and the 3 optional keyword arguments of :spaces, :width, and :extra-vars. When setting the settings for a given major-mode, the settings will also be applied -- cgit v1.2.3