2

I am using Emacs with Prelude. When I hit C-c prefix in a clojure buffer, I would like to show a smartparens key bindings. Like in screenshot below I would like to to add entry for smartparens key bindings, just like C-c-, shows cider-test-command-map How can I do this ?

enter image description here

enter image description here

Drew
  • 75,699
  • 9
  • 109
  • 225
Imaxd
  • 123
  • 3

1 Answers1

1

Sounds like you want to define a new prefix key, say C-c z, for cider-mode, binding it to a smart-parens keymap.

Assuming that smart-parens-mode-map is that keymap, and assuming that cider-mode-map is the keymap that defines C-c as a prefix key, you can do this:

(define-key cider-mode-map (kbd "C-c z") smart-parens-mode-map)
Drew
  • 75,699
  • 9
  • 109
  • 225