Better evil/REPL support

This commit is contained in:
Henrik Lissner 2015-12-09 01:54:30 -05:00
parent 4882df4847
commit 2503232edf
9 changed files with 69 additions and 15 deletions

View file

@ -1,11 +1,19 @@
;;; module-sh.el --- description
;; [pedantry intensifies]
(after! sh-script
(defadvice sh-mode (after sh-mode-rename-modeline activate)
(setq mode-name "Sh"))
(define-repl! sh-mode narf-inf-shell)
(add-hook! sh-mode 'flycheck-mode)
(add-hook! sh-mode 'flycheck-mode))
;; [pedantry intensifies]
(defadvice sh-mode (after sh-mode-rename-modeline activate)
(setq mode-name "sh"))
(defun narf-inf-shell ()
(let* ((dest-sh (symbol-name sh-shell))
(sh-shell-file dest-sh))
(sh-shell-process t)
(with-current-buffer "*shell*"
(rename-buffer (format "*shell [%s]*" dest-sh))))))
(provide 'module-sh)
;;; module-sh.el ends here