From 18412db68d748c333b5b91d9df6d3979dfc3a200 Mon Sep 17 00:00:00 2001 From: Bozhidar Batsov Date: Wed, 30 Jan 2013 18:09:25 +0200 Subject: [PATCH] Improve the behaviour of the visit-ielm command --- modules/prelude-emacs-lisp.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/prelude-emacs-lisp.el b/modules/prelude-emacs-lisp.el index f8beb55..1e5b8b2 100644 --- a/modules/prelude-emacs-lisp.el +++ b/modules/prelude-emacs-lisp.el @@ -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)