From: "Berry, Charles" <ccberry@ucsd.edu>
To: Rasmus <rasmus@gmx.us>
Cc: "eric@ericabrahamsen.net" <eric@ericabrahamsen.net>,
"emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>,
"mail@nicolasgoaziou.fr" <mail@nicolasgoaziou.fr>
Subject: Re: [patch] structure snippet completions
Date: Fri, 8 Dec 2017 21:07:39 +0000 [thread overview]
Message-ID: <0DE4E68E-7A0F-4602-9BB1-2DA7BB2D5DD7@ucsd.edu> (raw)
In-Reply-To: <87h8t23yag.fsf@gmx.us>
> On Dec 7, 2017, at 3:37 PM, Rasmus <rasmus@gmx.us> wrote:
>
> I have also pushed the code. "<s"-like snippet expansion should be
> enabled by requiring org-tempo.
>
Thanks. I was in a deep funk without "<s" and friends. Feeling better now.
> Let me know about any issues.
>
Maybe make `tempo-match-finder' be "^ *\\(<[[:word:]]+\\)" so it will match things like "<la" when I want a latex align environment. Or let the user customize it.
I use some latex environments that would be easier to keep track of if I had multiple characters after the "<".
I know I can implement this in my own setup. Just saying this might be nice for other users, too.
Also, something like "<list" as `(describe-variable 'org-tempo-tags)' is helpful if you have a lot of customizations to keep track of.
A minor gotcha: if you `(require 'org-tempo)' after an org buffer has been created you will need to (org-mode-restart) the buffer to enable completions. I got stuck trying to add custom templates until I realized this.
Chuck
next prev parent reply other threads:[~2017-12-08 21:07 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-04 16:22 [patch] structure snippet completions Rasmus
2017-12-04 20:55 ` Nicolas Goaziou
2017-12-05 10:22 ` Rasmus
2017-12-05 20:29 ` Nicolas Goaziou
2017-12-07 23:37 ` Rasmus
2017-12-07 23:49 ` Rasmus
2017-12-08 2:38 ` Kaushal Modi
2017-12-08 20:16 ` Rasmus
2017-12-08 21:07 ` Berry, Charles [this message]
2017-12-08 21:20 ` Rasmus
2017-12-09 13:42 ` numbchild
2017-12-09 16:22 ` Rasmus
2017-12-09 17:23 ` Berry, Charles
2017-12-10 11:09 ` Rasmus
2017-12-04 21:37 ` Eric Abrahamsen
2017-12-05 10:24 ` Rasmus
2017-12-05 19:14 ` Eric Abrahamsen
-- strict thread matches above, loose matches on Subject: below --
2017-12-04 16:20 Rasmus
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
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0DE4E68E-7A0F-4602-9BB1-2DA7BB2D5DD7@ucsd.edu \
--to=ccberry@ucsd.edu \
--cc=emacs-orgmode@gnu.org \
--cc=eric@ericabrahamsen.net \
--cc=mail@nicolasgoaziou.fr \
--cc=rasmus@gmx.us \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).