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

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

Re: eshell - editing files


From: Pascal J. Bourguignon
Subject: Re: eshell - editing files
Date: Wed, 08 Dec 2010 15:15:17 -0000
User-agent: Gnus/5.101 (Gnus v5.10.10) Emacs/23.2 (gnu/linux)

Gary <help-gnu-emacs@garydjones.name> writes:

> This may sound like a weird question. Is there any way to configure
> eshell so that when I want to edit a file, e.g. by typing "emacs foo", I
> instead get a new buffer with the file in? It kind of popped up because
> if you do something with svn that requires editing something, I got
> ,----
> | $ svn pe svn:ignore .
> | emacs: Terminal type "dumb" is not powerful enough to run Emacs.
> | It lacks the ability to position the cursor.
> | If that is not the actual type of terminal you have,
> | use the Bourne shell command `TERM=... export TERM' (C-shell:
> | `setenv TERM ...') to specify the correct type.  It may be necessary
> | to do `unset TERMINFO' (C-shell: `unsetenv TERMINFO') as well.
> | svn: system('emacs svn-prop.tmp') returned 256
> `----

Use emacsclient instead.

In your ~/.bashrc put:

export EDITOR=emacsclient
export VISUAL=$EDITOR


In your ~/.emacs put:

(server-start)


For eshell, I don't know how it takes its environment.  Perhaps it
just uses that of emacs, so you could also put in your ~/.emacs:

(require 'cl)
(setf (getenv "EDITOR") "emacsclient"
      (getenv "VISUAL") "emacsclient")


Then instead of typing:

    emacs foo
type:
    emacsclient foo

-- 
__Pascal Bourguignon__                     http://www.informatimago.com/


reply via email to

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