From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Christian Seberino Newsgroups: gmane.emacs.help Subject: Re: trouble adding keyboard shortcut to ibuffer mode Date: Fri, 26 Jun 2020 14:27:09 -0500 Message-ID: References: <3177C6CE-DE49-445C-97C9-7391A4C3AD03@easesoftware.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="112428"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Perry Smith Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jun 26 21:27:42 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jou0j-000T9c-Iq for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 26 Jun 2020 21:27:41 +0200 Original-Received: from localhost ([::1]:57510 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jou0i-0003aT-K8 for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 26 Jun 2020 15:27:40 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44946) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jou0Q-0003aG-KG for help-gnu-emacs@gnu.org; Fri, 26 Jun 2020 15:27:22 -0400 Original-Received: from mail-qt1-x835.google.com ([2607:f8b0:4864:20::835]:46167) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jou0P-0002Fg-1t for help-gnu-emacs@gnu.org; Fri, 26 Jun 2020 15:27:22 -0400 Original-Received: by mail-qt1-x835.google.com with SMTP id i3so8284523qtq.13 for ; Fri, 26 Jun 2020 12:27:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=23a6KENEAox/WMrzyLoWAJP9o5Qv67aUHUPVzyzypes=; b=Pu4r1zp3bzOyLUq8h4fbeR3BUPdUfdoXVvispJ+8wGCiuNZuSqP0jHPhZNAOccuVie Yh1kCNHuA2AYhp5o7GdVY/iAHxZer8dEGJsLStjn/wYCQtlEXAIWv+ITVEIJbnXGfqtg HN/dg9mOFHWIFsexP3NYqNf2+kcy+/xWYNhhoIhEH+RPnSgEn6OMqo9oBaWzhceoJEXZ 2vnuqt5pU3fcuz+CtE53egE4IHlHWhiRah4gj3swy3GNukJUXL9RK9B5zafKyud0CIGs JnCFxlPNh+4iBn0rb+mU7q3zSacOK6NyOcprs531DRKuGJ6A9TvnwRinKJH8GciztODn bNiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=23a6KENEAox/WMrzyLoWAJP9o5Qv67aUHUPVzyzypes=; b=olXpQQ8VdGYGnvHlzRosRalW5myreZt6PqG0ZzXTWCpwbw4IIfwPn9LUyaVTcIOeZo WbEi5KT2Gqu2/BY6LPLss28V0NOv1W5brDGvS/harUC6aQJgmx6RkqC7RmxO/Psd9OA0 GFtasa1eFcIga5SfAVmh/s2uxIjkEc83OHjVb0GHarXx6mVIIbSQwyVecRVuncsElHYK VogG2dztU10viuHs3idig448cVI97CH9lcfbBjc4I+pwgjLDCOjAeRofVf4C65nzbw++ 8GrbizuaNFpYZVW627qpse55owiswWeaUJK8nuCGQQ8eTcRTUrjYQp6Rvs2slExAE96D m2yw== X-Gm-Message-State: AOAM530IKKpPZGbKsWI4l0/ziO16bdmM6KTmX/HSmyGql6mJfkBv1B7I SNhcXL9F5VU8+XjhgXbF52KxsR7DjFje3SE8pnZmMw== X-Google-Smtp-Source: ABdhPJx63/6dJ18tW3WTaplKpLHvXg+tFSvrJEqS5qRHSt8d6ee1MuZ4eLjtFVzGOLfzH+G9aJOG/PoBa+4BiwOfShg= X-Received: by 2002:ac8:1b7d:: with SMTP id p58mr4533614qtk.360.1593199639913; Fri, 26 Jun 2020 12:27:19 -0700 (PDT) In-Reply-To: <3177C6CE-DE49-445C-97C9-7391A4C3AD03@easesoftware.com> Received-SPF: pass client-ip=2607:f8b0:4864:20::835; envelope-from=cseberino@gmail.com; helo=mail-qt1-x835.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:123441 Archived-At: Thanks so much. That worked! On Fri, Jun 26, 2020 at 12:43 PM Perry Smith wrote: > On Jun 26, 2020, at 10:25 AM, Christian Seberino > wrote: > > > > The following does NOT reset C-o (Control key + o) in ibuffer mode. > > Why not? > > > > (add-hook 'ibuffer-mode-hook '(lambda () > > (global-set-key (kbd "C-o") > > 'find-file) > > (ibuffer-auto-mode t) > > > > (ibuffer-switch-to-saved-filter-groups "") > > )) > > My guess is that you need to set that in ibuffer-mode-map. > > (define-key ibuffer-mode-map (kbd "C-o=E2=80=9D) > > in place of > > (global-set-key =E2=80=A6 > > (This is 100% untested). > >