Improve the behaviour of the visit-ielm command
This commit is contained in:
parent
0ec13719da
commit
18412db68d
1 changed files with 4 additions and 1 deletions
|
@ -46,7 +46,10 @@
|
||||||
(defun prelude-visit-ielm ()
|
(defun prelude-visit-ielm ()
|
||||||
(interactive)
|
(interactive)
|
||||||
(if (not (get-buffer "*ielm*"))
|
(if (not (get-buffer "*ielm*"))
|
||||||
(ielm)
|
(progn
|
||||||
|
(split-window-sensibly (selected-window))
|
||||||
|
(other-window 1)
|
||||||
|
(ielm))
|
||||||
(switch-to-buffer-other-window "*ielm*")))
|
(switch-to-buffer-other-window "*ielm*")))
|
||||||
|
|
||||||
(define-key emacs-lisp-mode-map (kbd "C-c C-z") 'prelude-visit-ielm)
|
(define-key emacs-lisp-mode-map (kbd "C-c C-z") 'prelude-visit-ielm)
|
||||||
|
|
Loading…
Reference in a new issue