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:
parent
f60aec52a5
commit
8226efa633
2 changed files with 7 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Reference in a new issue