From: Oleh <ohwoeowho@gmail.com>
To: org mode <emacs-orgmode@gnu.org>
Subject: Navigating org-mode customization file
Date: Sun, 12 Jan 2014 18:42:57 +0100 [thread overview]
Message-ID: <CAA01p3phYJVeaKCeCYLe5XfUQkNAFKftz3vw0JExoz84PMJMfg@mail.gmail.com> (raw)
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
next reply other threads:[~2014-01-12 17:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-12 17:42 Oleh [this message]
2014-01-12 22:48 ` Navigating org-mode customization file John Hendy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAA01p3phYJVeaKCeCYLe5XfUQkNAFKftz3vw0JExoz84PMJMfg@mail.gmail.com \
--to=ohwoeowho@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).