doomemacs/modules/module-sh.el

20 lines
528 B
EmacsLisp
Raw Normal View History

2015-09-28 14:22:26 -04:00
;;; module-sh.el --- description
(after! sh-script
2015-12-09 01:54:30 -05:00
(define-repl! sh-mode narf-inf-shell)
(add-hook! sh-mode 'flycheck-mode)
;; [pedantry intensifies]
2015-09-28 14:22:26 -04:00
(defadvice sh-mode (after sh-mode-rename-modeline activate)
2015-12-09 01:54:30 -05:00
(setq mode-name "sh"))
2015-09-28 14:22:26 -04:00
2015-12-09 01:54:30 -05:00
(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))))))
2015-09-28 14:22:26 -04:00
(provide 'module-sh)
;;; module-sh.el ends here