From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Ufimtsev Subject: Re: navigate between source code blocks Date: Thu, 30 Apr 2015 12:48:21 -0400 (EDT) Message-ID: <815421560.7826741.1430412501517.JavaMail.zimbra@redhat.com> References: <9efc6ad6-1124-45f3-aa09-b017f61553c2@HUB03.ad.oak.ox.ac.uk> <2ce0b90c-8055-4780-9649-4f17be9700cd@HUB02.ad.oak.ox.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50839) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YnrdU-0000gj-7U for emacs-orgmode@gnu.org; Thu, 30 Apr 2015 12:48:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YnrdR-0006w9-2C for emacs-orgmode@gnu.org; Thu, 30 Apr 2015 12:48:28 -0400 Received: from mx4-phx2.redhat.com ([209.132.183.25]:36961) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YnrdQ-0006vt-Rx for emacs-orgmode@gnu.org; Thu, 30 Apr 2015 12:48:25 -0400 In-Reply-To: <2ce0b90c-8055-4780-9649-4f17be9700cd@HUB02.ad.oak.ox.ac.uk> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Zhihao Ding Cc: emacs-orgmode@gnu.org, Oleh Krehel There are some build in things also,=20 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 nam= ed source code blocks.=20 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" To: "Oleh Krehel" Cc: emacs-orgmode@gnu.org Sent: Wednesday, April 29, 2015 4:20:06 AM Subject: Re: [O] navigate between source code blocks Thanks very much Oleh.=20 Best, Zhihao > On 28 Apr 2015, at 08:22, Oleh Krehel wrote: >=20 > Hi Zhihao, >=20 >> I=E2=80=99ve got a simple question: how to speed up jumping >> between code blocks? >=20 > 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. >=20 > regards, > Oleh