diff options
Diffstat (limited to '.emacs.d/lisp/init-clojure.el')
-rw-r--r-- | .emacs.d/lisp/init-clojure.el | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/.emacs.d/lisp/init-clojure.el b/.emacs.d/lisp/init-clojure.el index 9775a52..20394e3 100644 --- a/.emacs.d/lisp/init-clojure.el +++ b/.emacs.d/lisp/init-clojure.el @@ -208,8 +208,17 @@ (when (apply #'eq (mapcar 'window-buffer (window-list))) (delete-other-windows))) (advice-add #'cider-close-ancillary-buffers :after #'fix-duplicate-windows) + + (defun switch-to-cider-repl () + "Wrapper around `cider-switch-to-repl-buffer' with custom functionality." + (interactive) + (if (get-buffer-window (cider-current-repl)) + (cider-switch-to-repl-buffer) + (cider-switch-to-repl-buffer) + (transpose-large-frame))) :bind (:map cider-mode-map + ("C-c C-z" . switch-to-cider-repl) ("C-c M-l" . cider-load-file) ("C-c M-b" . cider-interrupt)) (:map cider-repl-mode-map |