mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-02-05 20:43:08 +00:00
; Fix spelling; be consistent with "key binding" (Bug#52674)
This commit is contained in:
parent
e56dd354c7
commit
cf6dc1838a
@ -474,8 +474,8 @@ insert a curved quote even when Electric Quote is disabled or
|
||||
inactive, you can type @kbd{C-x 8 [} for @t{‘}, @kbd{C-x 8 ]} for
|
||||
@t{’}, @kbd{C-x 8 @{} for @t{“}, and @kbd{C-x 8 @}} for @t{”}.
|
||||
@xref{Inserting Text}. Note that the value of
|
||||
@code{electric-quote-chars} does not affect these keybindings, they
|
||||
are not keybindings of @code{electric-quote-mode} but bound in
|
||||
@code{electric-quote-chars} does not affect these key bindings, they
|
||||
are not key bindings of @code{electric-quote-mode} but bound in
|
||||
@code{global-map}.
|
||||
|
||||
@node Filling
|
||||
|
@ -605,7 +605,7 @@ selects the window immediately to the right of the currently selected
|
||||
one, and similarly for the left, up, and down counterparts.
|
||||
@code{windmove-default-keybindings} binds these commands to
|
||||
@kbd{S-right} etc.; doing so disables shift selection for those keys
|
||||
(@pxref{Shift Selection}). In the same way as keybindings can be
|
||||
(@pxref{Shift Selection}). In the same way as key bindings can be
|
||||
defined for commands that select windows directionally, you can use
|
||||
@code{windmove-display-default-keybindings} to define keybindings for
|
||||
commands that specify in what direction to display the window for the
|
||||
@ -613,7 +613,7 @@ buffer that the next command is going to display. Also there is
|
||||
@code{windmove-delete-default-keybindings} to define keybindings for
|
||||
commands that delete windows directionally, and
|
||||
@code{windmove-swap-states-default-keybindings} that defines
|
||||
keybindings for commands that swap the window contents of the selected
|
||||
key bindings for commands that swap the window contents of the selected
|
||||
window with the window in the specified direction.
|
||||
|
||||
The command @kbd{M-x compare-windows} lets you compare the text
|
||||
|
@ -688,7 +688,7 @@ Your @file{.emacs} File
|
||||
* Text and Auto-fill:: Automatically wrap lines.
|
||||
* Mail Aliases:: Use abbreviations for email addresses.
|
||||
* Indent Tabs Mode:: Don't use tabs with @TeX{}
|
||||
* Keybindings:: Create some personal keybindings.
|
||||
* Key Bindings:: Create some personal key bindings.
|
||||
* Keymaps:: More about key binding.
|
||||
* Loading Files:: Load (i.e., evaluate) files automatically.
|
||||
* Autoload:: Make functions available.
|
||||
@ -3358,7 +3358,7 @@ Both the examples just mentioned work identically to move point forward
|
||||
three sentences. (Since @code{multiply-by-seven} is not bound to a key,
|
||||
it could not be used as an example of key binding.)
|
||||
|
||||
(@xref{Keybindings, , Some Keybindings}, to learn how to bind a command
|
||||
(@xref{Key Bindings, , Some Key Bindings}, to learn how to bind a command
|
||||
to a key.)
|
||||
|
||||
A @dfn{prefix argument} is passed to an interactive function by typing the
|
||||
@ -13662,7 +13662,7 @@ syntax table determines which characters these are."
|
||||
@end ifinfo
|
||||
|
||||
@need 1000
|
||||
If you wish, you can also install this keybinding by evaluating it:
|
||||
If you wish, you can also install this key binding by evaluating it:
|
||||
|
||||
@smallexample
|
||||
(global-set-key "\C-c=" '@value{COUNT-WORDS})
|
||||
@ -14614,7 +14614,7 @@ almost the same code as for the recursive version of
|
||||
|
||||
@need 800
|
||||
@noindent
|
||||
Let's re-use @kbd{C-c =} as a convenient keybinding:
|
||||
Let's re-use @kbd{C-c =} as a convenient key binding:
|
||||
|
||||
@smallexample
|
||||
(global-set-key "\C-c=" 'count-words-defun)
|
||||
@ -14622,7 +14622,7 @@ Let's re-use @kbd{C-c =} as a convenient keybinding:
|
||||
|
||||
Now we can try out @code{count-words-defun}: install both
|
||||
@code{count-words-in-defun} and @code{count-words-defun}, and set the
|
||||
keybinding. Then copy the following to an Emacs Lisp buffer (like,
|
||||
key binding. Then copy the following to an Emacs Lisp buffer (like,
|
||||
for instance, @file{*scratch*}), place the cursor within the
|
||||
definition, and use the @kbd{C-c =} command.
|
||||
|
||||
@ -15964,7 +15964,7 @@ placing point somewhere in the buffer, typing @kbd{M-:}, typing the
|
||||
and then typing @key{RET}. This causes Emacs to evaluate the
|
||||
expression in the minibuffer, but to use as the value of point the
|
||||
position of point in the @file{*scratch*} buffer. (@kbd{M-:} is the
|
||||
keybinding for @code{eval-expression}. Also, @code{nil} does not
|
||||
key binding for @code{eval-expression}. Also, @code{nil} does not
|
||||
appear in the @file{*scratch*} buffer since the expression is
|
||||
evaluated in the minibuffer.)
|
||||
|
||||
@ -16531,7 +16531,7 @@ expressions in Emacs Lisp you can change or extend Emacs.
|
||||
* Text and Auto-fill:: Automatically wrap lines.
|
||||
* Mail Aliases:: Use abbreviations for email addresses.
|
||||
* Indent Tabs Mode:: Don't use tabs with @TeX{}
|
||||
* Keybindings:: Create some personal keybindings.
|
||||
* Key Bindings:: Create some personal key bindings.
|
||||
* Keymaps:: More about key binding.
|
||||
* Loading Files:: Load (i.e., evaluate) files automatically.
|
||||
* Autoload:: Make functions available.
|
||||
@ -17075,10 +17075,10 @@ Files'' in @cite{The GNU Emacs Manual}.
|
||||
@end iftex
|
||||
|
||||
@need 1700
|
||||
@node Keybindings
|
||||
@section Some Keybindings
|
||||
@node Key Bindings
|
||||
@section Some Key Bindings
|
||||
|
||||
Now for some personal keybindings:
|
||||
Now for some personal key bindings:
|
||||
|
||||
@smallexample
|
||||
@group
|
||||
@ -17100,10 +17100,10 @@ This also shows how to set a key globally, for all modes.
|
||||
@cindex Key setting globally
|
||||
@findex global-set-key
|
||||
The command is @code{global-set-key}. It is followed by the
|
||||
keybinding. In a @file{.emacs} file, the keybinding is written as
|
||||
key binding. In a @file{.emacs} file, the keybinding is written as
|
||||
shown: @code{\C-c} stands for Control-C, which means to press the
|
||||
control key and the @kbd{c} key at the same time. The @code{w} means
|
||||
to press the @kbd{w} key. The keybinding is surrounded by double
|
||||
to press the @kbd{w} key. The key binding is surrounded by double
|
||||
quotation marks. In documentation, you would write this as
|
||||
@w{@kbd{C-c w}}. (If you were binding a @key{META} key, such as
|
||||
@kbd{M-c}, rather than a @key{CTRL} key, you would write
|
||||
@ -17117,26 +17117,26 @@ would first try to evaluate the symbol to determine its value.
|
||||
|
||||
These three things, the double quotation marks, the backslash before
|
||||
the @samp{C}, and the single-quote are necessary parts of
|
||||
keybinding that I tend to forget. Fortunately, I have come to
|
||||
key binding that I tend to forget. Fortunately, I have come to
|
||||
remember that I should look at my existing @file{.emacs} file, and
|
||||
adapt what is there.
|
||||
|
||||
As for the keybinding itself: @kbd{C-c w}. This combines the prefix
|
||||
As for the key binding itself: @kbd{C-c w}. This combines the prefix
|
||||
key, @kbd{C-c}, with a single character, in this case, @kbd{w}. This
|
||||
set of keys, @kbd{C-c} followed by a single character, is strictly
|
||||
reserved for individuals' own use. (I call these @dfn{own} keys, since
|
||||
these are for my own use.) You should always be able to create such a
|
||||
keybinding for your own use without stomping on someone else's
|
||||
keybinding. If you ever write an extension to Emacs, please avoid
|
||||
key binding for your own use without stomping on someone else's
|
||||
key binding. If you ever write an extension to Emacs, please avoid
|
||||
taking any of these keys for public use. Create a key like @kbd{C-c
|
||||
C-w} instead. Otherwise, we will run out of own keys.
|
||||
|
||||
@need 1250
|
||||
Here is another keybinding, with a comment:
|
||||
Here is another key binding, with a comment:
|
||||
|
||||
@smallexample
|
||||
@group
|
||||
;;; Keybinding for 'occur'
|
||||
;;; Key binding for 'occur'
|
||||
; I use occur a lot, so let's bind it to a key:
|
||||
(global-set-key "\C-co" 'occur)
|
||||
@end group
|
||||
@ -17196,8 +17196,8 @@ but moves point into that window.
|
||||
@cindex Rebinding keys
|
||||
|
||||
Emacs uses @dfn{keymaps} to record which keys call which commands.
|
||||
When you use @code{global-set-key} to set the keybinding for a single
|
||||
command in all parts of Emacs, you are specifying the keybinding in
|
||||
When you use @code{global-set-key} to set the key binding for a single
|
||||
command in all parts of Emacs, you are specifying the key binding in
|
||||
@code{current-global-map}.
|
||||
|
||||
Specific modes, such as C mode or Text mode, have their own keymaps;
|
||||
@ -17452,7 +17452,7 @@ Here is the definition:
|
||||
@end smallexample
|
||||
|
||||
@need 1250
|
||||
Now for the keybinding.
|
||||
Now for the key binding.
|
||||
|
||||
Function keys as well as mouse button events and non-@sc{ascii}
|
||||
characters are written within square brackets, without quotation
|
||||
@ -17757,7 +17757,7 @@ Some systems bind keys unpleasantly. Sometimes, for example, the
|
||||
@key{CTRL} key appears in an awkward spot rather than at the far left
|
||||
of the home row.
|
||||
|
||||
Usually, when people fix these sorts of keybindings, they do not
|
||||
Usually, when people fix these sorts of key bindings, they do not
|
||||
change their @file{~/.emacs} file. Instead, they bind the proper keys
|
||||
on their consoles with the @code{loadkeys} or @code{install-keymap}
|
||||
commands in their boot script and then include @code{xmodmap} commands
|
||||
|
@ -706,7 +706,7 @@ active keymaps, except for the global keymap. Secondly, the
|
||||
terminal-local variable @code{overriding-terminal-local-map} specifies
|
||||
a keymap that takes precedence over @emph{all} other keymaps
|
||||
(including @code{overriding-local-map}); this is normally used for
|
||||
modal/transient keybindings (the function @code{set-transient-map}
|
||||
modal/transient key bindings (the function @code{set-transient-map}
|
||||
provides a convenient interface for this). @xref{Controlling Active
|
||||
Maps}, for details.
|
||||
|
||||
@ -1969,7 +1969,7 @@ redefines @kbd{C-x C-\} to move down a line.
|
||||
redefines the first (leftmost) mouse button, entered with the Meta key, to
|
||||
set point where you click.
|
||||
|
||||
@cindex non-@acronym{ASCII} text in keybindings
|
||||
@cindex non-@acronym{ASCII} text in key bindings
|
||||
Be careful when using non-@acronym{ASCII} text characters in Lisp
|
||||
specifications of keys to bind. If these are read as multibyte text, as
|
||||
they usually will be in a Lisp file (@pxref{Loading Non-ASCII}), you
|
||||
|
@ -482,7 +482,7 @@ automatically. However, if this does make a difference, you can force
|
||||
a particular Lisp file to be interpreted as unibyte by writing
|
||||
@samp{coding: raw-text} in a local variables section. With
|
||||
that designator, the file will unconditionally be interpreted as
|
||||
unibyte. This can matter when making keybindings to
|
||||
unibyte. This can matter when making key bindings to
|
||||
non-@acronym{ASCII} characters written as @code{?v@var{literal}}.
|
||||
|
||||
@node Autoload
|
||||
|
@ -2854,7 +2854,7 @@ Display some help, then ask again.
|
||||
|
||||
@defvar multi-query-replace-map
|
||||
This variable holds a keymap that extends @code{query-replace-map} by
|
||||
providing additional keybindings that are useful in multi-buffer
|
||||
providing additional key bindings that are useful in multi-buffer
|
||||
replacements. The additional bindings are:
|
||||
|
||||
@table @code
|
||||
|
@ -99,7 +99,7 @@ learn and adopt GNU ways of doing things.
|
||||
@chapter @ede{} Project Concepts
|
||||
|
||||
@ede{} is a generic interface for managing projects. It specifies a
|
||||
single set of menus and keybindings, while supporting multiple ways to
|
||||
single set of menus and key bindings, while supporting multiple ways to
|
||||
express a project via a build system.
|
||||
|
||||
In the subsequent chapters, we will describe the different project
|
||||
@ -144,7 +144,7 @@ init file:
|
||||
|
||||
Activating @ede{} adds a menu named @samp{Development} to the menu
|
||||
bar. This menu provides several menu items for high-level @ede{}
|
||||
commands. These menu items, and their corresponding keybindings, are
|
||||
commands. These menu items, and their corresponding key bindings, are
|
||||
independent of the type of project you are actually working on.
|
||||
|
||||
@node Quick Start
|
||||
@ -271,7 +271,7 @@ Projects. You can create targets either from a buffer, or from a
|
||||
@code{dired} directory buffer.
|
||||
|
||||
Note: If for some reason a directory list buffer, or file does not have the
|
||||
@samp{Project} menu item, or if @ede{} keybindings don't work, just
|
||||
@samp{Project} menu item, or if @ede{} key bindings don't work, just
|
||||
use @kbd{M-x revert-buffer @key{RET}} to force a refresh. Sometimes
|
||||
creating a new project doesn't restart buffers correctly.
|
||||
|
||||
@ -1059,7 +1059,7 @@ examples.
|
||||
@menu
|
||||
* Development Overview::
|
||||
* Detecting a Project::
|
||||
* User interface methods:: Methods associated with keybindings
|
||||
* User interface methods:: Methods associated with key bindings
|
||||
* Base project methods:: The most basic methods on @ede{} objects.
|
||||
* Sourcecode objects:: Defining new sourcecode classes.
|
||||
* Compiler and Linker objects:: Defining new compilers and linkers.
|
||||
|
@ -687,9 +687,9 @@ question also.
|
||||
@node CUA
|
||||
@subsection Standard Windows key bindings
|
||||
@findex cua-mode
|
||||
@cindex CUA keybindings
|
||||
@cindex CUA key bindings
|
||||
@cindex shift key, selecting with
|
||||
@cindex standard Windows keybindings
|
||||
@cindex standard Windows key bindings
|
||||
@cindex paste with C-v
|
||||
@cindex cut with C-x
|
||||
@cindex copy with C-c
|
||||
@ -697,7 +697,7 @@ question also.
|
||||
@cindex C-x to cut
|
||||
@cindex C-v to paste
|
||||
|
||||
The keybindings of Emacs predate modern GUIs, and the keys that were
|
||||
The key bindings of Emacs predate modern GUIs, and the keys that were
|
||||
chosen by later GUIs for cut and copy were given important functions
|
||||
as extended keymaps in Emacs. CUA mode attempts to let both bindings
|
||||
co-exist by defining C-x and C-c as @code{kill-region} and
|
||||
|
@ -4499,7 +4499,7 @@ command or better use it as a prefix key. For example:
|
||||
(gnus-group-jump-to-group "nndraft:drafts")))
|
||||
@end lisp
|
||||
|
||||
On keys reserved for users in Emacs and on keybindings in general
|
||||
On keys reserved for users in Emacs and on key bindings in general
|
||||
@xref{Keymaps, Keymaps, , emacs, The Emacs Editor}.
|
||||
|
||||
@item ^
|
||||
@ -13477,7 +13477,7 @@ Also @pxref{Formatting Variables}.
|
||||
@subsection Server Commands
|
||||
@cindex server commands
|
||||
|
||||
The following keybinding are available in the server buffer. Be aware
|
||||
The following key binding are available in the server buffer. Be aware
|
||||
that some of the commands will only work on servers that you've added
|
||||
through this interface (with @kbd{a}), not with servers you've defined
|
||||
in your init files.
|
||||
|
@ -2670,7 +2670,7 @@ As a special case, any error message in the output will be displayed
|
||||
@node Debugging IDL Programs
|
||||
@section Debugging IDL Programs
|
||||
@cindex Debugging
|
||||
@cindex Keybindings for debugging
|
||||
@cindex Key bindings for debugging
|
||||
@cindex Toolbar
|
||||
|
||||
Programs can be compiled, run, and debugged directly from the source
|
||||
|
@ -476,13 +476,13 @@ M-x customize-variable @key{RET} ido-xxxxx @key{RET}
|
||||
@end example
|
||||
|
||||
@vindex ido-setup-hook
|
||||
To modify the keybindings, use the @code{ido-setup-hook}. For example:
|
||||
To modify the key bindings, use the @code{ido-setup-hook}. For example:
|
||||
|
||||
@example
|
||||
(add-hook 'ido-setup-hook 'ido-my-keys)
|
||||
|
||||
(defun ido-my-keys ()
|
||||
"Add my keybindings for Ido."
|
||||
"Add my key bindings for Ido."
|
||||
(define-key ido-completion-map " " 'ido-next-match))
|
||||
@end example
|
||||
|
||||
|
@ -240,7 +240,7 @@ entering Octave commands at the prompt. The buffer is in Inferior
|
||||
Octave mode, which is derived from the standard Comint mode, a major
|
||||
mode for interacting with an inferior interpreter. See the
|
||||
documentation for @code{comint-mode} for more details, and use
|
||||
@kbd{C-h b} to find out about available special keybindings.
|
||||
@kbd{C-h b} to find out about available special key bindings.
|
||||
|
||||
You can also communicate with an inferior Octave process from within
|
||||
files with Octave code (i.e., buffers in Octave mode), using the
|
||||
|
@ -313,7 +313,7 @@ Save (if it is modified) and bury the current buffer.
|
||||
@node Keystrokes
|
||||
@chapter Keystroke Reference
|
||||
|
||||
@file{remember.el} defines the following keybindings by default:
|
||||
@file{remember.el} defines the following key bindings by default:
|
||||
|
||||
@table @kbd
|
||||
|
||||
|
@ -145,7 +145,7 @@ this means moving to the parent of the current tag.
|
||||
@item C-c , @key{SPC}
|
||||
Display a list of possible completions for the symbol at point
|
||||
(@code{semantic-complete-analyze-inline}). This also activates a
|
||||
special set of keybindings for choosing a completion: @key{RET}
|
||||
special set of key bindings for choosing a completion: @key{RET}
|
||||
accepts the current completion, @kbd{M-n} and @kbd{M-p} cycle through
|
||||
possible completions, @key{TAB} completes as far as possible and then
|
||||
cycles, and @kbd{C-g} or any other key aborts the completion.
|
||||
@ -655,7 +655,7 @@ usual summary if the text at point has one of these faces.
|
||||
|
||||
Semantic Idle Completions mode is a minor mode for performing
|
||||
@dfn{code completions} during idle time. The completions are
|
||||
displayed inline, with keybindings that allow you to cycle through
|
||||
displayed inline, with key bindings that allow you to cycle through
|
||||
different alternatives.
|
||||
|
||||
Semantic Idle Completions mode performs completion based on the
|
||||
@ -681,7 +681,7 @@ besselj [1 of 6 matches]
|
||||
@end example
|
||||
|
||||
@noindent
|
||||
While the completion is being displayed, the following keybindings
|
||||
While the completion is being displayed, the following key bindings
|
||||
take effect:
|
||||
|
||||
@table @kbd
|
||||
@ -785,7 +785,7 @@ Most of the other commands documented in this section call
|
||||
This command is bound to @kbd{C-c , @key{SPC}} when Semantic mode is
|
||||
enabled (@pxref{Semantic mode user commands}). It displays a list of
|
||||
possible completions for the symbol at point, and activates a special
|
||||
set of keybindings for choosing a completion.
|
||||
set of key bindings for choosing a completion.
|
||||
|
||||
You can type @key{RET} to accept the current completion, @kbd{M-n} and
|
||||
@kbd{M-p} to cycle through the possible completions, @key{TAB} to
|
||||
@ -1122,7 +1122,7 @@ that @code{grep} is much slower than the others.
|
||||
|
||||
The commands to display symbol references are @kbd{C-c , g}
|
||||
(@code{semantic-symref-symbol} and @kbd{C-c , G}
|
||||
(@code{semantic-symref}). These keybindings are available whenever
|
||||
(@code{semantic-symref}). These key bindings are available whenever
|
||||
Semantic mode is enabled (@pxref{Semantic mode user commands}).
|
||||
|
||||
@deffn Command semantic-symref-symbol sym
|
||||
|
@ -1218,4 +1218,3 @@ Two good values are @code{nil} and @code{statictag}.
|
||||
|
||||
@bye
|
||||
@c LocalWords: speedbar's xref slowbar kbd subsubsection
|
||||
@c LocalWords: keybindings
|
||||
|
@ -293,14 +293,14 @@ If the variable @code{srecode-takeover-INS-key} is set, then the key
|
||||
The most important key is bound to @code{srecode-insert} which is
|
||||
@kbd{C-c / /}, or @kbd{@key{INSERT} @key{INSERT}}. @ref{Quick Start}.
|
||||
|
||||
Major keybindings are:
|
||||
Major key bindings are:
|
||||
|
||||
@table @kbd
|
||||
@item C-c / /
|
||||
Insert a template whose name is typed into the minibuffer.
|
||||
@item C-c / <lower case letter>
|
||||
Reserved for direct binding of simple templates to keys using a
|
||||
keybinding command in the template file.
|
||||
key binding command in the template file.
|
||||
@item C-c / <upper case letter>
|
||||
Reserved for template applications (Such as comment or get/set inserter.)
|
||||
@item C-c / E
|
||||
|
@ -928,7 +928,7 @@ If you want to customize indentation, here you go:
|
||||
(setq tab-width 8
|
||||
;; this will make sure spaces are used instead of tabs
|
||||
indent-tabs-mode nil)
|
||||
;; keybindings for VHDL are put in vhdl-mode-map
|
||||
;; key bindings for VHDL are put in vhdl-mode-map
|
||||
(define-key vhdl-mode-map "\C-m" 'newline-and-indent)
|
||||
)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user