From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: Remove postamble in exported html from org-mode Date: Wed, 30 Dec 2015 11:42:14 +0100 Message-ID: <874mf0nrp5.fsf@gmx.us> References: <871ta4o5e1.fsf@pierrot.dokosmarshall.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39470) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aEEDH-00005r-LU for emacs-orgmode@gnu.org; Wed, 30 Dec 2015 05:42:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aEEDC-0007Gg-I5 for emacs-orgmode@gnu.org; Wed, 30 Dec 2015 05:42:39 -0500 Received: from plane.gmane.org ([80.91.229.3]:37045) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aEEDC-0007Gc-B0 for emacs-orgmode@gnu.org; Wed, 30 Dec 2015 05:42:34 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aEEDA-00082t-VD for emacs-orgmode@gnu.org; Wed, 30 Dec 2015 11:42:33 +0100 Received: from 83-91-99-158-dynamic.dk.customer.tdc.net ([83.91.99.158]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 30 Dec 2015 11:42:32 +0100 Received: from rasmus by 83-91-99-158-dynamic.dk.customer.tdc.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 30 Dec 2015 11:42:32 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Xin writes: > Nick Dokos gmail.com> writes: > >> >> Xin gmail.com> writes: >> >> > Is there any way to globally remove the postamble (author, created date, > etc..) >> > of exported html from org-mode? >> > >> > I tried (setq org-html-postamble nil) in my init.el, but it doesn't work. >> > >> >> Try doing that *after* ox-html is loaded: >> >> (eval-after-load "ox-html" (setq org-html-postamble nil)) >> > > > Thanks for the reply. But it doesn't seem to work either. > > By the way, manually adding #+OPTIONS: html-postamble:nil to each org file does > work. Just everything I tried in init.el has no effect at all (the value of org- > html-postamble is indeed nil when I evaluate it). Does the following snippet work from a clean Emacs? And a dirty? (let ((org-html-postamble nil)) (require 'ox) (with-temp-buffer (insert "x") (org-html-export-as-html))) Rasmus -- Nothing's wrong with an email that ends in a minor key