emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Fraga, Eric" <e.fraga@ucl.ac.uk>
To: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: scratching an itch: parenthesis matching in org
Date: Mon, 8 Apr 2019 11:15:22 +0000	[thread overview]
Message-ID: <875zro929i.fsf@ucl.ac.uk> (raw)

Hello,

just in case this is helpful to anybody out there, one of the (very
minor) annoyances for me writing in org has been that org treats angle
brackets (<>) as parenthesis in terms of syntax.  I write a lot of
mathematics in my document and these are typically operators and seldom
intended as brackets.  Having these known as parentheses in org's syntax
table makes showing matching parentheses not work properly in most of my
documents.

Adding these two lines to my org mode hook:

    (modify-syntax-entry ?< ".")
    (modify-syntax-entry ?> ".")

fixes the behaviour.

I haven't seen any negative repercussions (yet...).

Itched satisfactorily scratched! :)

-- 
Eric S Fraga via Emacs 27.0.50, Org release_9.2.3-327-g3375f0

                 reply	other threads:[~2019-04-08 11:15 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=875zro929i.fsf@ucl.ac.uk \
    --to=e.fraga@ucl.ac.uk \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).