help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: M-backspace binding in emacs octave mode


From: Rafael Laboissiere
Subject: Re: M-backspace binding in emacs octave mode
Date: Wed, 5 Jan 2005 13:09:10 +0100
User-agent: Mutt/1.5.6+20040907i

* Neilen Marais <address@hidden> [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
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]