[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Disable typo-mode in org source code blocks
From: |
Tim Cross |
Subject: |
Re: [O] Disable typo-mode in org source code blocks |
Date: |
Mon, 02 Sep 2019 18:35:02 +1000 |
User-agent: |
mu4e 1.3.4; emacs 27.0.50 |
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 <address@hidden> writes:
> On Monday, 2 Sep 2019 at 09:01, address@hidden 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.
--
Tim Cross