Function: quail-set-keyboard-layout
quail-set-keyboard-layout is an autoloaded, interactive and
byte-compiled function defined in quail.el.gz.
Signature
(quail-set-keyboard-layout KBD-TYPE)
Documentation
Set the current keyboard layout to the same as keyboard KBD-TYPE.
Since some Quail packages depends on a physical layout of keys (not
characters generated by them), those are created by assuming the
standard layout defined in quail-keyboard-layout-standard. This
function tells Quail system the layout of your keyboard so that what
you type is correctly handled.
Probably introduced at or before Emacs version 20.1.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/international/quail.el.gz
;;;###autoload
(defun quail-set-keyboard-layout (kbd-type)
"Set the current keyboard layout to the same as keyboard KBD-TYPE.
Since some Quail packages depends on a physical layout of keys (not
characters generated by them), those are created by assuming the
standard layout defined in `quail-keyboard-layout-standard'. This
function tells Quail system the layout of your keyboard so that what
you type is correctly handled."
(interactive
(let* ((completion-ignore-case t)
(type (completing-read "Keyboard type: "
quail-keyboard-layout-alist)))
(list type)))
(quail-update-keyboard-layout kbd-type)
(setq quail-keyboard-layout-type kbd-type))