Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

Emacs Alt et Meta avec l'option --nw sous X et en mode terminal

3 réponses
Avatar
Benoit B
Bonjour,

Pour que Meta soit affect=C3=A9 =C3=A0 la touche Win du clavier et que Alt =
reste
bien Alt dans mon .emacs, j'ai ajout=C3=A9 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 =C3=A7a 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-t=
erminal-mode

3 réponses

Avatar
bernard schoenacker
On Mon, 17 Oct 2016 15:02:01 +0000
Benoit B 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
Avatar
Benoit B
Bonjour,
J'ai essayé quelques options, mais ça ne fonctionne pas.
En mode terminal, n'y a-t-il pas un moyen d'afficher la touche ou
(combinaison de) qui est pressée(genre xev pour le mode terminal) ?
Merci d'avance
--
Benoit
Le 17 octobre 2016 à 15:19, bernard schoenacker
a écrit :
On Mon, 17 Oct 2016 15:02:01 +0000
Benoit B wrote:
Bonjour,
Pour que Meta soit affecté à la touche Win du clavier et que A lt 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-i n-terminal-mode

bonjour,
essayes ceci : sudo dpkg-reconfigure keyboard-configuration
--
bernard schoenacker
Avatar
Vincent Lefevre
On 2016-10-17 15:45:10 +0000, Benoit B wrote:
En mode terminal, n'y a-t-il pas un moyen d'afficher la touche ou
(combinaison de) qui est pressée(genre xev pour le mode terminal) ?

J'utilise: cat > /dev/null
Ou mieux: tack
puis: n f n
--
Vincent Lefèvre - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)