To jump around in my init.el I used to do
(setq imenu-generic-expression '((nil ";; \\[ \\(.*\\)" 1))) and then put markers in the file like so
;; [ my marker here To call imenu i have a handy shortcut
(local-set-key (kbd "C-*") 'imenu) This worked nice but does not anymore... Now i only get
user-error: No items suitable for an index found in this buffer toggle-debug-on-error and removing user-error from ignored-debug-errors and calling imenu again gives me
Debugger entered--Lisp error: (user-error "No items suitable for an index found in this buffer") signal(user-error ("No items suitable for an index found in this buffer")) user-error("No items suitable for an index found in this buffer") imenu--make-index-alist() imenu-choose-buffer-index() byte-code("\300 C\207" [imenu-choose-buffer-index] 1) call-interactively(imenu nil nil) My emacs version is 24.3.1. What am i doing wrong? How can i get the intended imenu behavior working the way i have had it?