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: Mon, 02 Sep 2019 14:21:05 +0200 Message-ID: <87tv9uhosu.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> 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]:42312) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i4lKd-0002vK-HX for emacs-orgmode@gnu.org; Mon, 02 Sep 2019 08:21:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i4lKb-0000XS-Pj for emacs-orgmode@gnu.org; Mon, 02 Sep 2019 08:21:15 -0400 Received: from 17.mo7.mail-out.ovh.net ([188.165.35.227]:50111) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1i4lKb-0000W0-K9 for emacs-orgmode@gnu.org; Mon, 02 Sep 2019 08:21:13 -0400 Received: from player718.ha.ovh.net (unknown [10.108.57.140]) by mo7.mail-out.ovh.net (Postfix) with ESMTP id 9E3D4130AB5 for ; Mon, 2 Sep 2019 14:21:11 +0200 (CEST) In-Reply-To: <87d0gjhz9l.fsf@gmail.com> (Tim Cross's message of "Mon, 02 Sep 2019 18:35:02 +1000") 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 Cc: Tim Cross On Mon 02-Sep-2019 at 10:35:02 +02, Tim Cross wrote:=20 > I think Eric is correct. There is also another reason. If you edit the > source blocks with C-', then any escaping needed (such as putting a ',' > before '*') will also be automatically handled, plus of course you get > all the programing mode goodness. > > Fraga, Eric writes: > >> On Monday, 2 Sep 2019 at 09:01, garjola@garjola.net wrote: >>> I am using typo-mode (https://github.com/jorgenschaefer/typoel) in my >>> org buffers (actually with a hook for text-mode), but I would like to >>> disable it in source code blocks. >>> >>> I have been unable to find a hook to do so (I understand that >>> org-src-mode-hook is used when editing with =E2=80=98C-c '=E2=80=99 but= not in the org >>> buffer). >> >> I am not entirely sure what you want here. If it is that you want to >> turn off typo-mode when point moves into a src block but while still in >> the whole org buffer, then you cannot do this AFAIK. The best approach >> is to always edit src blocks using C-c ' (org-edit-special) and then you >> can use org-src-mode-hook to do what you want. Thanks to both of you. I usually edit in the separate buffer, but I don=E2=80=99t for one liners. It=E2=80=99s a pity that this is not possible= , but I can live with that! Thanks again! --=20