I'm now using this config:
(use-package slime
...
...
:hook
(slime-mode . (lambda ()
(unless (slime-connected-p)
(let ((bak-buffer (current-buffer)))
;; (delete-other-windows)
;; (split-window-horizontally)
(save-excursion (slime))
))
)))
And that is what I get when open a .lisp first time(previous window is only a scratch window)
But what I want is something like this:
Notice that I want slime to be on the left, and .lisp to be right, due to some environmental factor.
(delete-other-windows) (split-window-horizontally)
? – PanJunjie潘俊杰 Oct 16 '20 at 6:43(print (window-list))
to see whether those code run after slime split windows into 3. it's possible you're not timing it right. – PanJunjie潘俊杰 Oct 16 '20 at 7:04