emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Redefining M-<tab>
@ 2010-04-22  7:45 Stefan Vollmar
  2010-04-22  8:02 ` Fwd: " Stefan Vollmar
  0 siblings, 1 reply; 2+ messages in thread
From: Stefan Vollmar @ 2010-04-22  7:45 UTC (permalink / raw)
  To: mailing-list-org-mode Mode


[-- Attachment #1.1: Type: text/plain, Size: 739 bytes --]

Hallo,

I want to globally use M-<tab> to cycle between buffers (using a function by Xah Lee). It works fine except when in Org-mode where this key is bound to org-complete in org.el. I have tried:

(add-hook 'org-mode-hook
		  (lambda ()
			(define-key org-mode-map [(meta tab)] 'previous-user-buffer)))

unfortunately, the original Org-mode setting prevails. What is going wrong?

Many thanks in advance.
Warm regards,
 Stefan
-- 
Dr. Stefan Vollmar, Dipl.-Phys.
Head of IT group
Max-Planck-Institut für neurologische Forschung
Gleuelerstr. 50, 50931 Köln, Germany
Tel.: +49-221-4726-213  FAX +49-221-4726-298
Tel.: +49-221-478-5713  Mobile: 0160-93874279
Email: vollmar@nf.mpg.de   http://www.nf.mpg.de







[-- Attachment #1.2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5513 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

* Fwd: Redefining M-<tab>
  2010-04-22  7:45 Redefining M-<tab> Stefan Vollmar
@ 2010-04-22  8:02 ` Stefan Vollmar
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Vollmar @ 2010-04-22  8:02 UTC (permalink / raw)
  To: mailing-list-org-mode Mode


[-- Attachment #1.1: Type: text/plain, Size: 1779 bytes --]

Dear all,

my snippet does work as it should, I had tried it on an already open Org-mode buffer in which case org-mode-hook is not called again (I think) - after restarting Emacs now everything works fine.

Sorry for the noise.
Warm regards,
 Stefan

Begin forwarded message:

> From: Stefan Vollmar <vollmar@nf.mpg.de>
> Date: 22. April 2010 09:45:13 MESZ
> To: mailing-list-org-mode Mode <emacs-orgmode@gnu.org>
> Subject: [Orgmode] Redefining M-<tab>
> 
> Hallo,
> 
> I want to globally use M-<tab> to cycle between buffers (using a function by Xah Lee). It works fine except when in Org-mode where this key is bound to org-complete in org.el. I have tried:
> 
> (add-hook 'org-mode-hook
> 		  (lambda ()
> 			(define-key org-mode-map [(meta tab)] 'previous-user-buffer)))
> 
> unfortunately, the original Org-mode setting prevails. What is going wrong?
> 
> Many thanks in advance.
> Warm regards,
> Stefan
> -- 
> Dr. Stefan Vollmar, Dipl.-Phys.
> Head of IT group
> Max-Planck-Institut für neurologische Forschung
> Gleuelerstr. 50, 50931 Köln, Germany
> Tel.: +49-221-4726-213  FAX +49-221-4726-298
> Tel.: +49-221-478-5713  Mobile: 0160-93874279
> Email: vollmar@nf.mpg.de   http://www.nf.mpg.de
> 
> 
> 
> 
> 
> 
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

-- 
Dr. Stefan Vollmar, Dipl.-Phys.
Head of IT group
Max-Planck-Institut für neurologische Forschung
Gleuelerstr. 50, 50931 Köln, Germany
Tel.: +49-221-4726-213  FAX +49-221-4726-298
Tel.: +49-221-478-5713  Mobile: 0160-93874279
Email: vollmar@nf.mpg.de   http://www.nf.mpg.de







[-- Attachment #1.2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5513 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

end of thread, other threads:[~2010-04-22  8:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-22  7:45 Redefining M-<tab> Stefan Vollmar
2010-04-22  8:02 ` Fwd: " Stefan Vollmar

Code repositories for project(s) associated with this public inbox

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

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).