From: etay.meiri@gmail.com
To: help-gnu-emacs@gnu.org
Subject: Binding a key to an ibuffer filter
Date: Sat, 28 Feb 2009 09:19:34 -0800 (PST) [thread overview]
Message-ID: <d876a378-fab1-4478-859e-89a0945c6ea3@z9g2000yqi.googlegroups.com> (raw)
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
next reply other threads:[~2009-02-28 17:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-28 17:19 etay.meiri [this message]
2009-02-28 17:50 ` Binding a key to an ibuffer filter 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d876a378-fab1-4478-859e-89a0945c6ea3@z9g2000yqi.googlegroups.com \
--to=etay.meiri@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).