From a0c9f40e72fee6aaa8f34a6d24ca5edce75f180b Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Fri, 1 Nov 2024 16:51:13 +0100 Subject: emacs: Code style fixes --- .config/emacs/modules/mm-editing.el | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to '.config/emacs/modules/mm-editing.el') 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) -- cgit v1.2.3