From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Bormann Subject: Re: Using orgtbl-mode with markdown: hfmt1 Date: Tue, 12 Sep 2017 16:16:31 +0200 Message-ID: <36461530-F6FE-43A1-A475-D3C65BFBDF17@tzi.org> References: Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38614) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1drlzW-0002LF-Au for emacs-orgmode@gnu.org; Tue, 12 Sep 2017 10:16:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1drlzQ-0006ME-Kl for emacs-orgmode@gnu.org; Tue, 12 Sep 2017 10:16:42 -0400 Received: from mailhost.informatik.uni-bremen.de ([2001:638:708:30c9::12]:62655) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1drlzQ-0006Ko-8o for emacs-orgmode@gnu.org; Tue, 12 Sep 2017 10:16:36 -0400 In-Reply-To: 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" To: Kaushal Modi Cc: emacs-org list On Sep 12, 2017, at 16:07, Kaushal Modi wrote: >=20 > On Tue, Sep 12, 2017, 9:56 AM Carsten Bormann wrote: >=20 >=20 > Works perfectly. But it would be nice not to have to apply this patch = each time I update. >=20 > Would it be possible to make hfmt1 configurable? > (Preferably, using a buffer-local variable so I don=E2=80=99t have to = break tables in org-mode proper?) >=20 > I use a different approach to do the same thing using ox-gfm (based on = a SO solution). Look for orgtbl-to-gfm function here[1] and also my = notes at the end of that file. >=20 > [1]: = https://github.com/kaushalmodi/.emacs.d/blob/master/setup-files/setup-mark= down.el > --=20 > Kaushal Modi >=20 I am aware of a number of these workarounds. The specific one you are proposing does not work for me as the markdown = tables are in collaboratively edited documents and I can=E2=80=99t get = the other authors to do any special dance around the tables; orgtbl-mode = has to just work. Besides, a 83-line workaround for what can be done seamlessly by = changing one line of code? (Yes, it would be nice to also preserve the column alignments, but we = already have a solution that gets around that limitation.) Gr=C3=BC=C3=9Fe, Carsten