diff options
| author | Lars Ingebrigtsen | 2019-10-13 20:06:19 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2019-10-13 20:06:19 +0200 |
| commit | 556ae6674c600e19453a43de51817aa8b4df52fa (patch) | |
| tree | e524e8af50ca05d8f14eeeed84ff9c5582ca9fab /doc | |
| parent | 07cbc3bb1cef9e935d64e358fbaa162e0870ea80 (diff) | |
| download | emacs-556ae6674c600e19453a43de51817aa8b4df52fa.tar.gz emacs-556ae6674c600e19453a43de51817aa8b4df52fa.zip | |
Mention shifted alphabetical control GUI sequences
* doc/emacs/custom.texi (Modifier Keys): Mention that you can bind
shifted alphabetical control sequences in GUI frames (bug#23247).
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/emacs/custom.texi | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/doc/emacs/custom.texi b/doc/emacs/custom.texi index 7bb6142395f..492e15c2495 100644 --- a/doc/emacs/custom.texi +++ b/doc/emacs/custom.texi | |||
| @@ -1903,14 +1903,21 @@ same thing as @kbd{M-a}. This concerns only alphabetical characters, | |||
| 1903 | and does not apply to shifted versions of other keys; for | 1903 | and does not apply to shifted versions of other keys; for |
| 1904 | instance, @kbd{C-@@} is not the same as @kbd{C-2}. | 1904 | instance, @kbd{C-@@} is not the same as @kbd{C-2}. |
| 1905 | 1905 | ||
| 1906 | A @key{Control}-modified alphabetical character is always considered | 1906 | A @key{Control}-modified alphabetical character is generally |
| 1907 | case-insensitive: Emacs always treats @kbd{C-A} as @kbd{C-a}, | 1907 | considered case-insensitive: Emacs always treats @kbd{C-A} as |
| 1908 | @kbd{C-B} as @kbd{C-b}, and so forth. The reason for this is | 1908 | @kbd{C-a}, @kbd{C-B} as @kbd{C-b}, and so forth. The reason for this |
| 1909 | historical. | 1909 | is historical: In non-graphical environments there is no distinction |
| 1910 | between those keystrokes. However, you can bind shifted @key{Control} | ||
| 1911 | alphabetical keystrokes in GUI frames: | ||
| 1912 | |||
| 1913 | @lisp | ||
| 1914 | (global-set-key (kbd "C-S-n") #'previous-line) | ||
| 1915 | @end lisp | ||
| 1910 | 1916 | ||
| 1911 | For all other modifiers, you can make the modified alphabetical | 1917 | For all other modifiers, you can make the modified alphabetical |
| 1912 | characters case-sensitive when you customize Emacs. For instance, you | 1918 | characters case-sensitive (even on non-graphical frames) when you |
| 1913 | could make @kbd{M-a} and @kbd{M-A} run different commands. | 1919 | customize Emacs. For instance, you could make @kbd{M-a} and @kbd{M-A} |
| 1920 | run different commands. | ||
| 1914 | 1921 | ||
| 1915 | Although only the @key{Control} and @key{Meta} modifier keys are | 1922 | Although only the @key{Control} and @key{Meta} modifier keys are |
| 1916 | commonly used, Emacs supports three other modifier keys. These are | 1923 | commonly used, Emacs supports three other modifier keys. These are |