Refactor REPL config
This commit is contained in:
parent
b2a3ab90b3
commit
7f2876d754
3 changed files with 12 additions and 7 deletions
|
@ -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"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue