From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marco Wahl Subject: Re: Parens matching off in babel code block Date: Sun, 05 May 2019 17:02:37 +0200 Message-ID: <84imupc5bm.fsf@gmail.com> References: <5ccb4155.1c69fb81.e3d19.0601@mx.google.com> <847eb88uu7.fsf@gmail.com> <87imusbkpk.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([209.51.188.92]:40940) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hNIfA-0007CX-Aa for emacs-orgmode@gnu.org; Sun, 05 May 2019 11:02:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hNIf8-00005n-FO for emacs-orgmode@gnu.org; Sun, 05 May 2019 11:02:47 -0400 Received: from [195.159.176.226] (port=42394 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hNIf8-0008Py-7y for emacs-orgmode@gnu.org; Sun, 05 May 2019 11:02:46 -0400 Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1hNIf5-000oMp-S1 for emacs-orgmode@gnu.org; Sun, 05 May 2019 17:02:43 +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" To: emacs-orgmode@gnu.org "Fraga, Eric" writes: > On Thursday, 2 May 2019 at 21:11, Lawrence Bottorff wrote: >> Well, at least there is a sane explanation. Ironically, I was also about to >> complain about all my loose ">"s getting flagged. So they are related! >> Would there be a way to make an exception for < and > inside of actual code >> forms? Languages need them for "greater than" and "less than". > > I have the following in my org mode customization: > > (modify-syntax-entry ?< ".") > (modify-syntax-entry ?> ".") > > as many of my org files have these symbols not as paren but as operators. I'll follow your lead and add the lines (add-hook 'org-mode-hook (lambda () (modify-syntax-entry ?< ".") (modify-syntax-entry ?> "."))) to my config. Thanks, -- Marco