redefining (meta backspace) as backward-kill-word in xemacs

Thomas Gerds gerds at paracelsus.fdm.uni-freiburg.de
Tue Jan 22 16:42:31 CET 2002


baron at cattell.psych.upenn.edu (Jonathan Baron) writes:

> I added these commands as follows:
> 
> (add-hook 'inferior-ess-mode-hook '(lambda ()
>  (local-unset-key 'delete)
>  (local-unset-key [(meta backspace)])
>  (local-set-key [(meta backspace)] 'backward-kill-word)))
> 
> and it still doesn't work.  I should add that it has always
> worked in an R process.  It fails to work when I use gnuclient
> to edit, e.g., myfile.R.

as to my knowledge there still are no R,S,SAS specific ess-hooks.  i
modified the S-mode function for S specific customizations. you
probably dont want to do the same to the function R-mode but complain
to the ess-gurus instead but here is my solution:

(defun S-mode (&optional proc-name)
  "Major mode for editing S+3 source.  See ess-mode for more help."
  (interactive)
  (if proc-name (S+3-mode proc-name)
    (S+3-mode))				;  (use-local-map s-mode-map))
  (local-unset-key 'delete)
  (local-unset-key [(meta backspace)])
  (setq ess-fancy-comments nil)
)

tomy
-- 
Visit http://www.ibc2002.uni-freiburg.de
for the latest information on IBC 2002
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
ess-help mailing list -- To (un)subscribe, send
subscribe	or	unsubscribe
(in the "body", not the subject !)  To: ess-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the ESS-help mailing list