Introduce prelude-visit-ielm command and bind it to C-c C-z (a-la-slime)

This commit is contained in:
Bozhidar Batsov 2013-01-29 23:58:15 +02:00
parent 58777d16f2
commit b84dfee681

View file

@ -43,6 +43,14 @@
(if (file-exists-p (concat buffer-file-name "c"))
(delete-file (concat buffer-file-name "c"))))))
(defun prelude-visit-ielm ()
(interactive)
(if (not (get-buffer "*ielm*"))
(ielm)
(switch-to-buffer-other-window "*ielm*")))
(define-key emacs-lisp-mode-map (kbd "C-c C-z") 'prelude-visit-ielm)
(defun prelude-emacs-lisp-mode-defaults ()
(run-hooks 'prelude-lisp-coding-hook)
(turn-on-eldoc-mode)