2018-03-22 06:54:18 -04:00
|
|
|
;;; lang/clojure/autoload.el -*- lexical-binding: t; -*-
|
|
|
|
|
2019-05-02 17:57:31 -04:00
|
|
|
;;;###autoload
|
|
|
|
(defun +clojure-cider-lookup-definition (identifier)
|
|
|
|
"A lookup handler for `cider-mode'.
|
|
|
|
|
|
|
|
This is necessary to fix `cider-find-dwim's inability to capture the full symbol
|
|
|
|
at point."
|
|
|
|
(cider-find-dwim identifier))
|
|
|
|
|
|
|
|
|
|
|
|
;;
|
|
|
|
;;; Commands
|
|
|
|
|
2018-03-22 06:54:18 -04:00
|
|
|
;;;###autoload
|
2018-10-16 02:14:53 -04:00
|
|
|
(defun +clojure/repl (&optional arg)
|
2018-03-22 06:54:18 -04:00
|
|
|
"Open a Cider REPL and return the buffer."
|
2018-10-16 02:14:53 -04:00
|
|
|
(interactive "P")
|
|
|
|
(cider-jack-in arg)
|
2018-03-22 06:54:18 -04:00
|
|
|
(current-buffer))
|
2018-10-16 02:09:24 -04:00
|
|
|
|
|
|
|
;;;###autoload
|
|
|
|
(defun +clojure/cider-switch-to-repl-buffer-and-switch-ns ()
|
|
|
|
"TODO"
|
|
|
|
(interactive)
|
|
|
|
(cider-switch-to-repl-buffer t))
|