Refactor REPL config

This commit is contained in:
Henrik Lissner 2016-02-20 15:32:19 -05:00
parent b2a3ab90b3
commit 7f2876d754
3 changed files with 12 additions and 7 deletions

View file

@ -1,9 +1,16 @@
;;; module-lisp --- all things lisp
;; see lib/elisp-defuns.el
(define-repl! emacs-lisp-mode ielm)
(add-hook! emacs-lisp-mode 'turn-on-eldoc-mode)
;; Pop-up REPL
(defun narf-inf-ielm ()
(ielm)
(let ((buf (current-buffer)))
(bury-buffer)
(pop-to-buffer buf)))
(define-repl! emacs-lisp-mode narf-inf-ielm)
;; [pedantry intensifies]
(defadvice emacs-lisp-mode (after emacs-lisp-mode-rename-modeline activate)
(setq mode-name "Elisp"))