Hello Alan,<br><br><div class="gmail_quote">On Thu, Nov 24, 2011 at 10:17 AM, Alan Schmitt <span dir="ltr"><<a href="mailto:alan.schmitt@polytechnique.org" target="_blank">alan.schmitt@polytechnique.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
I tried putting the following in both my .emacs or my Preferences.el, but when I start Aquamacs, C-x C-r is always bound to the default value (I think it's recentf-open-files).<br>
<br>
(defun recentf-ido-find-file ()<br>
  "Find a recent file using Ido."<br>
  (interactive)<br>
  (let ((file (ido-completing-read "Choose recent file: " recentf-list nil t)))<br>
    (when file<br>
      (find-file file))))<br>
<br>
(global-set-key "\C-x\C-r" 'recentf-ido-find-file)<br>
<br>
If I evaluate the last line, then everything goes well.<br>
<br>
Where should I put the rebinding so that it overrides the default one?</blockquote><div><br>Putting your new function & binding command at the end of Preferences.el works fine for me.  Aquamacs 2.4.<br><br>--Nathaniel<br>

</div></div>