in emacs one may use tags to navigate source code. i use etags to generate a tags list for my source code tree and then to navigate one simply needs to hit
M-.
which stands for
find-tag
now to find the next occurance of the same tag one needs to hit
C-u M-.
several times in succession to navigate to all the occurances of the tag. typing that key chord is very discomforting and annoying. one has to move the hands away from the home row and then contort the digits to execute the key chord. in an earlier attempt to make life easier i mapped the Control key to the CapsLock key on the pc keyboard, but that did not offer much relief so i thought of biding an usused key to this key chord.
being an inexperienced noob and after querrying the WWW for many related searches i found a working solution which is as follows
edit your .emacs file to include the following line
(global-set-key [f9] (read-kbd-macro "C-u M-."))
this basically maps the function key F9 to the culprit key chord in question.
inspiration/hints for the above hack comes from the following page
http://xahlee.org/emacs/keyboard_shortcuts.html
another way is to use
Meta Zero Meta Dot
something about argument passing Meto Zero thru Nice passes argument to the next set of key chords … more about this later..
[...] http://awhan.wordpress.com/2010/03/03/emacs-find-next-occurrence-of-tag-or-c-u-m-made-easier-to-type… emacs find next occurrence of tag OR “C-u M-.” made easier to type [...]
See also my vj-find-tag function on this page
http://ozymandias.dk/emacs/emacs.html