emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Disable typo-mode in org source code blocks


From: garjola
Subject: Re: [O] Disable typo-mode in org source code blocks
Date: Mon, 02 Sep 2019 14:21:05 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)

On Mon 02-Sep-2019 at 10:35:02 +02, Tim Cross <address@hidden>
wrote: 
> 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.

Thanks to both of you. I usually edit in the separate buffer, but I
don’t for one liners. It’s a pity that this is not possible, but I can
live with that!

Thanks again!
-- 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]