summaryrefslogtreecommitdiff
path: root/cider-macroexpansion.el
diff options
context:
space:
mode:
authorBozhidar Batsov <bozhidar@tradeo.com>2013-11-12 15:51:47 +0200
committerBozhidar Batsov <bozhidar@tradeo.com>2013-11-12 15:51:47 +0200
commitb1be94e92ad90ed025eefd15255ef780b9c76280 (patch)
treed2f4379ef64eb9bc139cac18269d56856c5c95e2 /cider-macroexpansion.el
parente301f641e3bc99a27ffaa35624c7c351240b3b51 (diff)
Autoload macroexpansion commands
Diffstat (limited to 'cider-macroexpansion.el')
-rw-r--r--cider-macroexpansion.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/cider-macroexpansion.el b/cider-macroexpansion.el
index b3852c9d..2d7cb2f4 100644
--- a/cider-macroexpansion.el
+++ b/cider-macroexpansion.el
@@ -76,6 +76,7 @@ This variable specifies both what was expanded and the expander.")
(plist-get (nrepl-send-string-sync cider-last-macroexpand-expression nrepl-buffer-ns) :stdout)))
(cider-initialize-macroexpansion-buffer expansion nrepl-buffer-ns)))
+;;;###autoload
(defun cider-macroexpand-1 (&optional prefix)
"Invoke 'macroexpand-1' on the expression at point.
If invoked with a PREFIX argument, use 'macroexpand' instead of
@@ -92,6 +93,7 @@ If invoked with a PREFIX argument, use 'macroexpand' instead of
(let ((expander (if prefix 'macroexpand 'macroexpand-1)))
(cider-macroexpand-expr-inplace expander)))
+;;;###autoload
(defun cider-macroexpand-all ()
"Invoke 'clojure.walk/macroexpand-all' on the expression at point."
(interactive)