Helm: imenu, etags and bm-bookmarks in helm-mini

Created on 30 Sep 2013  路  3Comments  路  Source: emacs-helm/helm

I just now switched from anything to helm and can not get my configuration working. How can I have imenu items and my etags and bm bookmarks in a single menu. I defined my own function based on helm-mini:

(defun helm-hud ()
  "Helm HUD display."
  (interactive)
  (require 'helm-files)
  (require 'helm-imenu)
  (helm-other-buffer '( ;; helm-source-ffap-line
                       helm-source-buffers-list
                       helm-source-recentf
                       helm-source-file-name-history
                       helm-source-file-cache
                       ;; helm-imenu-candidates
                       ;; helm-etags-select
                       ;; helm-source-bm
                       helm-source-files-in-current-dir
                       helm-source-locate)
                       "*helm hud*"))

But unfortunately the three commented sources do not work. helm-imenu works but I can not get it to display in this custom menu...

Also - is there a centralized list of all available sources?

Thank you very much!

question

Most helpful comment

Two of the three commented lines are not sources but commands ;-)
The third one helm-source-bm is unknown.

Use something like:

(defun helm-hud ()
  "Helm HUD display."
  (interactive)
  (require 'helm-files)
  (require 'helm-imenu)
  (helm-other-buffer '(helm-source-buffers-list
                       helm-source-recentf
                       helm-source-file-name-history
                       helm-source-file-cache
                       helm-source-imenu
                       helm-source-etags-select
                       ;; helm-source-bm
                       helm-source-files-in-current-dir
                       helm-source-locate)
                       "*helm hud*"))

All 3 comments

Two of the three commented lines are not sources but commands ;-)
The third one helm-source-bm is unknown.

Use something like:

(defun helm-hud ()
  "Helm HUD display."
  (interactive)
  (require 'helm-files)
  (require 'helm-imenu)
  (helm-other-buffer '(helm-source-buffers-list
                       helm-source-recentf
                       helm-source-file-name-history
                       helm-source-file-cache
                       helm-source-imenu
                       helm-source-etags-select
                       ;; helm-source-bm
                       helm-source-files-in-current-dir
                       helm-source-locate)
                       "*helm hud*"))

Thanks!

It seems there is a problem, but I didn't diagnose it fully. Helm with the above items hangs from time to time. I disabled etags-select and it got better. It still hangs e.g. when I activate it with the cursor on an org-headline. It might be due to some imenu rescanning issue?

You should not run multiples sources at the same time without choosing them carefully.

Was this page helpful?
0 / 5 - 0 ratings