[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: global macros
From: |
Nicolas Goaziou |
Subject: |
Re: global macros |
Date: |
Fri, 22 May 2020 17:05:37 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) |
Hello,
"Dauer, Michael" <address@hidden> 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
- global macros, Dauer, Michael, 2020/05/22
- Re: global macros,
Nicolas Goaziou <=