unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Rename *shell* at startup
@ 2008-12-18  9:12 Decebal
  2008-12-18  9:48 ` Andy Stewart
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Decebal @ 2008-12-18  9:12 UTC (permalink / raw)
  To: help-gnu-emacs

In my .emacs I have:
    ;;; Start in shell mode
    (setq initial-major-mode 'shell)

In this way I start Emacs in a buffer in shell-mode name '*shell*'. Is
there a way to let this buffer be named 'shell' automatically?


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Rename *shell* at startup
  2008-12-18  9:12 Rename *shell* at startup Decebal
@ 2008-12-18  9:48 ` Andy Stewart
  2008-12-18  9:50 ` Andy Stewart
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Andy Stewart @ 2008-12-18  9:48 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

Decebal <CLDWesterhof@gmail.com> writes:

> In my .emacs I have:
>     ;;; Start in shell mode
>     (setq initial-major-mode 'shell)
>
> In this way I start Emacs in a buffer in shell-mode name '*shell*'. Is
> there a way to let this buffer be named 'shell' automatically?
Please use my extension "multi-shell.el", i have upload it to
"gmane.emacs.help".

"multi-shell" can automatically change buffer name, and do more and
more.

Regards

  -- Andy





^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Rename *shell* at startup
  2008-12-18  9:12 Rename *shell* at startup Decebal
  2008-12-18  9:48 ` Andy Stewart
@ 2008-12-18  9:50 ` Andy Stewart
       [not found] ` <mailman.3027.1229594410.26697.help-gnu-emacs@gnu.org>
  2008-12-18 15:25 ` Andreas Politz
  3 siblings, 0 replies; 5+ messages in thread
From: Andy Stewart @ 2008-12-18  9:50 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

Decebal <CLDWesterhof@gmail.com> writes:

> In my .emacs I have:
>     ;;; Start in shell mode
>     (setq initial-major-mode 'shell)
>
> In this way I start Emacs in a buffer in shell-mode name '*shell*'. Is
> there a way to let this buffer be named 'shell' automatically?

Sorry, I have upload my extension "multi-shell" to gmane.emacs.sources.
Please try it.

  -- Andy





^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Rename *shell* at startup
       [not found] ` <mailman.3027.1229594410.26697.help-gnu-emacs@gnu.org>
@ 2008-12-18 13:19   ` Decebal
  0 siblings, 0 replies; 5+ messages in thread
From: Decebal @ 2008-12-18 13:19 UTC (permalink / raw)
  To: help-gnu-emacs

On 18 dec, 10:50, Andy Stewart <lazycat.mana...@gmail.com> wrote:
> Decebal <CLDWester...@gmail.com> writes:
> > In my .emacs I have:
> >     ;;; Start in shell mode
> >     (setq initial-major-mode 'shell)
>
> > In this way I start Emacs in a buffer in shell-mode name '*shell*'. Is
> > there a way to let this buffer be named 'shell' automatically?
>
> Sorry, I have upload my extension "multi-shell" to gmane.emacs.sources.
> Please try it.

I'll will do that. Thanks.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Rename *shell* at startup
  2008-12-18  9:12 Rename *shell* at startup Decebal
                   ` (2 preceding siblings ...)
       [not found] ` <mailman.3027.1229594410.26697.help-gnu-emacs@gnu.org>
@ 2008-12-18 15:25 ` Andreas Politz
  3 siblings, 0 replies; 5+ messages in thread
From: Andreas Politz @ 2008-12-18 15:25 UTC (permalink / raw)
  To: help-gnu-emacs

Decebal wrote:
> In my .emacs I have:
>     ;;; Start in shell mode
>     (setq initial-major-mode 'shell)
> 
> In this way I start Emacs in a buffer in shell-mode name '*shell*'. Is
> there a way to let this buffer be named 'shell' automatically?

The shell function accepts a buffer argument, so
(lambda nil (shell "shell"))
will probably work.

-ap


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-12-18 15:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-18  9:12 Rename *shell* at startup Decebal
2008-12-18  9:48 ` Andy Stewart
2008-12-18  9:50 ` Andy Stewart
     [not found] ` <mailman.3027.1229594410.26697.help-gnu-emacs@gnu.org>
2008-12-18 13:19   ` Decebal
2008-12-18 15:25 ` Andreas Politz

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).