emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Navigating org-mode customization file
@ 2014-01-12 17:42 Oleh
  2014-01-12 22:48 ` John Hendy
  0 siblings, 1 reply; 2+ messages in thread
From: Oleh @ 2014-01-12 17:42 UTC (permalink / raw)
  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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-01-12 22:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-12 17:42 Navigating org-mode customization file Oleh
2014-01-12 22:48 ` John Hendy

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).