From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oleh Subject: Navigating org-mode customization file Date: Sun, 12 Jan 2014 18:42:57 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52252) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W2P3s-0006Rp-QG for emacs-orgmode@gnu.org; Sun, 12 Jan 2014 12:43:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W2P3r-0006ep-MV for emacs-orgmode@gnu.org; Sun, 12 Jan 2014 12:43:00 -0500 Received: from mail-wi0-x233.google.com ([2a00:1450:400c:c05::233]:59659) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W2P3r-0006cu-FP for emacs-orgmode@gnu.org; Sun, 12 Jan 2014 12:42:59 -0500 Received: by mail-wi0-f179.google.com with SMTP id hi5so260727wib.0 for ; Sun, 12 Jan 2014 09:42:58 -0800 (PST) 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: org mode Hi all, I'd like to share a small hack that might be useful for people that edit their org config a lot. Mine is more than 500 lines. A great way to jump about a source file is `helm-semantic'. But it only allows to jump to function and variable definition within current file. My org file is full of `setq' statements which it doesn't see. For instance, today I wanted to navigate to `org-capture-templates'. isearch with "cap" entered gives me 15 positions, 14 of them false. The new function that I wrote, `lispy-goto', gives 2 results: (setq org-capture-templates...) and (require 'org-capture). It uses semantic - a built-in package and helm - a popular completion package. Another example, `lispy-goto' with "loca" instead of 11 candidates of isearch gives (setq org-archive-location...) and (setq system-time-locale...). Anyway, maybe it's useful for at least one more person other than me. The code is at https://github.com/abo-abo/lispy, as well as "lispy" in MELPA. It's not necessary to enable `lispy-mode' to call `lispy-goto' with M-x. However, if it's enabled, the shortcut is "g" when point is positioned before "(" or after ")" in the code. regards, Oleh