about summary refs log tree commit diff
path: root/emacs/.emacs.d/wpc/wpc-clojure.el
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2020-06-16T10·48+0100
committerWilliam Carroll <wpcarro@gmail.com>2020-06-16T10·48+0100
commitef3cba1b395544a53ac56945eadf5207a9e82c1e (patch)
tree380358b8dd28027e6384c0c4016fb0d19b70607b /emacs/.emacs.d/wpc/wpc-clojure.el
parent83c193ece6d1f850f381a646a778380ff13a62ab (diff)
Support additional KBDs for Clojure
Define KBDs in clojure-mode-map that resemble my common-lisp and elisp KBDs.
Diffstat (limited to 'emacs/.emacs.d/wpc/wpc-clojure.el')
-rw-r--r--emacs/.emacs.d/wpc/wpc-clojure.el8
1 files changed, 8 insertions, 0 deletions
diff --git a/emacs/.emacs.d/wpc/wpc-clojure.el b/emacs/.emacs.d/wpc/wpc-clojure.el
index d9262cdda8eb..18d0952384f5 100644
--- a/emacs/.emacs.d/wpc/wpc-clojure.el
+++ b/emacs/.emacs.d/wpc/wpc-clojure.el
@@ -74,6 +74,14 @@
     "<down>" #'cider-repl-next-input
     ;; "C-c 'j" #'wpc/find-or-create-clojure-or-clojurescript-repl
     )
+  (general-define-key
+   :keymaps 'clojure-mode-map
+   :states '(normal)
+   :prefix "<SPC>"
+   "x" #'cider-eval-defun-at-point
+   "X" #'cider-eval-buffer
+   "d" #'cider-symbol-at-point)
+  (setq cider-prompt-for-symbol nil)
   ;; (setq cider-cljs-lein-repl
   ;;       "(do (require 'figwheel-sidecar.repl-api)
   ;;            (figwheel-sidecar.repl-api/start-figwheel!)