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

Re: [linux-team] Emacs



On Sat, 22 Jul 2000, Jean-Francois Straeten wrote:

> 
> 
> Salut la liste,
> 
> Quelqu'un se souvient des instuctions à utiliser pour empêcher la touche
> backspace de produire un C-h dans Emacs ?? 
Bienvenue au club. C'est en effet extrêmement irritant. D'autant plus que
le shell y ajoute son grain de sel.


> 
> Lorsque je lance emacs avec "-nw", le backspace est lié à ce préfix. (Ca me
> ...Grr...$#é&!!)
> 
> Je suis certain d'avoir lu quelque part qu'il y a moyen de changer, mais je
> ne remets pas la main sur cette doc' !!
> 

essaie :
pour emacs sous console :
 (cond ((string= "linux" term) ; linux consoles
              (global-unset-key [backspace] )
              (global-set-key [backspace] 'delete-backward-char)
              (global-unset-key [delete] )
              (global-set-key [delete] 'delete-char)
              (global-set-key [?\M-?] 'help-command)))
       
       ;; Code specific to Emacs 19 under terminal
       ))
pour xemacs 
(cond (running-xemacs
       (define-key global-map 'delete 'delete-char)
       (define-key global-map 'backspace 'backward-delete-char-untabify)
       ))
et éventuellement
	(load-library "delbs")
        (setq delete-key-deletes-forward t)
        (delbs-enable-delete-forward)
        (define-key key-translation-map [backspace] [backspace])


Pascal Dupuis

-- 
3rd Law of Computing:
        Anything that can go wr
fortune: Segmentation violation -- Core dumped

--------
Visit the Linux Supertore Online: http://www.redcorp.com !
If you want to be deleted from the list, send a mail to
majordomo@rtfm.be with "unsubscribe linux-team" in the body.
Archive of the list: http://tania.be.linux.org/