From: "Fraga, Eric" <e.fraga@ucl.ac.uk>
To: "garjola@garjola.net" <garjola@garjola.net>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: Disable typo-mode in org source code blocks
Date: Mon, 2 Sep 2019 08:02:42 +0000 [thread overview]
Message-ID: <87r24z6s7z.fsf@ucl.ac.uk> (raw)
In-Reply-To: <87mufni3li.fsf@pc-117-162.i-did-not-set--mail-host-address--so-tickle-me> (garjola@garjola.net's message of "Mon, 02 Sep 2019 09:01:29 +0200")
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 ‘C-c '’ 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.
--
Eric S Fraga via Emacs 27.0.50, Org release_9.2.4-401-gfabd6d
next prev parent reply other threads:[~2019-09-02 8:02 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 [this message]
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
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87r24z6s7z.fsf@ucl.ac.uk \
--to=e.fraga@ucl.ac.uk \
--cc=emacs-orgmode@gnu.org \
--cc=garjola@garjola.net \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.