Introduce prelude-visit-ielm command and bind it to C-c C-z (a-la-slime)
This commit is contained in:
parent
58777d16f2
commit
b84dfee681
1 changed files with 8 additions and 0 deletions
|
@ -43,6 +43,14 @@
|
||||||
(if (file-exists-p (concat buffer-file-name "c"))
|
(if (file-exists-p (concat buffer-file-name "c"))
|
||||||
(delete-file (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 ()
|
(defun prelude-emacs-lisp-mode-defaults ()
|
||||||
(run-hooks 'prelude-lisp-coding-hook)
|
(run-hooks 'prelude-lisp-coding-hook)
|
||||||
(turn-on-eldoc-mode)
|
(turn-on-eldoc-mode)
|
||||||
|
|
Loading…
Add table
Reference in a new issue