Function: cider--setup-menu-for-clojure-major-mode

cider--setup-menu-for-clojure-major-mode is an autoloaded and byte-compiled function defined in cider-mode.el.

Signature

(cider--setup-menu-for-clojure-major-mode MODE-MAP)

Documentation

Setup a Cider menu for a Clojure major mode's MODE-MAP.

This menu works as an easy entry-point into CIDER. Even if cider.el isn't loaded yet, this will be shown in Clojure buffers next to the Clojure menu.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260414.1619/cider-mode.el
;;;###autoload
(defun cider--setup-menu-for-clojure-major-mode (mode-map)
  "Setup a Cider menu for a Clojure major mode's MODE-MAP.

This menu works as an easy entry-point into CIDER.  Even if cider.el isn't
loaded yet, this will be shown in Clojure buffers next to the Clojure menu."
  (easy-menu-define cider-clojure-mode-menu-open mode-map
    "Menu for Clojure mode.
  This is displayed in `clojure-mode' and `clojure-ts-mode' buffers,
  if `cider-mode' is not active."
    `("CIDER" :visible (not cider-mode)
      ["Start a Clojure REPL" cider-jack-in-clj
       :help "Starts an nREPL server and connects a Clojure REPL to it."]
      ["Connect to a Clojure REPL" cider-connect-clj
       :help "Connects to a REPL that's already running."]
      ["Start a ClojureScript REPL" cider-jack-in-cljs
       :help "Starts an nREPL server and connects a ClojureScript REPL to it."]
      ["Connect to a ClojureScript REPL" cider-connect-cljs
       :help "Connects to a ClojureScript REPL that's already running."]
      ["Start a Clojure REPL, and a ClojureScript REPL" cider-jack-in-clj&cljs
       :help "Starts an nREPL server, connects a Clojure REPL to it, and then a ClojureScript REPL."]
      "--"
      ["View user manual" cider-view-manual])))