[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] navigate between source code blocks
From: |
Leo Ufimtsev |
Subject: |
Re: [O] navigate between source code blocks |
Date: |
Thu, 30 Apr 2015 12:48:21 -0400 (EDT) |
There are some build in things also,
E.g you can name source code blocks:
#+name: EDE Config
#+begin_src emacs-lisp
(require 'ede)
(global-ede-mode)
(load-file (concat user-emacs-directory "my/cedet-projects.el"))
#+end_src
And then with Helm + org-babel-goto-named-src-block you can search your named
source code blocks.
You can also go to the next source code block via org-babel-next-src-block etc.
Just to hop around. There is also a command for marking blocks.
Worf I think is a bit on the vi side of things. Helm is more generic.
I usually do things like append 'src' to the title of a heading and then do a
helm-heading search to find my source code.
Leo Ufimtsev | Intern Software Engineer @ Eclipse Team
----- Original Message -----
From: "Zhihao Ding" <address@hidden>
To: "Oleh Krehel" <address@hidden>
Cc: address@hidden
Sent: Wednesday, April 29, 2015 4:20:06 AM
Subject: Re: [O] navigate between source code blocks
Thanks very much Oleh.
Best,
Zhihao
> On 28 Apr 2015, at 08:22, Oleh Krehel <address@hidden> wrote:
>
> Hi Zhihao,
>
>> I’ve got a simple question: how to speed up jumping
>> between code blocks?
>
> You might be interested in https://github.com/abo-abo/worf.
> It allows you to traverse anything that starts with "*" or "#+" with
> just "hjkl" keys.
> See the docs here: http://oremacs.com/worf/README.html.
>
> regards,
> Oleh