emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: garjola@garjola.net
To: John Kitchin <jkitchin@andrew.cmu.edu>
Cc: org-mode-email <emacs-orgmode@gnu.org>
Subject: Re: Disable typo-mode in org source code blocks
Date: Tue, 03 Sep 2019 08:16:12 +0200	[thread overview]
Message-ID: <87a7blhplf.fsf@pc-117-162.i-did-not-set--mail-host-address--so-tickle-me> (raw)
In-Reply-To: <CAJ51ETo+5L1J2kGS-pw6EytZvSqihE_bm5t_mTvq9kHGGrTz5A@mail.gmail.com> (John Kitchin's message of "Mon, 2 Sep 2019 14:26:22 -0400")

On Mon 02-Sep-2019 at 20:26:22 +02, John Kitchin
<jkitchin@andrew.cmu.edu> wrote: 
> You can use cursor-sensor mode for this if you have emacs 26ish. The idea is you set cursor-sensor functions on a region that do something depending on whether you enter or leave the region. Below, I tie into
> the org font lock mechanisms to add these properties so that when you enter, typo mode gets turned off, and when you leave it gets turned back on. I use a similar approach to put src-block specific key maps
> on src blocks. There are two examples of functions that are "lightly tested". I can see why you would want this disabled in src blocks, it never puts the right quote in! 
>

[…]

Hi,

Thanks for this! I will have to spend some time before I understand
everything, but this is of great help.
-- 

      parent reply	other threads:[~2019-09-03  6:16 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-02  7:01 Disable typo-mode in org source code blocks garjola
2019-09-02  8:02 ` Fraga, Eric
2019-09-02  8:35   ` Tim Cross
2019-09-02 12:21     ` garjola
2019-09-02 18:26       ` John Kitchin
2019-09-03  0:13         ` Tim Cross
2019-09-03  6:16         ` garjola [this message]

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=87a7blhplf.fsf@pc-117-162.i-did-not-set--mail-host-address--so-tickle-me \
    --to=garjola@garjola.net \
    --cc=emacs-orgmode@gnu.org \
    --cc=jkitchin@andrew.cmu.edu \
    /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).