help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: yet another rookie question M-x shell


From: Kevin Rodgers
Subject: Re: yet another rookie question M-x shell
Date: Mon, 13 Mar 2006 09:19:44 -0700
User-agent: Mozilla Thunderbird 0.9 (X11/20041105)

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]