[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How to start shell and rename the buffer
From: |
Decebal |
Subject: |
How to start shell and rename the buffer |
Date: |
Thu, 15 Jan 2009 04:43:30 -0800 (PST) |
User-agent: |
G2/1.0 |
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?