FIX check if lein is installed before calling cider deps

This commit is contained in:
Nathan Dwarshuis 2021-03-13 21:50:47 -05:00
parent 5d2d44f8ce
commit 0556d0fc3a
1 changed files with 36 additions and 32 deletions

View File

@ -4349,6 +4349,8 @@ Since I use vi mode in my terminal emulator, need to preserve the escape key's r
#+end_src #+end_src
**** cider **** cider
#+begin_src emacs-lisp #+begin_src emacs-lisp
(nd/when-bin "lein"
:pacman "leiningen"
(evil-define-key '(normal insert) cider-repl-mode-map (evil-define-key '(normal insert) cider-repl-mode-map
(kbd "C-k") 'cider-repl-previous-input (kbd "C-k") 'cider-repl-previous-input
(kbd "C-j") 'cider-repl-next-input) (kbd "C-j") 'cider-repl-next-input)
@ -4363,7 +4365,7 @@ Since I use vi mode in my terminal emulator, need to preserve the escape key's r
"gh" #'lispy-left "gh" #'lispy-left
"gl" #'lispy-flow "gl" #'lispy-flow
"gj" #'lispy-down "gj" #'lispy-down
"gk" #'lispy-up) "gk" #'lispy-up))
#+end_src #+end_src
** local ** local
These are for mode-specific bindings that can/should be outside of the evil maps above (there are not many, and these may be merged with their evil bretheren in the future). These are for mode-specific bindings that can/should be outside of the evil maps above (there are not many, and these may be merged with their evil bretheren in the future).
@ -4494,6 +4496,8 @@ They removed the underscore-inserts-arrow feature. Bring it back.
#+END_SRC #+END_SRC
*** clojure *** clojure
#+begin_src emacs-lisp #+begin_src emacs-lisp
(nd/when-bin "lein"
:pacman "leiningen"
(require 'cider-connection) (require 'cider-connection)
(defun nd/cider-switch-to-repl-or-start (&optional set-ns) (defun nd/cider-switch-to-repl-or-start (&optional set-ns)
@ -4516,7 +4520,7 @@ They removed the underscore-inserts-arrow feature. Bring it back.
(with-eval-after-load 'cider-repl-mode (with-eval-after-load 'cider-repl-mode
(nd/hydra-standard-int cider-repl-mode-map (nd/hydra-standard-int cider-repl-mode-map
(:shell-kill . cider-quit))) (:shell-kill . cider-quit))))
#+end_src #+end_src
*** python *** python
:PROPERTIES: :PROPERTIES: