all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Binding a key to an ibuffer filter
@ 2009-02-28 17:19 etay.meiri
  2009-02-28 17:50 ` Drew Adams
       [not found] ` <mailman.2094.1235843417.31690.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 4+ messages in thread
From: etay.meiri @ 2009-02-28 17:19 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

I'm trying to bind a key to a filter in ibuffer-mode. I created a
filter to display only C/C++ source files and it works ok manually (I
can switch to it using ibuffer-switch-to-saved-filter). I also added
the following code to .emacs:

(defun ibuffer-display-source-files ()
  (ibuffer-switch-to-saved-filter "c"))

(define-key ibuffer-mode-map [f1] 'ibuffer-display-source-files)

However, when I click F1 in ibuffer I get the following error:

Wrong type argument: commandp, ibuffer-display-source-files

Any idea?

Thanks,

-Etay Meiri


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-02-28 19:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-28 17:19 Binding a key to an ibuffer filter etay.meiri
2009-02-28 17:50 ` Drew Adams
     [not found] ` <mailman.2094.1235843417.31690.help-gnu-emacs@gnu.org>
2009-02-28 18:49   ` etay.meiri
2009-02-28 19:54     ` Drew Adams

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.