Et quand je tappe "<<", ça me fait un "« ", c'est à dire un guillemet français ouvrant suivi d'une espace insécable. (Et j'ai du faire "< C-q <" pour tapper le "<<")
Et quand je tappe "<<", ça me fait un "« ", c'est à dire un guillemet
français ouvrant suivi d'une espace insécable. (Et j'ai du faire "<
C-q <" pour tapper le "<<")
Et quand je tappe "<<", ça me fait un "« ", c'est à dire un guillemet français ouvrant suivi d'une espace insécable. (Et j'ai du faire "< C-q <" pour tapper le "<<")
-- Matthieu
Christophe Cuq
Matthieu Moy writes:
Et quand je tappe "<<", ça me fait un "« ", c'est à dire un guillemet français ouvrant suivi d'une espace insécable. (Et j'ai du faire "< C-q <" pour tapper le "<<")
Pourquoi ne pas utiliser tout simplement le iso-insert ?
Et quand je tappe "<<", ça me fait un "« ", c'est à dire un guillemet
français ouvrant suivi d'une espace insécable. (Et j'ai du faire "<
C-q <" pour tapper le "<<")
Pourquoi ne pas utiliser tout simplement le iso-insert ?
Et quand je tappe "<<", ça me fait un "« ", c'est à dire un guillemet français ouvrant suivi d'une espace insécable. (Et j'ai du faire "< C-q <" pour tapper le "<<")
Pourquoi ne pas utiliser tout simplement le iso-insert ?
C-x 8 < donne : « C-x 8 > donne : »
C'est quand même plus simple non :) ?
-- CHC
Matthieu Moy
Christophe Cuq writes:
Pourquoi ne pas utiliser tout simplement le iso-insert ?
C-x 8 < donne : « C-x 8 > donne : »
C'est quand même plus simple non :) ?
Ca marche aussi, mais pour tapper "« ", la séquence de touches est un peu plus longue, c'est tout !
Sinon, sur un azerty, il y a aussi AltGr-z et AltGr-x qui ont le mérite de marcher en dehors d'Emacs.
-- Matthieu
Christophe Cuq <chc@alussinan.org> writes:
Pourquoi ne pas utiliser tout simplement le iso-insert ?
C-x 8 < donne : «
C-x 8 > donne : »
C'est quand même plus simple non :) ?
Ca marche aussi, mais pour tapper "« ", la séquence de touches est un
peu plus longue, c'est tout !
Sinon, sur un azerty, il y a aussi AltGr-z et AltGr-x qui ont le
mérite de marcher en dehors d'Emacs.
Quelqu'un a-t-il la bonne solution ? Et surtout comment on trouve cela sous Emacs ?
L'affectation de commandes à des caractères non-ascii est assez embrouillée. Avec un C-x = sur ton guillemet ouvrant, j'obtiens
Char: « (04253, 2219, 0x8ab, file AB) ...
(253 octal = 171 décimal = ab hexa), et ça marche. Pour des explications, cf. le manuel Emacs, Keys Binding, Non-ASCII Rebinding
,---- | Move point before the character, then type `C-x ='. This displays a | message in the minibuffer, showing the character code in three ways, | octal, decimal and hexadecimal, all within a set of parentheses. Use | the second of the three numbers, the decimal one, inside the vector to | bind: | | (global-set-key [DECIMAL-CODE] 'some-function) `----
Raphaël Berbain avait posté ici une méthode plus élégante :
(require 'cl)
(defmacro with-multibyte-kbd (&rest body) "Execute the forms in BODY with kbd redefined to handle multibyte characters. The value returned is the value of the last form in BODY." `(labels ((kbd (keys) (read-kbd-macro (string-make-unibyte keys)))) ,@body))
Quelqu'un a-t-il la bonne solution ? Et surtout comment on trouve cela
sous Emacs ?
L'affectation de commandes à des caractères non-ascii est assez
embrouillée. Avec un C-x = sur ton guillemet ouvrant, j'obtiens
Char: « (04253, 2219, 0x8ab, file AB) ...
(253 octal = 171 décimal = ab hexa), et ça marche. Pour des
explications, cf. le manuel Emacs, Keys Binding, Non-ASCII Rebinding
,----
| Move point before the character, then type `C-x ='. This displays a
| message in the minibuffer, showing the character code in three ways,
| octal, decimal and hexadecimal, all within a set of parentheses. Use
| the second of the three numbers, the decimal one, inside the vector to
| bind:
|
| (global-set-key [DECIMAL-CODE] 'some-function)
`----
Raphaël Berbain avait posté ici une méthode plus élégante :
(require 'cl)
(defmacro with-multibyte-kbd (&rest body)
"Execute the forms in BODY with kbd redefined to handle multibyte characters.
The value returned is the value of the last form in BODY."
`(labels ((kbd (keys) (read-kbd-macro (string-make-unibyte keys))))
,@body))
Quelqu'un a-t-il la bonne solution ? Et surtout comment on trouve cela sous Emacs ?
L'affectation de commandes à des caractères non-ascii est assez embrouillée. Avec un C-x = sur ton guillemet ouvrant, j'obtiens
Char: « (04253, 2219, 0x8ab, file AB) ...
(253 octal = 171 décimal = ab hexa), et ça marche. Pour des explications, cf. le manuel Emacs, Keys Binding, Non-ASCII Rebinding
,---- | Move point before the character, then type `C-x ='. This displays a | message in the minibuffer, showing the character code in three ways, | octal, decimal and hexadecimal, all within a set of parentheses. Use | the second of the three numbers, the decimal one, inside the vector to | bind: | | (global-set-key [DECIMAL-CODE] 'some-function) `----
Raphaël Berbain avait posté ici une méthode plus élégante :
(require 'cl)
(defmacro with-multibyte-kbd (&rest body) "Execute the forms in BODY with kbd redefined to handle multibyte characters. The value returned is the value of the last form in BODY." `(labels ((kbd (keys) (read-kbd-macro (string-make-unibyte keys)))) ,@body))
Quelqu'un a-t-il la bonne solution ? Et surtout comment on trouve cela sous Emacs ?
L'affectation de commandes à des caractères non-ascii est assez embrouillée. Avec un C-x = sur ton guillemet ouvrant, j'obtiens
Char: « (04253, 2219, 0x8ab, file AB) ...
(253 octal = 171 décimal = ab hexa), et ça marche. Pour des explications, cf. le manuel Emacs, Keys Binding, Non-ASCII Rebinding
,---- | Move point before the character, then type `C-x ='. This displays a | message in the minibuffer, showing the character code in three ways, | octal, decimal and hexadecimal, all within a set of parentheses. Use | the second of the three numbers, the decimal one, inside the vector to | bind: | | (global-set-key [DECIMAL-CODE] 'some-function) `----
admirable frontière entre la documentation et la réalité ;-) Dommage, je commence à bazarder XEmacs parce que je trouvais leur doc en dessous de tout - et donc cela de Emacs bien mieux faite.
Quelqu'un a-t-il la bonne solution ? Et surtout comment on trouve cela
sous Emacs ?
L'affectation de commandes à des caractères non-ascii est assez
embrouillée. Avec un C-x = sur ton guillemet ouvrant, j'obtiens
Char: « (04253, 2219, 0x8ab, file AB) ...
(253 octal = 171 décimal = ab hexa), et ça marche. Pour des
explications, cf. le manuel Emacs, Keys Binding, Non-ASCII Rebinding
,----
| Move point before the character, then type `C-x ='. This displays a
| message in the minibuffer, showing the character code in three ways,
| octal, decimal and hexadecimal, all within a set of parentheses. Use
| the second of the three numbers, the decimal one, inside the vector to
| bind:
|
| (global-set-key [DECIMAL-CODE] 'some-function)
`----
admirable frontière entre la documentation et la réalité ;-) Dommage,
je commence à bazarder XEmacs parce que je trouvais leur doc en
dessous de tout - et donc cela de Emacs bien mieux faite.
Quelqu'un a-t-il la bonne solution ? Et surtout comment on trouve cela sous Emacs ?
L'affectation de commandes à des caractères non-ascii est assez embrouillée. Avec un C-x = sur ton guillemet ouvrant, j'obtiens
Char: « (04253, 2219, 0x8ab, file AB) ...
(253 octal = 171 décimal = ab hexa), et ça marche. Pour des explications, cf. le manuel Emacs, Keys Binding, Non-ASCII Rebinding
,---- | Move point before the character, then type `C-x ='. This displays a | message in the minibuffer, showing the character code in three ways, | octal, decimal and hexadecimal, all within a set of parentheses. Use | the second of the three numbers, the decimal one, inside the vector to | bind: | | (global-set-key [DECIMAL-CODE] 'some-function) `----
admirable frontière entre la documentation et la réalité ;-) Dommage, je commence à bazarder XEmacs parce que je trouvais leur doc en dessous de tout - et donc cela de Emacs bien mieux faite.