emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [Orgmode] Re: [BABEL] [PROPOSAL] Seemless editing of Babel Blocks


From: Tom Short
Subject: Re: [Orgmode] Re: [BABEL] [PROPOSAL] Seemless editing of Babel Blocks
Date: Fri, 3 Sep 2010 15:08:46 -0400

On Thu, Sep 2, 2010 at 7:41 PM, Dan Davison <address@hidden> wrote:
> There have been some recent changes with the aim of making code blocks
> more pleasant to use in Org, such as fontification and making TAB and
> other major-mode commands available in the Org buffer (with a current
> master branch, see the variable `org-src-tab-acts-natively' and
> `org-babel-do-key-sequence-in-edit-buffer' which is bound to key
> bindings C-c C-v x and C-c C-v C-x)

I really like the fontification and the tab-acts-natively. Would it be
hard to extend
that to a few more keys? Here's a first try for a nice key to have in
R source blocks
("_"):

(add-hook 'org-mode-hook
   (lambda ()
     (define-key org-mode-map "_"
       '(lambda () (interactive)
          (org-babel-do-key-sequence-in-edit-buffer (kbd "_")))))

That works in R (and other) blocks, but doesn't work outside that. Any hints to
get me a little further?

- Tom



reply via email to

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