emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Dauer, Michael" <michael.dauer@smartpm.com>
To: emacs-orgmode@gnu.org
Subject: global macros
Date: Fri, 22 May 2020 11:29:35 +0200	[thread overview]
Message-ID: <CAA3mUeak3tn5PdsOfcE2mR7+BH_Gob4JgiYm21GxJHLk=wGBaw@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 733 bytes --]

Hi,

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.

So what would be a good way to achieve my requirements?

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?

Thanks,
Michael

[-- Attachment #2: Type: text/html, Size: 911 bytes --]

             reply	other threads:[~2020-05-22  9:30 UTC|newest]

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

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='CAA3mUeak3tn5PdsOfcE2mR7+BH_Gob4JgiYm21GxJHLk=wGBaw@mail.gmail.com' \
    --to=michael.dauer@smartpm.com \
    --cc=emacs-orgmode@gnu.org \
    /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).