From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 4I3VB6qbx14ndAAA0tVLHw (envelope-from ) for ; Fri, 22 May 2020 09:30:18 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id cN6yA6qbx16SOQAAB5/wlQ (envelope-from ) for ; Fri, 22 May 2020 09:30:18 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 530719402D1 for ; Fri, 22 May 2020 09:30:17 +0000 (UTC) Received: from localhost ([::1]:49898 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jc40M-0004Ch-Si for larch@yhetil.org; Fri, 22 May 2020 05:30:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52218) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jc3zy-0004CV-0H for emacs-orgmode@gnu.org; Fri, 22 May 2020 05:29:50 -0400 Received: from mail-vk1-xa29.google.com ([2607:f8b0:4864:20::a29]:41836) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jc3zw-0004T7-9I for emacs-orgmode@gnu.org; Fri, 22 May 2020 05:29:49 -0400 Received: by mail-vk1-xa29.google.com with SMTP id j28so2422525vkn.8 for ; Fri, 22 May 2020 02:29:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smartpm-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=9RH3Qh+YY4VvS1wWHio9hartfmr5kGG1vj6ussn2nt4=; b=vHzRctUmLGZ0Wa59wbuO7H5wIcZ1Eqnfz8ENAcHx7sHMwp3w45F0aZz+SxKcu6/V9/ DxSk882AEI3S9T9B6OYuhG15QhiuOwUa7mwCgBWyggNbSqIO13DgMT80HoHmDk/Pw1Ld wrmEutpgRF6v4xK15FUJulRqc8Tb5FDx8xL8KsFZL5VdO6VkoY83X+K93c4hu9ati28J pNtizgyRbvS6y4wQbctSgd5z0Phhx9Myax6d+D77lTpGAgGN8tzmUbPU4EJksOOsubav HhSJF9Wd4ciqIRVsxnScbBZ/SVMqLEbpqSz+mL/WVtfRJBcdY+BqFiGM+vU1HlPbUNth Vdqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=9RH3Qh+YY4VvS1wWHio9hartfmr5kGG1vj6ussn2nt4=; b=FLQpW1NtkidPrWtPBXF0nTDNfZ7b7g9MeYt5M9m/UkDy63Sr2JboG9ZSN26ZaGz7mV 4yj+Z3BFXso3gr3/9LQt5t2SRJu9V0UmWcePSlkO7j5Z1XYeUvTkN8lnT78GYHaGoaox qb8PRNIcu0IZDraZh7VuWmJMu2QMUunhOfT4XJ1I28pM12f7c5/wSkEO8ZeQhlLHz3r9 +qhPzR9VYfN18b3hqrjVRAhfFahHFWLxUxnEpUDCL0AkMxL5dk8P8orE2A9STIW3kSGB nf8dJLcG4u+oLrQ5KANAig6W5q/dNcqEfw/RfeIMSyWEg/GVMGsIgg2LqF/ULC+GZSlO dZ0Q== X-Gm-Message-State: AOAM533rIxotSqKCjQvOzeZeccEqXnL/1z+5uioq5kx3DGStu9j/7/Ji w8C0sWpoK6UjvnHPcjNt2M4wF1Zt7XphSOS4y1inX/TaUQo= X-Google-Smtp-Source: ABdhPJzlAsq3CJR9u/rFmHhZ4xFIErF2/HzM6uYXozeJPx3LVC2dqCamBBwOboapnV2e7NVuv9PQl9HvC6Iej/x2r4Q= X-Received: by 2002:a05:6122:54a:: with SMTP id y10mr11720245vko.23.1590139785940; Fri, 22 May 2020 02:29:45 -0700 (PDT) MIME-Version: 1.0 From: "Dauer, Michael" Date: Fri, 22 May 2020 11:29:35 +0200 Message-ID: Subject: global macros To: emacs-orgmode@gnu.org Content-Type: multipart/alternative; boundary="00000000000015a8fa05a6394589" Received-SPF: pass client-ip=2607:f8b0:4864:20::a29; envelope-from=michael.dauer@smartpm.com; helo=mail-vk1-xa29.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=smartpm-com.20150623.gappssmtp.com header.s=20150623 header.b=vHzRctUm; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: -1.21 X-TUID: Dy+82D0jxlAX --00000000000015a8fa05a6394589 Content-Type: text/plain; charset="UTF-8" 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 --00000000000015a8fa05a6394589 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

I want to set some org-mode macro g= lobally in my init.el. E.g. author should be set to user-full-name, but I a= lso want other stuff defined. Having to import these via setup or include f= iles is not an option.

Macros seem to be "buf= fer-local", which seems to mean that a cannot just add my macros to or= g-macro-templates.

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

BTW: What would be a good= way to implement=C2=A0a general include file for all exports, i.e. to gene= rally 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 e= xpansion at which I can include the file. Which hook? What function to incl= ude my file?

Thanks,
Michael
<= br>
--00000000000015a8fa05a6394589--