emacs.d/lisp/init-shell.el
Jason TIAN 20e6195c9c
Add my-check-for-executable function to init-packages.el
This commit adds a new function called my-check-for-executable to init-p
ackages.el. This function checks if an executable file is available
and
prompts the user to install it if it's not found. It is used in
several
places throughout the file to check for required executables.
2023-05-15 22:25:53 +08:00

19 lines
383 B
EmacsLisp

;;; init-shell.el --- Shell settings -*- lexical-binding: t -*-
;;; Commentary:
;;; Code:
(my-check-for-executable "ShellCheck" "shellcheck") ; flycheck
(defun my/shell-mode-config ()
(setq flycheck-select-checker "sh-shellcheck"))
(add-hook 'sh-mode-hook 'my/shell-mode-config)
(provide 'init-shell)
;; Local Variables:
;; coding: utf-8
;; End:
;;; init-shell.el ends here