Last active

Push mark when using ido-imenu

  • Download Gist
Emacs Lisp
1 2 3 4 5 6 7 8 9 10 11 12
;; Push mark when using ido-imenu
(defvar push-mark-before-goto-char nil)
(defadvice goto-char (before push-mark-first activate)
(when push-mark-before-goto-char
(defun ido-imenu-push-mark ()
(let ((push-mark-before-goto-char t))

It turns out that the ido-imenu command in use in the screencast is not in Emacs 24. I have no idea where it came from either, but here's the code for that aswell:

Why not just advice ido-imenu?

  (defadvice ido-imenu (before push-mark activate)

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.