From: Edward O'Connor <ted@stewart.floobin.cx>
Subject: Re: Define colon commands in viper?
Date: Wed, 04 Sep 2002 08:53:44 GMT [thread overview]
Message-ID: <87n0qzt2bs.fsf@stewart.floobin.cx> (raw)
In-Reply-To: vafheh6zp5i.fsf@lucy.cs.uni-dortmund.de
> How do I define a colon command in viper, such that `:meep' calls
> the `ding' function, say?
There's probably a better way to do this, but here's what I do in my
.emacs file WRT :open and the like:
;; Make :o and :open work in viper. Why isn't this the default?
(defadvice ex-cmd-assoc (after ted-open-fix activate)
"Make vi's :o and :open work correctly."
(when (string-equal (car ad-return-value) "open")
(setq ad-return-value
'("open" (find-file
(read-file-name "Find file: "))))))
Perhaps you could do something similar for :meep, or :make?
Ted
--
Edward O'Connor
ted@oconnor.cx
next prev parent reply other threads:[~2002-09-04 8:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-03 22:25 Define colon commands in viper? Kai Großjohann
2002-09-04 8:53 ` Edward O'Connor [this message]
2002-09-04 17:18 ` Kai Großjohann
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=87n0qzt2bs.fsf@stewart.floobin.cx \
--to=ted@stewart.floobin.cx \
/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.