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

2019-09-02 Thread garjola
On Mon 02-Sep-2019 at 20:26:22 +02, John Kitchin wrote: > You can use cursor-sensor mode for this if you have emacs 26ish. The idea is > you set cursor-sensor functions on a region that do something depending on > whether you enter or leave the region. Below, I tie into > the org font lock mech

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

2019-09-02 Thread Tim Cross
Hi John, this is a greet bit of info. My first thought when the question was asked was "Hmm, what you need is some sort of facility that could run a function when the cursor moves in and out of a region". I then discounted the idea because of the amount of supporting functionality which would nee

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

2019-09-02 Thread John Kitchin
You can use cursor-sensor mode for this if you have emacs 26ish. The idea is you set cursor-sensor functions on a region that do something depending on whether you enter or leave the region. Below, I tie into the org font lock mechanisms to add these properties so that when you enter, typo mode get

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

2019-09-02 Thread garjola
On Mon 02-Sep-2019 at 10:35:02 +02, Tim Cross 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 mod

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

2019-09-02 Thread Tim Cross
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 a

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

2019-09-02 Thread Fraga, Eric
On Monday, 2 Sep 2019 at 09:01, garj...@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 understan

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

2019-09-02 Thread garjola
Hi, 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 n