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 KFRHGeUe/15XWQAA0tVLHw (envelope-from ) for ; Fri, 03 Jul 2020 12:04:53 +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 aEYoFeUe/15EGgAAB5/wlQ (envelope-from ) for ; Fri, 03 Jul 2020 12:04:53 +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 7EF5A9403C7 for ; Fri, 3 Jul 2020 12:04:52 +0000 (UTC) Received: from localhost ([::1]:49490 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jrKR0-0000h5-BJ for larch@yhetil.org; Fri, 03 Jul 2020 08:04:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55374) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jrKQS-0000gi-MF for emacs-orgmode@gnu.org; Fri, 03 Jul 2020 08:04:16 -0400 Received: from se05.route25.eu ([2a00:f10:121:b00:43f:e2ff:fe00:1cfb]:48575) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jrKQO-0007Mi-1F for emacs-orgmode@gnu.org; Fri, 03 Jul 2020 08:04:16 -0400 Date: Fri, 3 Jul 2020 14:03:04 +0200 From: Russell Adams To: emacs-orgmode Subject: SOLVED: Exporting HTML on save Message-ID: <20200703120304.GR19456@volibear> Mail-Followup-To: emacs-orgmode MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-Originating-IP: 2a00:f10:400:2:425:b2ff:fe00:1c1 X-SpamExperts-Domain: out.pcextreme.nl X-SpamExperts-Username: 2a00:f10:400:2:425:b2ff:fe00:1c1 X-SpamExperts-Outgoing-Class: ham X-SpamExperts-Outgoing-Evidence: Combined (0.10) X-Recommended-Action: accept X-Filter-ID: Mvzo4OR0dZXEDF/gcnlw0f6LF1GdvkEexklpcFpSF5apSDasLI4SayDByyq9LIhVwoPdxfAEY6pm t3ZQ04syyETNWdUk1Ol2OGx3IfrIJKywOmJyM1qr8uRnWBrbSAGDLZy6c0DmV/7RK6letuHor9Q5 3pMmTXeVbblO3cSIiVBMB87LFujF7RjqB47NAQWFJODXbtOodkPED+RkHjVGH9gpfPe2lDQBFQc5 pWKjU8U1TnR+f0U9cu064nZcMieLAqdkk6hppCDsqsBwLjHur1XxB26GtR7aQdGQ3RxVouves6kz rlSgqbQ9LKX3ylukaHwJ2eESrUp0Iw/gSJ3HqMuR600P9eQ3vodupN36MrkzGQZS068e3EYTgNAB jZkD8TzPF4eG61o+cxFZrUIXowfXJosMX5ZQSlYSVlCDu2na8Lc2iK0mXNgodhRh0E6+UMVFei1G 2PrSIU9EwioS70yFBF2moUWeHNDS4qZDIDBdjx85xQq9VD42UbTRudBo31/E3ahF5MMcDI7KdpjQ KULbtCr8aoTjHIUEuG3LCVsCW2UOyugPPaOGK1ZclZhyJ1oAKHx1qHjvOGXm6QB+mk6ZTzCPKsFf twxbkg5OTEJBSZDxFdMdjhWKQRs1y634DGvlQu7vYJkMGKfUhQOlQ1pBpqUEddayCxics1Zh6GHP yuOh/PJ9pv0rl5NQbiuhoFq5D3wmdJgiQRMmsY9WsLQXE5vbcOTuaXePcTIj4TU2umh3fGg1jVW+ Z2FkFYGtsnE8s3tCVgi5PwxhimjmVsv5o7AP1tpCWmKKDdEHFOii3OVn4utWL+XKWGD4tqKj6abO yKlLsxs8P4CT3FEuG7T5yECVMnRMFosvH6GKOQclk+nkyhKXBoJdL3EK4/k2fZhYXJKK+59EB1qB PUG77+t0txQoQ2Ppz0pOcmevFlTIUfXflhw+3XtbSM7ZRev63i00ZQEMyDANN6LZI4LRPh3rSYX/ eaGgJm5hYtJCcWzrjuU3A3io6xJmD59iFVkbj4uOYBma4XfdaObLlO6ijHbq0Ja1UFGvDgurTtyp e9pcC9ELPwddetNQ5IJa/7LUF1pltLw8grTuGXRUBFGQc9NUcnbrbm01NE0GPgA0GAcQoyxTv0/n qKq1/6bSiVclirWf06kevKuzXnAqzryB8w== X-Report-Abuse-To: spam@semaster01.route25.eu Received-SPF: pass client-ip=2a00:f10:121:b00:43f:e2ff:fe00:1cfb; envelope-from=rladams@adamsinfoserv.com; helo=se05.route25.eu X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/03 08:04:04 X-ACL-Warn: Detected OS = ??? 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, SPF_HELO_NONE=0.001, 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=none; 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: -0.51 X-TUID: zsSB1KtKvKp8 I ran into a situation with a simple file where I wanted it to be exported to html every time I saved. After some troubleshooting and IRC help I was able to get a header/file local variable to work. Posting here for others to save time! Place this at the top of your .org file: # -*- eval: (add-hook 'after-save-hook (lambda() (org-html-export-to-html)) nil 'localonly); -*- ------------------------------------------------------------------ Russell Adams RLAdams@AdamsInfoServ.com PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/ Fingerprint: 1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3