From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tim Cross Subject: Re: Disable typo-mode in org source code blocks Date: Mon, 02 Sep 2019 18:35:02 +1000 Message-ID: <87d0gjhz9l.fsf@gmail.com> References: <87mufni3li.fsf@pc-117-162.i-did-not-set--mail-host-address--so-tickle-me> <87r24z6s7z.fsf@ucl.ac.uk> 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]:40818) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i4hnw-0007SK-Gp for emacs-orgmode@gnu.org; Mon, 02 Sep 2019 04:35:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i4hnr-0005kq-FV for emacs-orgmode@gnu.org; Mon, 02 Sep 2019 04:35:14 -0400 Received: from mail-pg1-x52e.google.com ([2607:f8b0:4864:20::52e]:37706) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i4hnr-0005jL-6d for emacs-orgmode@gnu.org; Mon, 02 Sep 2019 04:35:11 -0400 Received: by mail-pg1-x52e.google.com with SMTP id d1so7134346pgp.4 for ; Mon, 02 Sep 2019 01:35:10 -0700 (PDT) In-reply-to: <87r24z6s7z.fsf@ucl.ac.uk> 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: "garjola@garjola.net" 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. --=20 Tim Cross