[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to start shell and rename the buffer
From: |
Decebal |
Subject: |
Re: How to start shell and rename the buffer |
Date: |
Thu, 15 Jan 2009 06:37:22 -0800 (PST) |
User-agent: |
G2/1.0 |
On 15 jan, 15:23, tyler <tyler.sm...@mail.mcgill.ca> wrote:
> > I sometimes want to start emacs with a shell, but I also want to
> > rename the default name '*shell*'.
> > I have:
> > emacs -title ${TITLE} --eval '(shell) (rename-buffer "shell")'
>
> > But the buffername is not renamed.
> > In *Messages* I see:
> > (emacs --eval (shell) (rename-buffer "shell"))
>
> > And not an error or a warning.
> > If I do 'M-:' and then '(rename-buffer "shell")' the buffer is
> > renamed.
>
> > What am I doing wrong?
>
> This works for me:
>
> emacs -title mytitle --eval '(progn (shell) (rename-buffer "myshell"))'
Works for me also. Thanks.
> I guess the --eval flag runs only the first complete command, requiring
> the (progn ...) to do both. Just guessing, though.
Souns logical. When I want to do more as one command, I'll use progn.