practicalli / spacemacs

Content for the book - Clojure Development with Spacemacs
https://practical.li/spacemacs
Creative Commons Attribution Share Alike 4.0 International
110 stars 33 forks source link

Cider-specific key bindings as Evil local keys #197

Open practicalli-johnny opened 4 years ago

practicalli-johnny commented 4 years ago

(defun clojure-mappings () (evil-local-set-key 'normal (kbd "°") 'cider-eval-buffer) (evil-local-set-key 'normal (kbd "M-§") 'cider-eval-buffer) (evil-local-set-key 'normal (kbd "§") 'cider-eval-defun-at-point) (evil-local-set-key 'normal (kbd "Ö") 'cider-find-var) (evil-local-set-key 'normal (kbd "q") 'cider-popup-buffer-quit) (evil-local-set-key 'normal (kbd "K") 'cider-doc))(add-hook 'clojure-mode-hook #'clojure-mappings)