Ken, just wanted to say thanks for sharing this. I noticed this recently
and wondered about fixing it, and this does it!
On 2016-03-20 at 11:17, John Kitchin wrote:
> I think you mean (setq org-src-tab-acts-natively t) right?
Yes. I think I may have disabled it due to Yasnippet conflicts.
-k.
I think you mean (setq org-src-tab-acts-natively t) right?
It looks like the function I made basically does the same thing, by another
mechanism!
I still wonder why it doesn't work with RET though.
John
---
Professor John Kitchin
Doherty Hall A207F
Department of
On 2016-03-19 at 19:27, John Kitchin wrote:
> Thanks! That is a nice function.
>
> I adapted it to make Tab work in python mode blocks.
This might already do that:
(setq org-src-tab-acts-natively nil)
-k.
Thanks! That is a nice function.
I adapted it to make Tab work in python mode blocks.
Curiously though, this:
(define-key org-mode-map (kbd "")
'(menu-item "org-mode-ret" nil
:filter (lambda (&optional _)
(when
(and
On Saturday, 19 Mar 2016 at 14:03, John Kitchin wrote:
> sure, that is true. I am still surprised that "uncommenting" adds a # which
> in org is a comment. actually that seems to happen everywhere in the
> org-file!
Ah, yes, sorry: I'm so used to commenting doing the right thing (comment
if not al
On 2016-03-19 at 13:20, Eric S Fraga wrote:
> On Saturday, 19 Mar 2016 at 12:44, John Kitchin wrote:
>> I noticed that you try to uncomment a region in a src block a # gets
>> inserted!
>>
>> #+BEGIN_SRC emacs-lisp
>> ; test
>> #+END_SRC
>>
>>
>> If you select ; test and run uncomment-region you
sure, that is true. I am still surprised that "uncommenting" adds a # which
in org is a comment. actually that seems to happen everywhere in the
org-file!
John
---
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon Universi
On Saturday, 19 Mar 2016 at 12:44, John Kitchin wrote:
> I noticed that you try to uncomment a region in a src block a # gets
> inserted!
>
> #+BEGIN_SRC emacs-lisp
> ; test
> #+END_SRC
>
>
> If you select ; test and run uncomment-region you get this:
>
> #+BEGIN_SRC emacs-lisp
> # ; test
> #+END_S