help/helpful: Set tab-width to 8, better integration w/ Ivy (#15243)

Co-authored-by: Tommi Komulainen <tkomulai+github@gmail.com>
Co-authored-by: Lucius Hu <lebensterben@users.noreply.github.com>
This commit is contained in:
Lucius Hu 2022-01-10 23:15:47 -05:00 committed by GitHub
parent f60aec52a5
commit 8226efa633
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View file

@ -50,7 +50,11 @@
(evil-define-key 'normal helpful-mode-map (kbd "q") 'quit-window)
(defalias 'describe-function 'helpful-callable)
(defalias 'describe-variable 'helpful-variable)
(defalias 'describe-key 'helpful-key)))
(defalias 'describe-key 'helpful-key)
(add-hook 'helpful-mode (lambda () (setq-local tab-width 8)))
(when (featurep 'counsel)
(setq counsel-describe-function-function #'helpful-callable)
(setq counsel-describe-variable-function #'helpful-variable))))
(defun helpful/post-init-link-hint ()
(with-eval-after-load 'helpful

View file

@ -232,7 +232,8 @@
(defun spacemacs-defaults/init-help-fns+ ()
(use-package help-fns+
:commands (describe-keymap)
:init (spacemacs/set-leader-keys "hdK" 'describe-keymap)))
:init (spacemacs/set-leader-keys "hdK" 'describe-keymap)
:config (add-hook 'help-mode (lambda () (setq-local tab-width 8)))))
(defun spacemacs-defaults/init-hi-lock ()
(with-eval-after-load 'hi-lock