diff options
Diffstat (limited to 'lisp/shell.el')
| -rw-r--r-- | lisp/shell.el | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lisp/shell.el b/lisp/shell.el index b3201726762..4352811912a 100644 --- a/lisp/shell.el +++ b/lisp/shell.el | |||
| @@ -838,6 +838,13 @@ Sentinels will always get the two parameters PROCESS and EVENT." | |||
| 838 | (with-current-buffer buf | 838 | (with-current-buffer buf |
| 839 | (insert (format "\nProcess %s %s\n" process event)))))) | 839 | (insert (format "\nProcess %s %s\n" process event)))))) |
| 840 | 840 | ||
| 841 | (define-derived-mode shell-command-mode comint-mode "Shell" | ||
| 842 | "Major mode for the output of asynchronous `shell-command'." | ||
| 843 | (setq-local font-lock-defaults '(shell-font-lock-keywords t)) | ||
| 844 | ;; See comments in `shell-mode'. | ||
| 845 | (setq-local ansi-color-apply-face-function #'shell-apply-ansi-color) | ||
| 846 | (setq list-buffers-directory (expand-file-name default-directory))) | ||
| 847 | |||
| 841 | ;;;###autoload | 848 | ;;;###autoload |
| 842 | (defun shell (&optional buffer file-name) | 849 | (defun shell (&optional buffer file-name) |
| 843 | "Run an inferior shell, with I/O through BUFFER (which defaults to `*shell*'). | 850 | "Run an inferior shell, with I/O through BUFFER (which defaults to `*shell*'). |