From 67fcff28b424cf06571224ffa66b8a3809574c68 Mon Sep 17 00:00:00 2001 From: Kisaragi Hiu Date: Mon, 10 Nov 2025 08:24:42 +0900 Subject: [PATCH] fix(emacs-lisp): set Helpful tab-width to 8 This matches the expected tab-width of Emacs code using tab indentation. Fix: #8574 --- modules/lang/emacs-lisp/config.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/lang/emacs-lisp/config.el b/modules/lang/emacs-lisp/config.el index 33add8751..8ab3a2578 100644 --- a/modules/lang/emacs-lisp/config.el +++ b/modules/lang/emacs-lisp/config.el @@ -299,6 +299,12 @@ current buffer." :config (setq helpful-set-variable-function #'setq!) + (setq-hook! 'helpful-mode-hook + ;; Elisp code using tab indentation always use a tab-width of 8. C source + ;; code from Emacs also use a tab-width of 8. Therefore Helpful needs a + ;; tab-width of 8 to display tab indentation correctly. + tab-width 8) + (cond ((modulep! :completion ivy) (setq counsel-describe-function-function #'helpful-callable counsel-describe-variable-function #'helpful-variable