Info: Define helm switcher

master
Pierre Neidhardt 2019-03-10 11:28:38 +01:00
parent 7fe1c43278
commit d208b04a21
1 changed files with 9 additions and 0 deletions

View File

@ -250,6 +250,15 @@
;; (nconc 'package-selected-packages '(info-colors))
(when (require 'info-colors nil t)
(add-hook 'Info-selection-hook 'info-colors-fontify-node))
(with-eval-after-load 'helm
(helm-defswitcher
"Info"
(lambda (b)
(with-current-buffer b
(derived-mode-p 'Info-mode)))
(lambda (&optional candidate)
(info nil (when candidate (format "*info*<%s>" candidate))))))
(global-set-key (kbd "C-h i") 'helm-info-switch)
;;; IRC
(nconc package-selected-packages '(circe))