From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Leha Subject: Re: export (to gfm) with file local variables Date: Fri, 21 Aug 2015 20:20:45 +0100 Message-ID: References: <87mvxkvh84.fsf@alphaville.usersys.redhat.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44037) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZSrs5-0006Vm-Nx for emacs-orgmode@gnu.org; Fri, 21 Aug 2015 15:21:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZSrs2-0003er-Gi for emacs-orgmode@gnu.org; Fri, 21 Aug 2015 15:21:01 -0400 Received: from plane.gmane.org ([80.91.229.3]:35244) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZSrs2-0003eh-9v for emacs-orgmode@gnu.org; Fri, 21 Aug 2015 15:20:58 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZSrrw-0007SY-En for emacs-orgmode@gnu.org; Fri, 21 Aug 2015 21:20:52 +0200 Received: from cpc33-cmbg15-2-0-cust4.5-4.cable.virginm.net ([81.102.136.5]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 21 Aug 2015 21:20:52 +0200 Received: from andreas.leha by cpc33-cmbg15-2-0-cust4.5-4.cable.virginm.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 21 Aug 2015 21:20:52 +0200 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 Hi Nick, Nick Dokos writes: > Andreas Leha writes: > >> I forgot... >> >> Andreas Leha writes: >>> Hi all, >>> >>> How can I make my toy sample file below export properly to github >>> flavoured markdown (using ox-gfm)? >>> >>> (Of course including the file local variables in exported *.md file...) >> >> ... and without having them apply to the current *.org file. >> >>> >>> If I try I get >>> ,---- >>> | hack-local-variables: Malformed local variable line: "" >>> `---- >>> >>> Thanks, >>> Andreas >>> >>> >>> PS: the sample file >>> >>> #+md: >>> >>> * Test File >>> >>> With text. >>> >>> >>> #+md: >> >> > > Add a noexport section with a control-L as contents at the end. > Emacs only looks at the last "page" of the file for local variables > so the control-L will stop it. > Thanks! That is amazing! That solves my second problem. So, the original *.org file is indeed opened in Org mode. Nice. Now I still need to know how to export to github flavoured markdown (gfm) with the file local variables set. This still fails with ,---- | hack-local-variables: Malformed local variable line: "" `---- Any help with that? For reference, here is my test org file again: --8<---------------cut here---------------start------------->8--- #+md: * Test File With text. #+md: --8<---------------cut here---------------end--------------->8--- Thanks, Andreas