* How to customize option templates?
@ 2014-01-21 18:13 Frederik
2014-01-21 19:01 ` Nicolas Goaziou
0 siblings, 1 reply; 5+ messages in thread
From: Frederik @ 2014-01-21 18:13 UTC (permalink / raw)
To: emacs-orgmode
Hey there,
is it possible to customize the option templates one can insert via
`C-c C-e #' ? E.g. for productively composing letters it would be nice
to have some of the listed options to be set differently from the default.
Regards
--
Frederik
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to customize option templates?
2014-01-21 18:13 How to customize option templates? Frederik
@ 2014-01-21 19:01 ` Nicolas Goaziou
2014-01-21 19:18 ` Frederik
2014-01-22 14:56 ` Nicolas Goaziou
0 siblings, 2 replies; 5+ messages in thread
From: Nicolas Goaziou @ 2014-01-21 19:01 UTC (permalink / raw)
To: Frederik; +Cc: emacs-orgmode
Hello,
Frederik <freak.fred@gmail.com> writes:
> is it possible to customize the option templates one can insert via
> `C-c C-e #' ? E.g. for productively composing letters it would be nice
> to have some of the listed options to be set differently from the
> default.
I don't think it would be interesting to allow customization since you
might as well create your own template insertion function.
OTOH, hard-coding the order of options doesn't work so well for
back-ends, so the template could, at a bare minimum, follow the order
specified in `org-export-define-backend'. I'll look into it.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to customize option templates?
2014-01-21 19:01 ` Nicolas Goaziou
@ 2014-01-21 19:18 ` Frederik
2014-01-22 11:10 ` Rasmus
2014-01-22 14:56 ` Nicolas Goaziou
1 sibling, 1 reply; 5+ messages in thread
From: Frederik @ 2014-01-21 19:18 UTC (permalink / raw)
To: emacs-orgmode
I just looked at `org-export-define-derived-backend' and saw all the
org-koma-letter-* options -- this will ease most of the pain ;-)
But I did not yet figure out how to set options like
LATEX_CLASS_OPTIONS or how to use German language and smart quotes when
composing a letter.
Thanks and regards
--
Frederik
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to customize option templates?
2014-01-21 19:18 ` Frederik
@ 2014-01-22 11:10 ` Rasmus
0 siblings, 0 replies; 5+ messages in thread
From: Rasmus @ 2014-01-22 11:10 UTC (permalink / raw)
To: emacs-orgmode
Hi Frederik,
Frederik <freak.fred@gmail.com> writes:
> I just looked at `org-export-define-derived-backend' and saw all the
> org-koma-letter-* options -- this will ease most of the pain ;-)
Some people, notably Viktor and Alan, rely on LCO files for such
things. You can place LCO files somewhere in the texlive/miktex path
and load them via #+LCO: file1 file2 . . ..
> But I did not yet figure out how to set options like
> LATEX_CLASS_OPTIONS or
Write your own template. ox-koma-letter has supported it's own
standard template (as compared to the default LaTeX template) for a
while now. A description on how to use this feature is included in
the preamble of the file.
If you insist on not having "non-file-based" customizations use
something like Emacs skeletons or yasnippet (not part of Emacs) to
generate templates.
> how to use German language and smart quotes when composing a letter.
Did you turn on smart quotes?
(setq org-export-with-smart-quotes t).
It works on my system with ox-koma-letter.
Hope it helps,
Rasmus
--
Enough with the bla bla!
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to customize option templates?
2014-01-21 19:01 ` Nicolas Goaziou
2014-01-21 19:18 ` Frederik
@ 2014-01-22 14:56 ` Nicolas Goaziou
1 sibling, 0 replies; 5+ messages in thread
From: Nicolas Goaziou @ 2014-01-22 14:56 UTC (permalink / raw)
To: Frederik; +Cc: emacs-orgmode
> OTOH, hard-coding the order of options doesn't work so well for
> back-ends, so the template could, at a bare minimum, follow the order
> specified in `org-export-define-backend'. I'll look into it.
Done in master. I also reordered keywords in back-ends.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-01-22 14:56 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-21 18:13 How to customize option templates? Frederik
2014-01-21 19:01 ` Nicolas Goaziou
2014-01-21 19:18 ` Frederik
2014-01-22 11:10 ` Rasmus
2014-01-22 14:56 ` Nicolas Goaziou
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.