From help-request at octave dot org Wed Jan 5 06:09:28 2005 Subject: Re: M-backspace binding in emacs octave mode From: Rafael Laboissiere To: Neilen Marais Cc: help at octave dot org Date: Wed, 5 Jan 2005 13:09:10 +0100 * Neilen Marais [2005-01-05 11:08]: > I'm using the octave mode with xemacs 21. It seems to bind M-backspace > to "mark function", or something like that. I'd prefer to keep it bound > to the standard editing function of backwards killing one word. I assume > I need to put something in my init file, but I'm not sure what to do > when a mode overrides an otherwise global keybinding. The following works for me in XEmacs 21.4.16: (defun octave-better-keybindings () "Better key bindings for Octave mode." (local-set-key [(meta backspace)] 'backward-kill-word)) (add-hook 'octave-mode-hook 'octave-better-keybindings) -- Rafael ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------