fix(emacs-lisp): set Helpful tab-width to 8

This matches the expected tab-width of Emacs code using tab indentation.

Fix: #8574
This commit is contained in:
Kisaragi Hiu 2025-11-10 08:24:42 +09:00 committed by Henrik Lissner
parent 79f82f16ab
commit 67fcff28b4

View file

@ -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