all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kai Grossjohann <kai@emptydomain.de>
Subject: Re: eshell functions, what is the magic spell.
Date: Wed, 03 Dec 2003 22:10:32 +0000	[thread overview]
Message-ID: <87wu9do8mf.fsf@emptyhost.emptydomain.de> (raw)
In-Reply-To: nzMlb.746$G_1.133401@news.uswest.net

Steven Wu <wus@qwest.net> writes:

> I am in the process of switching to eshell, and my experience so far
> has been good, except one thing that I made a function by "(defun
> eshell/vi...) like the one Kai did, but after finding the file, it
> runs viper mode, (hay, that is what vi supposted to do right). The
> problem is that I cannot get the eshell to know my lisp function vi. I
> put the elisp into a file, and load-in in .emacs, and it took no
> effect. I wonder what is the trick to get eshell notics my functions.

I have this:

(defun eshell/vi (&rest args)
  "Invoke vi, flattening the arguments appropriately."
  (funcall 'find-file (apply 'eshell-flatten-and-stringify args)))

(put 'eshell/vi 'eshell-no-numeric-conversions t)

It seems to work without any further setup.  If you copy the above
verbatim, does it also work for you?

What does your, failing, function look like?

Kai

      reply	other threads:[~2003-12-03 22:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-23  8:46 eshell functions, what is the magic spell Steven Wu
2003-12-03 22:10 ` Kai Grossjohann [this message]

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=87wu9do8mf.fsf@emptyhost.emptydomain.de \
    --to=kai@emptydomain.de \
    /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.