Optimal emacs shell for coding
  Home FAQ Contact Sign in
gnu.emacs.help only
 
Advanced search
POPULAR GROUPS

more...

gnu.emacs.help Profile…
 Up
Optimal emacs shell for coding         


Author: Jonathan Groll
Date: Aug 11, 2008 04:38

I know of only three ways to get an emacs shell:

M-x terminal-emulator
M-x shell
M-x eshell
(There is also M-x shell-command RET)

Question is, which one is best for coding? Lately I've found myself
opening up an xterm session to do miscellaneous coding support tasks -
and am mostly struggling with different readline history keybindings
(eg. I'm used to entering C-r at a shell to get (reverse-i-search) -
obviously in an emacs shell this will have a dfferent outcome to what
I desire!

Any recommendations?

Many thanks,
Jonathan Groll.
23 Comments
Re: Optimal emacs shell for coding         


Author: Xah
Date: Aug 11, 2008 06:30

On Aug 11, 4:38 am, Jonathan Groll groll.co.za> wrote:
> I know of only three ways to get an emacs shell:
>
> M-x terminal-emulator
> M-x shell
> M-x eshell
> (There is also M-x shell-command RET)
>
> Question is, which one is best for coding? Lately I've found myself
> opening up an xterm session to do miscellaneous coding support tasks -
> and am mostly struggling with different readline history keybindings
> (eg. I'm used to entering C-r at a shell to get (reverse-i-search) -
> obviously in an emacs shell this will have a dfferent outcome to what
> I desire!
>
> Any recommendations?

They really all have different purposs.

• M-x shell-command
lets you run a single shell cammand.
Show full article (1.75Kb)
no comments
Re: Optimal emacs shell for coding         


Author: Mike Treseler
Date: Aug 11, 2008 06:40

Jonathan Groll wrote:
> I know of only three ways to get an emacs shell:
> M-x terminal-emulator
> M-x shell
> M-x eshell
> (There is also M-x shell-command RET)
...
> Any recommendations?
>
> Many thanks,
> Jonathan Groll.
>

I use M-x shell for vhdl simulation/debug sessions.
I like having both unix history
*and* emacs search/editing of the old commands.
Sometimes I use a little xterm on the side.

-- Mike Treseler
no comments
Re: Optimal emacs shell for coding         


Author: Lennart Borgman (gmail)
Date: Aug 11, 2008 08:24

Xah wrote:
> In general, the shell-command and shell is most useful. Run eshell if
> you are in Windows and don't have cygwin installed and want to run
> unix commands such as ls, cd, mkdir, etc. If you need to run telnet,

Have you tried for example "grep" from within eshell? Quite nice.
no comments
Re: Optimal emacs shell for coding         


Author: Xah
Date: Aug 11, 2008 08:49

On Aug 11, 8:24 am, "Lennart Borgman (gmail)"
gmail.com> wrote:
> Xahwrote:
>> In general, the shell-command and shell is most useful. Run eshell if
>> you are in Windows and don't have cygwin installed and want to run
>> unix commands such as ls, cd, mkdir, etc. If you need to run telnet,
>
> Have you tried for example "grep" from within eshell? Quite nice.

Let me see...

-----------------------------

Welcome to the Emacs shell
Show full article (1.10Kb)
no comments
Re: Optimal emacs shell for coding         


Author: weber
Date: Aug 11, 2008 09:44

On Aug 11, 10:40 am, Mike Treseler gmail.com> wrote:
> Jonathan Groll wrote:
>> I know of only three ways to get an emacs shell:
>> M-x terminal-emulator
>> M-x shell                                                                                                    
>> M-x eshell                  
>> (There is also M-x shell-command RET)
> ...
>> Any recommendations?
>
>> Many thanks,
>> Jonathan Groll.
>
> I use M-x shell for vhdl simulation/debug sessions.
> I like having both unix history
> *and* emacs search/editing of the old commands.
> Sometimes I use a little xterm on the side.
>
>    -- Mike Treseler
Show full article (0.81Kb)
no comments
Re: Optimal emacs shell for coding         


Author: Lennart Borgman (gmail)
Date: Aug 11, 2008 09:47

Xah wrote:
> On Aug 11, 8:24 am, "Lennart Borgman (gmail)"
> gmail.com> wrote:
>> Xahwrote:
>>> In general, the shell-command and shell is most useful. Run eshell if
>>> you are in Windows and don't have cygwin installed and want to run
>>> unix commands such as ls, cd, mkdir, etc. If you need to run telnet,
>> Have you tried for example "grep" from within eshell? Quite nice.
>
> Let me see...
>
> -----------------------------
>
> Welcome to the Emacs shell
>
>
> ~/web/emacs $ which grep
> eshell/grep is a compiled Lisp function in `em-unix.el'
> ~/web/emacs $ ls | grep lin
> elisp_link_report.el modernization.html ...
Show full article (1.27Kb)
no comments
Re: Optimal emacs shell for coding         


Author: Eli Zaretskii
Date: Aug 11, 2008 12:18

> From: Xah gmail.com>
> Date: Mon, 11 Aug 2008 06:30:02 -0700 (PDT)
>
> Run eshell if you are in Windows and don't have cygwin installed and
> want to run unix commands such as ls, cd, mkdir, etc.

Actually, Cygwin is not the only Unixy shell in town, and ls does not
need a Unixy shell to be run on Windows, to say nothing of cd and
mkdir. So to be useful _and_ correct, this should be rephrased as

Rin Eshell if you are on Windows and don't have a Unixy shell
(sh.exe) installed.

Of course, Eshell is much more than just a Unixy shell emulation, so
even the above is misleading...
no comments
Re: Optimal emacs shell for coding         


Author: Mike Treseler
Date: Aug 11, 2008 23:33

weber wrote:
> Do you have any personal functions for working with vhdl and/or vhdl
> simulation/synthesis tools?

vhdl-mode covers design entry and simulation make very well.
I copy/paste vsim commands from my code comments to M-x shell.
My special sauce for synthesis is here:
http://mysite.verizon.net/miketreseler/
I may make vhdl-mode templates someday.

-- Mike Treseler
no comments
Re: Optimal emacs shell for coding         


Author: Tim X
Date: Aug 12, 2008 01:02

Xah gmail.com> writes:
> On Aug 11, 4:38 am, Jonathan Groll groll.co.za> wrote:
>> I know of only three ways to get an emacs shell:
>>
>> M-x terminal-emulator
>> M-x shell
>> M-x eshell
>> (There is also M-x shell-command RET)
>>
>> Question is, which one is best for coding? Lately I've found myself
>> opening up an xterm session to do miscellaneous coding support tasks -
>> and am mostly struggling with different readline history keybindings
>> (eg. I'm used to entering C-r at a shell to get (reverse-i-search) -
>> obviously in an emacs shell this will have a dfferent outcome to what
>> I desire!
>>
Show full article (4.01Kb)
no comments
1 2 3