From mboxrd@z Thu Jan 1 00:00:00 1970 From: Grant Rettke Subject: How to re-bind C-,? Date: Fri, 26 Sep 2014 12:07:59 -0500 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57985) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXZ06-0008Kq-A0 for emacs-orgmode@gnu.org; Fri, 26 Sep 2014 13:08:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XXZ05-0004Qo-5j for emacs-orgmode@gnu.org; Fri, 26 Sep 2014 13:08:10 -0400 Received: from mail-ob0-x230.google.com ([2607:f8b0:4003:c01::230]:35318) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXZ04-0004P7-SD for emacs-orgmode@gnu.org; Fri, 26 Sep 2014 13:08:09 -0400 Received: by mail-ob0-f176.google.com with SMTP id vb8so1012867obc.21 for ; Fri, 26 Sep 2014 10:07:59 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "emacs-orgmode@gnu.org" Good afternoon, =E2=95=AD=E2=94=80=E2=94=80=E2=94=80=E2=94=80 =E2=94=82 (print emacs-version) =E2=94=82 (print org-version) =E2=95=B0=E2=94=80=E2=94=80=E2=94=80=E2=94=80 =E2=95=AD=E2=94=80=E2=94=80=E2=94=80=E2=94=80 =E2=94=82 "24.3.1" =E2=94=82 =E2=94=82 "8.2.7c" =E2=95=B0=E2=94=80=E2=94=80=E2=94=80=E2=94=80 My goal was to set a new keybinding for two keys like this: =E2=95=AD=E2=94=80=E2=94=80=E2=94=80=E2=94=80 =E2=94=82 (local-set-key (kbd "C-,") (lambda () (interactive) (insert " \\l= arr "))) =E2=94=82 (local-set-key (kbd "C-.") (lambda () (interactive) (insert " \\r= arr "))) =E2=95=B0=E2=94=80=E2=94=80=E2=94=80=E2=94=80 The second works fine. The first does not; it stays bound to `org-cycle-agenda-files' instead. Trying to remove it first and the bind it I did: =E2=95=AD=E2=94=80=E2=94=80=E2=94=80=E2=94=80 =E2=94=82 (local-unset-key (kbd "C-,")) =E2=94=82 (local-set-key (kbd "C-,") (lambda () (interactive) (insert " \\l= arr "))) =E2=95=B0=E2=94=80=E2=94=80=E2=94=80=E2=94=80 With no effect. That got me wondering if the binding occurred to `org-cycle-agenda-files' /after/ mine. I don't think it that is possible or likely because I do not customize agenda at all either via the UI or Lisp. Not sure if I am facing a Lisp thing or where to start. What do you folks think I ought to do here? Kind regards, --=20 Grant Rettke gcr@wisdomandwonder.com | http://www.wisdomandwonder.com/ =E2=80=9CWisdom begins in wonder.=E2=80=9D --Socrates ((=CE=BB (x) (x x)) (=CE=BB (x) (x x))) =E2=80=9CLife has become immeasurably better since I have been forced to st= op taking it seriously.=E2=80=9D --Thompson