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 > Date: 22. April 2010 09:45:13 MESZ > To: mailing-list-org-mode Mode > Subject: [Orgmode] Redefining M- > > Hallo, > > I want to globally use M- 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