emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: enhancement/wish


From: Bernhard Koenig
Subject: Re: enhancement/wish
Date: Wed, 29 Oct 2008 16:10:20 -0400

Ido is a nice extension but AFAIK it does not add a toolbar item for
"Recent Files". Neither does recentf.el. I know that many geeks are
switching off the toolbar anyway, but I'm a "mouse person", lol.
That's why I suggested to add this hack to recent.el. There was a
couple of misprints in my earlier post, so I'll post it again:

;; define function to add recent files button
(defun tool-bar-add-recentf ()
  "Add toolbar button for Recent Files."
  (interactive)
  (tool-bar-add-item "clock" (lambda ()
                         (interactive)
                         (popup-menu (easy-menu-filter-return
                                      (recentf-make-menu-items)
                                      "Open Recent")))
                     'recent-files
                     :visible '(and (boundp 'recentf-mode) recentf-mode)
                     :help "Pop up the Recent Files menu")
)

;; write tool-bar-add-recentf into all hooks
(add-hook 'emacs-startup-hook 'tool-bar-add-recentf)
(add-hook 'text-mode-hook 'tool-bar-add-recentf)
(add-hook 'Info-mode-hook 'tool-bar-add-recentf)


On Wed, Oct 29, 2008 at 1:01 PM, Chming <address@hidden> wrote:
> ido does this perfectly




reply via email to

[Prev in Thread] Current Thread [Next in Thread]