lang/emacs-lisp: reformat autoloads file
Moves public function away from interactive commands.
This commit is contained in:
parent
983f081369
commit
fd04f468e2
1 changed files with 8 additions and 8 deletions
|
@ -68,6 +68,14 @@ library/userland functions"
|
||||||
(throw 'matcher t)))))
|
(throw 'matcher t)))))
|
||||||
nil))
|
nil))
|
||||||
|
|
||||||
|
;;;###autoload
|
||||||
|
(defun +emacs-lisp-lookup-documentation (thing)
|
||||||
|
"Lookup THING with `helpful-variable' if it's a variable, `helpful-callable'
|
||||||
|
if it's callable, `apropos' otherwise."
|
||||||
|
(if thing
|
||||||
|
(doom/describe-symbol thing)
|
||||||
|
(call-interactively #'doom/describe-symbol)))
|
||||||
|
|
||||||
;; `+emacs-lisp-highlight-vars-and-faces' is a potentially expensive function
|
;; `+emacs-lisp-highlight-vars-and-faces' is a potentially expensive function
|
||||||
;; and should be byte-compiled, no matter what, to ensure it runs as fast as
|
;; and should be byte-compiled, no matter what, to ensure it runs as fast as
|
||||||
;; possible:
|
;; possible:
|
||||||
|
@ -123,11 +131,3 @@ library/userland functions"
|
||||||
if (file-in-directory-p buffer-file-name dir)
|
if (file-in-directory-p buffer-file-name dir)
|
||||||
return t)))
|
return t)))
|
||||||
(flycheck-mode -1)))
|
(flycheck-mode -1)))
|
||||||
|
|
||||||
;;;###autoload
|
|
||||||
(defun +emacs-lisp-lookup-documentation (thing)
|
|
||||||
"Lookup THING with `helpful-variable' if it's a variable, `helpful-callable'
|
|
||||||
if it's callable, `apropos' otherwise."
|
|
||||||
(if thing
|
|
||||||
(doom/describe-symbol thing)
|
|
||||||
(call-interactively #'doom/describe-symbol)))
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue