diff options
author | William Carroll <wpcarro@gmail.com> | 2020-06-16T10·48+0100 |
---|---|---|
committer | William Carroll <wpcarro@gmail.com> | 2020-06-16T10·48+0100 |
commit | ef3cba1b395544a53ac56945eadf5207a9e82c1e (patch) | |
tree | 380358b8dd28027e6384c0c4016fb0d19b70607b /emacs/.emacs.d | |
parent | 83c193ece6d1f850f381a646a778380ff13a62ab (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')
-rw-r--r-- | emacs/.emacs.d/wpc/wpc-clojure.el | 8 |
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!) |