summaryrefslogtreecommitdiff
path: root/.config/emacs/modules/mm-editing.el
diff options
context:
space:
mode:
Diffstat (limited to '.config/emacs/modules/mm-editing.el')
-rw-r--r--.config/emacs/modules/mm-editing.el10
1 files changed, 3 insertions, 7 deletions
diff --git a/.config/emacs/modules/mm-editing.el b/.config/emacs/modules/mm-editing.el
index d52eeca..46eaa0f 100644
--- a/.config/emacs/modules/mm-editing.el
+++ b/.config/emacs/modules/mm-editing.el
@@ -89,13 +89,9 @@ The indentation settings are set based on the configured values in
(extras (plist-member plist :extras)))
;; Some modes like ‘python-mode’ explicitly set ‘tab-width’ and
;; ‘indent-tabs-mode’ so we must override them explicitly.
- (setq-local
- indent-tabs-mode (if spaces
- (not (cadr spaces))
- (default-value 'indent-tabs-mode))
- tab-width (if width
- (cadr width)
- (default-value 'tab-width)))
+ (setq-local indent-tabs-mode (if spaces (not (cadr spaces))
+ (default-value 'indent-tabs-mode))
+ tab-width (or (cadr width) (default-value 'tab-width)))
(when extras
(setq extras (cadr extras))
(when (symbolp extras)