diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-11-01 16:51:13 +0100 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-11-01 16:51:13 +0100 |
commit | a0c9f40e72fee6aaa8f34a6d24ca5edce75f180b (patch) | |
tree | 048e3dd94a833611f228b9bfaa0a4e13b117f953 | |
parent | 0f1b8c712e5c8bb92e40521f3ea3e20fa9578cce (diff) |
emacs: Code style fixes
-rw-r--r-- | .config/emacs/modules/mm-editing.el | 10 |
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) |