From ef3cba1b395544a53ac56945eadf5207a9e82c1e Mon Sep 17 00:00:00 2001 From: William Carroll Date: Tue, 16 Jun 2020 11:48:44 +0100 Subject: Support additional KBDs for Clojure Define KBDs in clojure-mode-map that resemble my common-lisp and elisp KBDs. --- emacs/.emacs.d/wpc/wpc-clojure.el | 8 ++++++++ 1 file changed, 8 insertions(+) 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 @@ "" #'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 "" + "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!) -- cgit 1.4.1