diff options
| author | Juanma Barranquero | 2006-12-05 14:21:56 +0000 |
|---|---|---|
| committer | Juanma Barranquero | 2006-12-05 14:21:56 +0000 |
| commit | ec1d7c6e3ea1e110f19b5d6731354418fffde0aa (patch) | |
| tree | 116bec1c842edaac4dd8f79e0250e0e7ba155e6a | |
| parent | 003585953efe92f4aebec06dbb50d944d4066928 (diff) | |
| download | emacs-ec1d7c6e3ea1e110f19b5d6731354418fffde0aa.tar.gz emacs-ec1d7c6e3ea1e110f19b5d6731354418fffde0aa.zip | |
(shell): Search the start file in ~/.emacs.d as `init_SHELLNAME.sh' instead.
| -rw-r--r-- | lisp/shell.el | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lisp/shell.el b/lisp/shell.el index a778584895a..2b1b6a907e4 100644 --- a/lisp/shell.el +++ b/lisp/shell.el | |||
| @@ -521,9 +521,9 @@ If BUFFER exists and shell process is running, just switch to BUFFER. | |||
| 521 | Program used comes from variable `explicit-shell-file-name', | 521 | Program used comes from variable `explicit-shell-file-name', |
| 522 | or (if that is nil) from the ESHELL environment variable, | 522 | or (if that is nil) from the ESHELL environment variable, |
| 523 | or else from SHELL if there is no ESHELL. | 523 | or else from SHELL if there is no ESHELL. |
| 524 | If a file `~/.emacs_SHELLNAME' exists, it is given as initial input | 524 | If a file `~/.emacs_SHELLNAME' exists, or `~/.emacs.d/init_SHELLNAME.sh', |
| 525 | (Note that this may lose due to a timing error if the shell | 525 | it is given as initial input (Note that this may lose due to a timing |
| 526 | discards input when it starts up.) | 526 | error if the shell discards input when it starts up). |
| 527 | The buffer is put in Shell mode, giving commands for sending input | 527 | The buffer is put in Shell mode, giving commands for sending input |
| 528 | and controlling the subjobs of the shell. See `shell-mode'. | 528 | and controlling the subjobs of the shell. See `shell-mode'. |
| 529 | See also the variable `shell-prompt-pattern'. | 529 | See also the variable `shell-prompt-pattern'. |
| @@ -556,8 +556,8 @@ Otherwise, one argument `-i' is passed to the shell. | |||
| 556 | (name (file-name-nondirectory prog)) | 556 | (name (file-name-nondirectory prog)) |
| 557 | (startfile (concat "~/.emacs_" name)) | 557 | (startfile (concat "~/.emacs_" name)) |
| 558 | (xargs-name (intern-soft (concat "explicit-" name "-args")))) | 558 | (xargs-name (intern-soft (concat "explicit-" name "-args")))) |
| 559 | (if (not (file-exists-p startfile)) | 559 | (unless (file-exists-p startfile) |
| 560 | (setq startfile (concat "~/.emacs.d/.emacs_" name))) | 560 | (setq startfile (concat "~/.emacs.d/init_" name ".sh"))) |
| 561 | (apply 'make-comint-in-buffer "shell" buffer prog | 561 | (apply 'make-comint-in-buffer "shell" buffer prog |
| 562 | (if (file-exists-p startfile) startfile) | 562 | (if (file-exists-p startfile) startfile) |
| 563 | (if (and xargs-name (boundp xargs-name)) | 563 | (if (and xargs-name (boundp xargs-name)) |