简体   繁体   中英

DOOM emacs Move Cider REPL windows vertical

I'd like to ask how to move cider repl in DOOM, from horizontal (screenshot below) to vertical? been trying many menus shortcut but still horizontal.

Thanks you so much

enter image description here

The easiest thing to achieve this is by splitting the windows vertically before jacking into Cider. Ie, in your source code file, hit Cx 3 which calls split-window-right .

Of course, you could write a small Elisp function to call this before jacking into Cider (you might want a defadvice ), but you would have to check your current window layout first, so I never bothered to do this.

Doom uses a pop-up for the REPL window, so the simplest way would be to disable popups. Otherwise, you can maximize the popup (Ctrl ~), and split the window vertically...

As was already mentioned, in DOOM this REPL window is transformed into a popup , and you can customize it in your .doom.d/config.el :

(after! cider
  (set-popup-rules!
   '(("^\\*cider-repl"
      :side right
      :width 100
      :quit nil
      :ttl nil))))

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM