emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] [POLL] Should Org tempo be enabled by default? (expand templates


From: Aaron Ecay
Subject: Re: [O] [POLL] Should Org tempo be enabled by default? (expand templates thru e.g. "<s[TAB]")
Date: Sun, 06 May 2018 21:34:54 +0100
User-agent: Notmuch/0.26 (https://notmuchmail.org) Emacs/27.0.50 (x86_64-pc-linux-gnu)

Hi Rasmus,

2018ko maiatzak 5an, Rasmus-ek idatzi zuen:

> Cool, I at least did not know that one.
> Can you a reproducible way to try it out?
> Without having to make my own templates etc.

I havenʼt done anything with it myself.

You can open up a blank .el file and test out some of emacsʼs built-in
templates.  M-x srecode-minor-mode, and then “C-c / /” will prompt you for
the name of a template to insert.  Entering file:major-mode at the
resulting prompt might be the most interesting one.  Certain keys are
bound to common templates, examples are “C-c / f” for inserting a function
and “C-c / v” for a variable

The template file corresponding to this is located at
$YOUR_EMACS_INSTALL_DIR/etc/srecode/el.srt.

Just as an aside, I have now also learned that emacs also includes
skeleton.el, which is yet a third template expansion library.  Sigh.

-- 
Aaron Ecay



reply via email to

[Prev in Thread] Current Thread [Next in Thread]