So I start up emacs open foo.lisp then I would start slime and the window splits nicely. Except I don't want to start slime manually.
So is it possible to switch to or startup slime when I open an appropriate file?
Such that my file buffer splits and slime is to the side below whatever.
(defun start-or-switch-to (function buffer-name) (if (not (get-buffer buffer-name)) (progn (split-window-sensibly (selected-window)) (other-window 1) (funcall function)) (switch-to-buffer-other-window buffer-name)))
I have found this snippet of code. And tried to execute it with a
This however shoves the opened file and opens slime on both sides of the split.