Improve the behaviour of the visit-ielm command

This commit is contained in:
Bozhidar Batsov 2013-01-30 18:09:25 +02:00
parent 0ec13719da
commit 18412db68d

View file

@ -46,7 +46,10 @@
(defun prelude-visit-ielm ()
(interactive)
(if (not (get-buffer "*ielm*"))
(ielm)
(progn
(split-window-sensibly (selected-window))
(other-window 1)
(ielm))
(switch-to-buffer-other-window "*ielm*")))
(define-key emacs-lisp-mode-map (kbd "C-c C-z") 'prelude-visit-ielm)