From fd04f468e283e36a05926df3e1fc0d3a99255ea5 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 1 May 2019 19:14:43 -0400 Subject: [PATCH] lang/emacs-lisp: reformat autoloads file Moves public function away from interactive commands. --- modules/lang/emacs-lisp/autoload.el | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/modules/lang/emacs-lisp/autoload.el b/modules/lang/emacs-lisp/autoload.el index e0f6c8c23..23f4e68af 100644 --- a/modules/lang/emacs-lisp/autoload.el +++ b/modules/lang/emacs-lisp/autoload.el @@ -68,6 +68,14 @@ library/userland functions" (throw 'matcher t))))) 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 ;; and should be byte-compiled, no matter what, to ensure it runs as fast as ;; possible: @@ -123,11 +131,3 @@ library/userland functions" if (file-in-directory-p buffer-file-name dir) return t))) (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)))