Re: Emacs Alt et Meta avec l'option --nw sous X et en mode terminal
On Mon, 17 Oct 2016 15:02:01 +0000
Benoit B <benoitlst@gmail.com> wrote:
> Bonjour,
>
> Pour que Meta soit affecté à la touche Win du clavier et que Alt reste
> bien Alt dans mon .emacs, j'ai ajouté ceci :
>
> ;;Utiliser la touche Win pour Meta
> (setq x-super-keysym 'meta)
> (setq x-alt-keysym 'alt)
> (setq x-meta-keysym 'alt)
>
> Comment faire pour que ça fonctionne en mode terminal ?
>
> Adaptation :
>
> (if (display-graphic-p)
> (progn
> ;; if graphic
> (setq x-super-keysym 'meta)
> (setq x-alt-keysym 'alt)
> (setq x-meta-keysym 'alt)
> )
> ;; else
> ;;(je mets quoi ici ?)
> )
>
> Merci d'avance.
>
> --
> Benoit
>
> Cf.
> https://www.emacswiki.org/emacs/MetaKeyProblems#toc9
>
> http://stackoverflow.com/questions/5795451/how-to-detect-that-emacs-is-in-terminal-mode
bonjour,
essayes ceci : sudo dpkg-reconfigure keyboard-configuration
--
bernard schoenacker <bernard.schoenacker@free.fr>
Reply to: