Refactor REPL config
This commit is contained in:
parent
b2a3ab90b3
commit
7f2876d754
3 changed files with 12 additions and 7 deletions
|
@ -21,17 +21,16 @@
|
|||
(defvar repl-p nil)
|
||||
(make-variable-buffer-local 'repl-p)
|
||||
|
||||
(defun narf|repl-init ()
|
||||
(add-hook! repl-toggle-mode
|
||||
(yascroll-bar-mode +1)
|
||||
(evil-initialize-state 'emacs)
|
||||
(setq mode-line-format nil
|
||||
repl-p t))
|
||||
(add-hook! repl-toggle-mode 'narf|repl-init)
|
||||
|
||||
:config
|
||||
(map! :map repl-toggle-mode-map
|
||||
:i "C-n" 'comint-next-input
|
||||
:i "C-p" 'comint-previous-input)
|
||||
)
|
||||
:i "C-p" 'comint-previous-input))
|
||||
|
||||
(provide 'core-eval)
|
||||
;;; core-eval.el ends here
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue