* yet another rookie question M-x shell
@ 2006-03-08 12:49 billy
2006-03-08 15:15 ` Peter Tury
` (4 more replies)
0 siblings, 5 replies; 9+ messages in thread
From: billy @ 2006-03-08 12:49 UTC (permalink / raw)
I have no problem getting a shell to work.
How do I get more than one shell available?
M-x returns me to the same shell each time.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: yet another rookie question M-x shell
2006-03-08 12:49 yet another rookie question M-x shell billy
@ 2006-03-08 15:15 ` Peter Tury
2006-03-08 15:16 ` Robert D. Crawford
` (3 subsequent siblings)
4 siblings, 0 replies; 9+ messages in thread
From: Peter Tury @ 2006-03-08 15:15 UTC (permalink / raw)
On 8 Mar 2006 04:49:42 -0800, billy wrote:
> I have no problem getting a shell to work.
> How do I get more than one shell available?
> M-x returns me to the same shell each time.
Maybe adjusting same-window-buffer-names variable (C-h v...) can also help?
Br,
P
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: yet another rookie question M-x shell
2006-03-08 12:49 yet another rookie question M-x shell billy
2006-03-08 15:15 ` Peter Tury
@ 2006-03-08 15:16 ` Robert D. Crawford
2006-03-08 19:51 ` Johan Bockgård
` (2 subsequent siblings)
4 siblings, 0 replies; 9+ messages in thread
From: Robert D. Crawford @ 2006-03-08 15:16 UTC (permalink / raw)
"billy" <bp1497@att.com> writes:
> I have no problem getting a shell to work. How do I get more than one
> shell available? M-x returns me to the same shell each time.
M-x rename-buffer
name the old shell something else... a good idea would be to name it
something related to what you feel you need it for i.e. "rootshell" or
"compilation shell" or "this is a shell that I want because I want to
litter my buffer list with lots o' stuff".
Then, after you rename the original shell, you type this command:
M-x shell
and you will have another shell.
Remember, emacs helps those who help themselves. You might find these
commands useful:
C-h i - this will bring you to the top level of your info docs. Then,
if you browse or hit C-s you can search for appropriate items.
M-x man - while not emacs specific, and not ideal for looking for emacs
documentation, I feel that emacs might not be the only thing that you
might need documentation on.
M-x apropos
C-h f <function-name>
C-h v <variable-name>
These are more advanced topics and you should look them up. While not
necessarily useful at this juncture in your education, they will be
helpful later.
The documentation for emacs is quite good. Become familiar with it.
rdc
--
**************************************************************************
Robert D. Crawford rdc1x@comcast.net
Avoid reality at all costs.
**************************************************************************
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: yet another rookie question M-x shell
2006-03-08 12:49 yet another rookie question M-x shell billy
2006-03-08 15:15 ` Peter Tury
2006-03-08 15:16 ` Robert D. Crawford
@ 2006-03-08 19:51 ` Johan Bockgård
2006-03-10 17:56 ` Kevin Rodgers
2006-03-11 1:39 ` mlathe
4 siblings, 0 replies; 9+ messages in thread
From: Johan Bockgård @ 2006-03-08 19:51 UTC (permalink / raw)
"billy" <bp1497@att.com> writes:
> I have no problem getting a shell to work. How do I get more than
> one shell available? M-x returns me to the same shell each time.
C-u M-x shell
--
Johan Bockgård
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: yet another rookie question M-x shell
2006-03-08 12:49 yet another rookie question M-x shell billy
` (2 preceding siblings ...)
2006-03-08 19:51 ` Johan Bockgård
@ 2006-03-10 17:56 ` Kevin Rodgers
2006-03-11 1:39 ` mlathe
4 siblings, 0 replies; 9+ messages in thread
From: Kevin Rodgers @ 2006-03-10 17:56 UTC (permalink / raw)
billy wrote:
> I have no problem getting a shell to work.
> How do I get more than one shell available?
> M-x returns me to the same shell each time.
,----[ C-h f shell RET ]
| shell is an interactive compiled Lisp function in `shell'.
| (shell &optional BUFFER)
|
| Run an inferior shell, with I/O through BUFFER (which defaults to
`*shell*').
| Interactively, a prefix arg means to prompt for BUFFER.
| If BUFFER exists but shell process is not running, make new shell.
The sentence above means `C-u M-x shell RET' does what you want.
| If BUFFER exists and shell process is running, just switch to BUFFER.
| Program used comes from variable `explicit-shell-file-name',
| or (if that is nil) from the ESHELL environment variable,
| or else from SHELL if there is no ESHELL.
| If a file `~/.emacs_SHELLNAME' exists, it is given as initial input
| (Note that this may lose due to a timing error if the shell
| discards input when it starts up.)
| The buffer is put in Shell mode, giving commands for sending input
| and controlling the subjobs of the shell. See `shell-mode'.
| See also the variable `shell-prompt-pattern'.
|
| To specify a coding system for converting non-ASCII characters
| in the input and output to the shell, use C-x RET c
| before M-x shell. You can also specify this with C-x RET p
| in the shell buffer, after you start the shell.
| The default comes from `process-coding-system-alist' and
| `default-process-coding-system'.
|
| The shell file name (sans directories) is used to make a symbol name
| such as `explicit-csh-args'. If that symbol is a variable,
| its value is used as a list of arguments when invoking the shell.
| Otherwise, one argument `-i' is passed to the shell.
|
| (Type C-h m in the shell buffer for a list of commands.)
`----
--
Kevin Rodgers
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: yet another rookie question M-x shell
2006-03-08 12:49 yet another rookie question M-x shell billy
` (3 preceding siblings ...)
2006-03-10 17:56 ` Kevin Rodgers
@ 2006-03-11 1:39 ` mlathe
2006-03-13 16:19 ` Kevin Rodgers
4 siblings, 1 reply; 9+ messages in thread
From: mlathe @ 2006-03-11 1:39 UTC (permalink / raw)
FYI i added this to help me create several buffers with predictable names to
help when coding.
This might be helpful if you always want the same shells open for each emacs
session
;; pre-create shell buffers
(defun thias-shell ()
(interactive)
(shell)
(rename-buffer "*Sdefault*")
(shell)
(rename-buffer "*Shelper*")
(shell)
(rename-buffer "*Scompile*")
(shell)
(rename-buffer "*Srun*")
(split-window-vertically)
(shell)
(rename-buffer "*Slog*")
)
--
View this message in context: http://www.nabble.com/yet-another-rookie-question-M-x-shell-t1260194.html#a3350097
Sent from the Emacs - Help forum at Nabble.com.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: yet another rookie question M-x shell
2006-03-11 1:39 ` mlathe
@ 2006-03-13 16:19 ` Kevin Rodgers
2006-03-13 20:50 ` mlathe
0 siblings, 1 reply; 9+ messages in thread
From: Kevin Rodgers @ 2006-03-13 16:19 UTC (permalink / raw)
mlathe wrote:
> FYI i added this to help me create several buffers with predictable
names to
> help when coding.
>
> This might be helpful if you always want the same shells open for
each emacs
> session
>
> ;; pre-create shell buffers
> (defun thias-shell ()
> (interactive)
> (shell)
> (rename-buffer "*Sdefault*")
> (shell)
> (rename-buffer "*Shelper*")
> (shell)
> (rename-buffer "*Scompile*")
> (shell)
> (rename-buffer "*Srun*")
> (split-window-vertically)
> (shell)
> (rename-buffer "*Slog*")
> )
I think you meant:
;; pre-create shell buffers
(defun thias-shells ()
(interactive)
(shell "*Sdefault*")
(shell "*Shelper*")
(shell "*Scompile*")
(shell "*Srun*")
(split-window-vertically)
(shell "*Slog*")
)
--
Kevin Rodgers
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: yet another rookie question M-x shell
2006-03-13 16:19 ` Kevin Rodgers
@ 2006-03-13 20:50 ` mlathe
2006-03-13 23:37 ` Kevin Rodgers
0 siblings, 1 reply; 9+ messages in thread
From: mlathe @ 2006-03-13 20:50 UTC (permalink / raw)
nope i didn't...
but then again i didn't know that that you can pass in an alternate buffer
name.
i guess i should have RTFM.
thanks for the pointer. (still learning!)
--Matthias
--
View this message in context: http://www.nabble.com/yet-another-rookie-question-M-x-shell-t1260194.html#a3385432
Sent from the Emacs - Help forum at Nabble.com.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: yet another rookie question M-x shell
2006-03-13 20:50 ` mlathe
@ 2006-03-13 23:37 ` Kevin Rodgers
0 siblings, 0 replies; 9+ messages in thread
From: Kevin Rodgers @ 2006-03-13 23:37 UTC (permalink / raw)
mlathe wrote:
> nope i didn't...
> but then again i didn't know that that you can pass in an alternate buffer
> name.
> i guess i should have RTFM.
Or you could have read my previous reply. :-)
> thanks for the pointer. (still learning!)
You're welcome -- even us veterans are still learning!
--
Kevin Rodgers
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2006-03-13 23:37 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-08 12:49 yet another rookie question M-x shell billy
2006-03-08 15:15 ` Peter Tury
2006-03-08 15:16 ` Robert D. Crawford
2006-03-08 19:51 ` Johan Bockgård
2006-03-10 17:56 ` Kevin Rodgers
2006-03-11 1:39 ` mlathe
2006-03-13 16:19 ` Kevin Rodgers
2006-03-13 20:50 ` mlathe
2006-03-13 23:37 ` Kevin Rodgers
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).