all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: jump to place holder and mapping
Date: Thu, 31 Mar 2005 10:00:01 -0700	[thread overview]
Message-ID: <3b2oktF6fo888U1@individual.net> (raw)
In-Reply-To: <slrnd4n65a.45s.fab@node1.ddorf.de>

Fabian Braennstroem wrote:
 > On 2005-03-30, Fabian Braennstroem <fab@ddorf.de> wrote:
 >> I am trying 'vim' for a while now and actually like the
 >> jumping to place holders indicated by '<++>' with 'C-j'. It
 >> is very usefull, when you have small macro/abbreviations
 >> including these place holders; e.g. in latex there exist a
 >> macro:
 >>
 >> \frac{<++>}{<++>}<++>
 >>
 >> So you are able to complete quickly the fraction.
 >>
 >> Furthermore, defining those 'macros' is pretty easy in vim
 >> with the 'imap' funtion; so writing in insert-mode some
 >> special shortcut, it expands to the wanted output with those
 >> place holders.
 >
 > I just found 'tempo'. I think that should work for this, but
 > I can't find anything like placeholders...

Isn't that exactly what is meant by the "points of interest"?

;; A template is defined as a list of items to be inserted in the
;; current buffer at point. Some of the items can be simple strings,
;; while other can control formatting or define special points of
;; interest in the inserted text.

;; If a template defines a "point of interest" that point is inserted
;; in a buffer-local list of "points of interest" that the user can
;; jump between with the commands `tempo-backward-mark' and
;; `tempo-forward-mark'. If the template definer provides a prompt for
;; the point, and the variable `tempo-interactive' is non-nil, the
;; user will be prompted for a string to be inserted in the buffer,
;; using the minibuffer.

-- 
Kevin Rodgers

  reply	other threads:[~2005-03-31 17:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-30 15:05 jump to place holder and mapping Fabian Braennstroem
2005-03-31  7:27 ` Fabian Braennstroem
2005-03-31 17:00   ` Kevin Rodgers [this message]
2005-03-31 17:43     ` Fabian Braennstroem

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=3b2oktF6fo888U1@individual.net \
    --to=ihs_4664@yahoo.com \
    /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.