Integrate helpful.el
This commit is contained in:
parent
d1cc4a78c3
commit
896a24be34
@ -431,11 +431,6 @@ Some helpful ELisp packages:
|
||||
(general-def '(normal motion) emacs-lisp-mode-map "C-c C-c" #'eval-defun :keymaps 'override)
|
||||
(general-def '(normal motion insert) lisp-interaction-mode-map "C-c C-c" #'eval-print-last-sexp :keymaps 'override)
|
||||
(add-hook 'ielm-mode-hook 'smartparens-strict-mode)
|
||||
(add-hook 'emacs-lisp-mode-hook
|
||||
(lambda ()
|
||||
(set (make-local-variable 'evil-lookup-func)
|
||||
(lambda ()
|
||||
(describe-symbol (symbol-at-point))))))
|
||||
#+END_SRC
|
||||
|
||||
** Load path
|
||||
@ -5701,3 +5696,19 @@ to use instead:
|
||||
(setq sql-drill-program
|
||||
(expand-file-name "~/drill/apache-drill-1.17.0/bin/drill-embedded"))))
|
||||
#+END_SRC
|
||||
|
||||
* Helpful
|
||||
A much-improved help buffer:
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(use-package helpful
|
||||
:defer t
|
||||
:init
|
||||
(setq counsel-describe-function-function #'helpful-callable
|
||||
counsel-describe-variable-function #'helpful-variable)
|
||||
(add-hook 'emacs-lisp-mode-hook
|
||||
(lambda ()
|
||||
(set (make-local-variable 'evil-lookup-func)
|
||||
#'helpful-at-point)))
|
||||
:general
|
||||
(help-map "k" #'helpful-key))
|
||||
#+END_SRC
|
||||
|
Loading…
Reference in New Issue
Block a user