emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: tsd@tsdye.com (Thomas S. Dye)
To: Sebastien Vauban
	<public-sva-news-D0wtAvR13HarG/iDocfnWg@plane.gmane.org>
Cc: public-emacs-orgmode-mXXj517/zsQ@plane.gmane.org
Subject: Re: Org mode links for helm
Date: Sat, 24 May 2014 08:52:21 -1000	[thread overview]
Message-ID: <m238fzqaai.fsf@tsdye.com> (raw)
In-Reply-To: <86sinzboqt.fsf@somewhere.org> (Sebastien Vauban's message of "Sat, 24 May 2014 09:49:14 +0200")



Aloha Seb,

Sebastien Vauban <sva-news-D0wtAvR13HarG/iDocfnWg@public.gmane.org>
writes:

> Bastien wrote:
>> tsd-P0awH739Ni4AvxtiuMwx3w@public.gmane.org (Thomas S. Dye) writes:
>>
>>> Has anyone implemented a helm interface for Org-mode #+name lines?  I
>>> think it might be useful for inserting cross reference links.
>>
>> did you try
>> https://github.com/emacs-helm/helm/blob/master/helm-org.el ?
>>
>> Maybe the authors can help I guess.
>
> The author, Thierry Volpiatto, does not support Helm-Org anymore, as
> told in http://article.gmane.org/gmane.emacs.helm.user/617.
>
> BTW, it is only for the Org headlines, not for Org code block names.
>
> Though, this particular question has already gotten tentatives of
> answers, see http://lists.gnu.org/archive/html/emacs-orgmode/2010-07/msg00712.html.
>
> I remember (thanks to Org!) having written the following in my .emacs file:
>
> #+begin_src emacs-lisp
>   ;; extension of Imenu
>   (when (and
>          ;; `org-babel' has been loaded
>          (fboundp 'org-babel-execute-src-block)
>
>          ;; `imenu' has been loaded
>          (fboundp 'try-to-add-imenu))
>
>     (setq org-src-blocks-imenu-generic-expression
>           `(("Snippets" ,org-babel-src-name-w-name-regexp 2)))
>
>     (add-hook 'org-mode-hook
>               (lambda ()
>                 (setq imenu-generic-expression
>                       org-src-blocks-imenu-generic-expression))))
> #+end_src
>
> ... but I never saw any name of code chunk in the "IMenu" menu.
> I only saw the headings of my current Org file.

Thanks for this helpful information.  I didn't know about imenu, but it
appears to provide much of the functionality I'm after.

All the best,
Tom

-- 
Thomas S. Dye
http://www.tsdye.com

  reply	other threads:[~2014-05-24 18:53 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-24  0:11 Org mode links for helm Thomas S. Dye
2014-05-24  4:26 ` Bastien
2014-05-24  7:49   ` Sebastien Vauban
2014-05-24 18:52     ` Thomas S. Dye [this message]
2014-05-25  3:32   ` Thomas S. Dye
2014-05-25 11:28     ` John Kitchin

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=m238fzqaai.fsf@tsdye.com \
    --to=tsd@tsdye.com \
    --cc=public-emacs-orgmode-mXXj517/zsQ@plane.gmane.org \
    --cc=public-sva-news-D0wtAvR13HarG/iDocfnWg@plane.gmane.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).