all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Inject some eshell features into shell?
@ 2003-10-15 19:36 Kai Grossjohann
  2003-10-15 21:07 ` Stefan Monnier
                   ` (3 more replies)
  0 siblings, 4 replies; 18+ messages in thread
From: Kai Grossjohann @ 2003-10-15 19:36 UTC (permalink / raw)


Even though I now know how to do for loops in eshell, I was wondering
if the following idea might be fun to play with.  Maybe someone has
already done this and would like to share?

I find that the feature I use most in eshell is the fact that I can
type "vi foo.c" to edit that file in Emacs, as if I had typed C-x C-f
foo.c.  (This does suffer from the bad effect that I'm somehow
conditioned to do file editing differently if I have started it with
vi, so suddenly I'm seeing a lot of hjkl and ZZ in my files ;-)  It
is, however, a perfect companion to Viper.  I never could get used to
typing "find-file foo.c".)

So maybe it would be nifty if one could somehow hook a function into
the RET key in shell-mode that looks if it recognizes the command on
the current line.  If so, it invokes a given Lisp function, depending
on the command.  That way, I could get the "vi foo.c" back.  Other
candidates would be "man" and "less", I guess.

(Another feature I use a lot is the completion, but I think marrying
pcomplete and shell-mode isn't going to be difficult.)

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

end of thread, other threads:[~2003-10-22 10:55 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-15 19:36 Inject some eshell features into shell? Kai Grossjohann
2003-10-15 21:07 ` Stefan Monnier
2003-10-17 19:31 ` Kevin Rodgers
2003-10-17 22:44   ` Kevin Rodgers
2003-10-19 10:56     ` Kai Grossjohann
     [not found]     ` <mailman.1974.1066561040.21628.help-gnu-emacs@gnu.org>
2003-10-20 16:55       ` Kevin Rodgers
2003-10-19 12:31 ` Loops and scripting in eshell (was: Inject some eshell features into shell?) Oliver Scholz
2003-10-19 15:06   ` Loops and scripting in eshell Kai Grossjohann
     [not found]   ` <mailman.1980.1066576051.21628.help-gnu-emacs@gnu.org>
2003-10-19 20:04     ` Oliver Scholz
2003-10-19 20:15       ` Oliver Scholz
2003-10-19 20:45         ` David Kastrup
2003-10-20 21:27           ` Kai Grossjohann
2003-10-20 23:44             ` Oliver Scholz
2003-10-21  9:05               ` David Kastrup
2003-10-21 16:05                 ` Kai Grossjohann
2003-10-20 19:48   ` Reiner Steib
2003-10-21  8:55     ` Oliver Scholz
2003-10-22 10:55 ` Inject some eshell features into shell? Matthias Meulien

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.