From: pjb@informatimago.com (Pascal J. Bourguignon)
To: help-gnu-emacs@gnu.org
Subject: Re: eshell - editing files
Date: Tue, 22 Jun 2010 11:21:09 +0200 [thread overview]
Message-ID: <87pqzjtoca.fsf@kuiper.lan.informatimago.com> (raw)
In-Reply-To: mailman.6.1277197523.11696.help-gnu-emacs@gnu.org
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/
next parent reply other threads:[~2010-06-22 9:21 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.6.1277197523.11696.help-gnu-emacs@gnu.org>
2010-06-22 9:21 ` Pascal J. Bourguignon [this message]
2010-06-22 10:10 ` eshell - editing files Tim X
2010-06-22 8:52 Gary
2010-06-22 9:17 ` Richard Riley
2010-06-22 10:54 ` Gary
2010-06-22 11:15 ` Thierry Volpiatto
2010-06-22 11:31 ` Richard Riley
2010-06-22 15:44 ` Gary
2010-06-22 15:54 ` Richard Riley
2010-06-22 13:03 ` Matt Lundin
2010-06-22 15:21 ` Gary
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87pqzjtoca.fsf@kuiper.lan.informatimago.com \
--to=pjb@informatimago.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.