emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: "Dauer\, Michael" <michael.dauer@smartpm.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: global macros
Date: Fri, 22 May 2020 17:05:37 +0200	[thread overview]
Message-ID: <87pnawdn7i.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <CAA3mUeak3tn5PdsOfcE2mR7+BH_Gob4JgiYm21GxJHLk=wGBaw@mail.gmail.com> (Michael Dauer's message of "Fri, 22 May 2020 11:29:35 +0200")

Hello,

"Dauer, Michael" <michael.dauer@smartpm.com> writes:

> I want to set some org-mode macro globally in my init.el. E.g. author
> should be set to user-full-name, but I also want other stuff defined.
> Having to import these via setup or include files is not an option.
>
> Macros seem to be "buffer-local", which seems to mean that a cannot just
> add my macros to org-macro-templates.

See `org-export-global-macros'.

> BTW: What would be a good way to implement a general include file for all
> exports, i.e. to generally include a file with each export without having
> to write it into each file/branch to be included. I assume there is an
> export hook before macro expansion at which I can include the file. Which
> hook? What function to include my file?

See `org-export-before-processing-hook'.

Regards,

-- 
Nicolas Goaziou


      reply	other threads:[~2020-05-22 15:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-22  9:29 global macros Dauer, Michael
2020-05-22 15:05 ` Nicolas Goaziou [this message]

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=87pnawdn7i.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=michael.dauer@smartpm.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 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).