Skip to content

Commit

Permalink
Replace cider-pop-to-buffer hack with upstream fix
Browse files Browse the repository at this point in the history
The pull request has not been merged yet, but once it has been, this
code will start doing what it is supposed to.
  • Loading branch information
raxod502 committed Dec 11, 2016
1 parent 2d8f814 commit a1c2992
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions init.el
Original file line number Diff line number Diff line change
Expand Up @@ -1813,16 +1813,10 @@ following :dependencies to be enabled."
;; projects, you either have to wait for a minute without doing
;; anything or be prepared for your cursur to suddenly shift buffers
;; without warning sometime in the near future. This is annoying, so
;; turn off the behavior. An issue has been opened at [1].
;; turn off the behavior. For a historical perspective see [1].
;;
;; [1]: https://github.com/clojure-emacs/cider/issues/1872
(setq cider-repl-pop-to-buffer-on-connect nil)

;; However, turning off the pop-to-buffer setting also prevents the
;; REPL buffer from *opening*. To fix this problem, we add an advice
;; to open the REPL buffer after the REPL has started.
(defadvice cider-repl-init (after display-repl-buffer)
(display-buffer buffer))
(setq cider-repl-pop-to-buffer-on-connect 'display-only)

;; Use figwheel-sidecar for launching ClojureScript REPLs. This
;; supports a fully integrated ClojureScript development experience
Expand Down

0 comments on commit a1c2992

Please sign in to comment.