lang{emacs-lisp,python,ruby}: improve repl integration

This commit is contained in:
Henrik Lissner 2017-03-04 18:31:18 -05:00
parent 6f439b355c
commit ca75c1cf49
4 changed files with 24 additions and 14 deletions

View file

@ -20,12 +20,14 @@ C-u), then reveal the function in a popup window."
;;;###autoload
(defun +emacs-lisp/repl ()
"Open an ielm REPL for Emacs Lisp."
"Open the Emacs Lisp REPL (`ielm')."
(interactive)
(ielm)
(let ((buf (current-buffer)))
(bury-buffer)
(pop-to-buffer buf)))
(pop-to-buffer
(or (get-buffer "*ielm*")
(progn (ielm)
(let ((buf (get-buffer "*ielm*")))
(bury-buffer buf)
buf)))))
;; ---- ert ---------------------------------------------------