A Note On ace-jump-mode

After watching Episode 10 of Emacs Rocks, I fired up ELPA and installed ace-jump-mode. As I indicated in yesterday’s post, you can get it from Marmalade or github. It works beautifully and I’m already addicted to it but I noticed that I couldn’t pop the mark and return to my starting point as Sveen demonstrated in his video. I looked at the code and there was no push-mark anywhere in it. Then I visited github and looked at the code there. Although both files are labeled Version 1.0, the one on github does have the push-mark.

Therefore, if you’d like to try it, you’re probably better off getting it from github. If you’ve already downloaded it from Marmalade with ELPA, you can fix the problem by adding

(add-hook 'ace-jump-mode-before-jump-hook
             (lambda () (push-mark (point) t))) ;until it's fixed in Maramalade

to your .emacs or init.el file.

I didn’t check the other ELPA sites so perhaps you’ll have better luck with one of them. If you do find the correct version on one of the other sites, leave a comment so people will know.

If you’re an Org mode user, you probably don’t want to use the suggested key binding of 【Ctrl+c Space】 because it is used by Org mode. I’m using 【Ctrl+x Space】, which is currently unused (in 23.3).

This entry was posted in General and tagged . Bookmark the permalink.