summaryrefslogtreecommitdiff
path: root/devdocs/elisp/x11-keysyms.html
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2024-04-07 13:41:34 -0500
committerCraig Jennings <c@cjennings.net>2024-04-07 13:41:34 -0500
commit754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 (patch)
treef1190704f78f04a2b0b4c977d20fe96a828377f1 /devdocs/elisp/x11-keysyms.html
new repository
Diffstat (limited to 'devdocs/elisp/x11-keysyms.html')
-rw-r--r--devdocs/elisp/x11-keysyms.html22
1 files changed, 22 insertions, 0 deletions
diff --git a/devdocs/elisp/x11-keysyms.html b/devdocs/elisp/x11-keysyms.html
new file mode 100644
index 00000000..09bb7067
--- /dev/null
+++ b/devdocs/elisp/x11-keysyms.html
@@ -0,0 +1,22 @@
+ <h3 class="section">Operating on X11 Keysyms</h3> <p>To define system-specific X11 keysyms, set the variable <code>system-key-alist</code>. </p> <dl> <dt id="system-key-alist">Variable: <strong>system-key-alist</strong>
+</dt> <dd>
+<p>This variable’s value should be an alist with one element for each system-specific keysym. Each element has the form <code>(<var>code</var>
+. <var>symbol</var>)</code>, where <var>code</var> is the numeric keysym code (not including the vendor-specific bit, -2**28), and <var>symbol</var> is the name for the function key. </p> <p>For example <code>(168 . mute-acute)</code> defines a system-specific key (used by HP X servers) whose numeric code is -2**28 + 168. </p> <p>It is not crucial to exclude from the alist the keysyms of other X servers; those do no harm, as long as they don’t conflict with the ones used by the X server actually in use. </p> <p>The variable is always local to the current terminal, and cannot be buffer-local. See <a href="multiple-terminals">Multiple Terminals</a>. </p>
+</dd>
+</dl> <p>You can specify which keysyms Emacs should use for the Control, Meta, Alt, Hyper, and Super modifiers by setting these variables: </p> <dl> <dt id="x-ctrl-keysym">Variable: <strong>x-ctrl-keysym</strong>
+</dt> <dt id="x-alt-keysym">Variable: <strong>x-alt-keysym</strong>
+</dt> <dt id="x-meta-keysym">Variable: <strong>x-meta-keysym</strong>
+</dt> <dt id="x-hyper-keysym">Variable: <strong>x-hyper-keysym</strong>
+</dt> <dt id="x-super-keysym">Variable: <strong>x-super-keysym</strong>
+</dt> <dd>
+<p>The name of the keysym that should stand for the Control modifier (respectively, for Alt, Meta, Hyper, and Super). For example, here is how to swap the Meta and Alt modifiers within Emacs: </p>
+<div class="lisp"> <pre class="lisp">(setq x-alt-keysym 'meta)
+(setq x-meta-keysym 'alt)
+</pre>
+</div> </dd>
+</dl><div class="_attribution">
+ <p class="_attribution-p">
+ Copyright &copy; 1990-1996, 1998-2022 Free Software Foundation, Inc. <br>Licensed under the GNU GPL license.<br>
+ <a href="https://www.gnu.org/software/emacs/manual/html_node/elisp/X11-Keysyms.html" class="_attribution-link">https://www.gnu.org/software/emacs/manual/html_node/elisp/X11-Keysyms.html</a>
+ </p>
+</div>