20e6195c9c
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.
19 lines
383 B
EmacsLisp
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
|