SLY: Show all sbcl-ambrevar connections in selector.
parent
94e8cd5b97
commit
34a0f3fc29
|
@ -9,20 +9,13 @@
|
|||
(string-prefix-p ambrevar/sly-connection-name
|
||||
(helm-sly-connection-name sly-buffer-connection)))))
|
||||
|
||||
(defun ambrevar/helm-sly-connection ()
|
||||
"Return the connection matching `ambrevar/sly-connection-name'."
|
||||
(helm-sly-buffer-connection
|
||||
(cl-first (cl-remove-if-not
|
||||
#'ambrevar/helm-sly-buffer-p
|
||||
(buffer-list)))))
|
||||
|
||||
(defun ambrevar/helm-sly-mini ()
|
||||
"Helm for Lisp connections and buffers using the
|
||||
`ambrevar/sly-connection-name' connection."
|
||||
(interactive)
|
||||
(helm :sources (list (helm-sly--c-source-connection
|
||||
(helm-sly--repl-buffer-candidates
|
||||
(ambrevar/helm-sly-connection)))
|
||||
nil #'ambrevar/helm-sly-buffer-p))
|
||||
helm-sly-new
|
||||
(helm-sly-build-buffers-source))
|
||||
:buffer "*ambrevar/helm-sly-mini*"))
|
||||
|
|
Loading…
Reference in New Issue