Hi Bastien,

Bastien wrote:
>> This patch makes it easier to (un)comment lines of babel source.  Now
>> M-; in a soucre code block should Just Work.
>
> It does!  Something I've been wanting since long.

It did work for me (since long) with:

--8<---------------cut here---------------start------------->8---
    ;; allow comment region in the code edit buffer (according to language)
    (defun my-org-comment-dwim (&optional arg)
      (interactive "P")
      (or (org-babel-do-key-sequence-in-edit-buffer (kbd "M-;"))
          (comment-dwim arg)))

    ;; make `C-c C-v C-x M-;' more convenient
    (define-key org-mode-map
      (kbd "M-;") 'my-org-comment-dwim)
--8<---------------cut here---------------end--------------->8---

Best regards,
  Seb

-- 
Sebastien Vauban


Reply via email to