Variable: shell-command-mode-hook

shell-command-mode-hook is a variable defined in shell.el.gz.

Value

nil

Documentation

Hook run after entering shell-command-mode.

No problems result if this variable is not bound. add-hook automatically binds it. (This is true for all hook variables.)

Source Code

;; Defined in /usr/src/emacs/lisp/shell.el.gz
(define-derived-mode shell-command-mode comint-mode "Shell"
  "Major mode for the output of asynchronous `shell-command'."
  (setq-local font-lock-defaults '(shell-font-lock-keywords t))
  ;; See comments in `shell-mode'.
  (setq-local ansi-color-apply-face-function #'shell-apply-ansi-color)
  (setq list-buffers-directory (expand-file-name default-directory)))