Better evil/REPL support
This commit is contained in:
parent
4882df4847
commit
2503232edf
9 changed files with 69 additions and 15 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue