Function: cider--modeline-info
cider--modeline-info is a byte-compiled function defined in
cider-mode.el.
Signature
(cider--modeline-info)
Documentation
Return info for the cider mode modeline.
Info contains the connection type, project name and host:port endpoint.
Source Code
;; Defined in ~/.emacs.d/elpa/cider-20260414.1619/cider-mode.el
(defun cider--modeline-info ()
"Return info for the cider mode modeline.
Info contains the connection type, project name and host:port endpoint."
(if-let* ((current-connection (ignore-errors (cider-current-repl))))
(with-current-buffer current-connection
(concat
(symbol-name cider-repl-type)
(when cider-mode-line-show-connection
(format ":%s@%s:%s"
(or (cider--project-name nrepl-project-dir) "<no project>")
(pcase (plist-get nrepl-endpoint :host)
("localhost" "")
(x x))
(plist-get nrepl-endpoint :port)))))
"not connected"))