From mboxrd@z Thu Jan 1 00:00:00 1970 From: garjola@garjola.net Subject: Re: Disable typo-mode in org source code blocks Date: Tue, 03 Sep 2019 08:16:12 +0200 Message-ID: <87a7blhplf.fsf@pc-117-162.i-did-not-set--mail-host-address--so-tickle-me> References: <87mufni3li.fsf@pc-117-162.i-did-not-set--mail-host-address--so-tickle-me> <87r24z6s7z.fsf@ucl.ac.uk> <87d0gjhz9l.fsf@gmail.com> <87tv9uhosu.fsf@pc-117-162.i-did-not-set--mail-host-address--so-tickle-me> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:56560) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i5278-00066h-4t for emacs-orgmode@gnu.org; Tue, 03 Sep 2019 02:16:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i5276-0001v2-Nl for emacs-orgmode@gnu.org; Tue, 03 Sep 2019 02:16:25 -0400 Received: from 14.mo7.mail-out.ovh.net ([178.33.251.19]:33585) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1i5275-0001sD-EG for emacs-orgmode@gnu.org; Tue, 03 Sep 2019 02:16:23 -0400 Received: from player795.ha.ovh.net (unknown [10.109.160.46]) by mo7.mail-out.ovh.net (Postfix) with ESMTP id EF6DC1308E5 for ; Tue, 3 Sep 2019 08:16:20 +0200 (CEST) In-Reply-To: (John Kitchin's message of "Mon, 2 Sep 2019 14:26:22 -0400") 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: John Kitchin Cc: org-mode-email On Mon 02-Sep-2019 at 20:26:22 +02, John Kitchin wrote:=20 > 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 ent= er, 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 test= ed". I can see why you would want this disabled in src blocks, it never put= s the right quote in!=20 > [=E2=80=A6] Hi, Thanks for this! I will have to spend some time before I understand everything, but this is of great help. --=20