Optionally add argument description in minor mode DOC (bug#10754)
Add a paragraph to minor mode's docstring documenting the mode's ARG usage if the supplied docstring doesn't already contain the word "ARG". * easy-mmode.el (easy-mmode--arg-docstring): New const. (easy-mmode--arg-docstring): New function. (define-minor-mode): Use them. Remove argument documentation from all minor modes.
This commit is contained in:
parent
fd5bf49139
commit
ee3e432300
134 changed files with 136 additions and 619 deletions
2
etc/NEWS
2
etc/NEWS
|
@ -689,6 +689,8 @@ manual for more details.
|
|||
|
||||
* Lisp Changes in Emacs 27.1
|
||||
|
||||
** define-minor-mode automatically documents the meaning of ARG
|
||||
|
||||
+++
|
||||
** The function 'recenter' now accepts an additional optional argument.
|
||||
By default, calling 'recenter' will not redraw the frame even if
|
||||
|
|
|
@ -56,9 +56,6 @@ define global abbrevs instead."
|
|||
|
||||
(define-minor-mode abbrev-mode
|
||||
"Toggle Abbrev mode in the current buffer.
|
||||
With a prefix argument ARG, enable Abbrev mode if ARG is
|
||||
positive, and disable it otherwise. If called from Lisp, enable
|
||||
Abbrev mode if ARG is omitted or nil.
|
||||
|
||||
In Abbrev mode, inserting an abbreviation causes it to expand and
|
||||
be replaced by its expansion."
|
||||
|
|
|
@ -513,9 +513,6 @@ happens in the buffer.")
|
|||
;;;###autoload
|
||||
(define-minor-mode allout-widgets-mode
|
||||
"Toggle Allout Widgets mode.
|
||||
With a prefix argument ARG, enable Allout Widgets mode if ARG is
|
||||
positive, and disable it otherwise. If called from Lisp, enable
|
||||
the mode if ARG is omitted or nil.
|
||||
|
||||
Allout Widgets mode is an extension of Allout mode that provides
|
||||
graphical decoration of outline structure. It is meant to
|
||||
|
|
|
@ -1693,9 +1693,6 @@ valid values."
|
|||
(define-minor-mode allout-mode
|
||||
;;;_ . Doc string:
|
||||
"Toggle Allout outline mode.
|
||||
With a prefix argument ARG, enable Allout outline mode if ARG is
|
||||
positive, and disable it otherwise. If called from Lisp, enable
|
||||
the mode if ARG is omitted or nil.
|
||||
|
||||
\\<allout-mode-map-value>
|
||||
Allout outline mode is a minor mode that provides extensive
|
||||
|
|
|
@ -90,9 +90,6 @@
|
|||
;;;###autoload
|
||||
(define-minor-mode autoarg-mode
|
||||
"Toggle Autoarg mode, a global minor mode.
|
||||
With a prefix argument ARG, enable Autoarg mode if ARG is
|
||||
positive, and disable it otherwise. If called from Lisp, enable
|
||||
the mode if ARG is omitted or nil.
|
||||
|
||||
\\<autoarg-mode-map>
|
||||
In Autoarg mode, digits are bound to `digit-argument', i.e. they
|
||||
|
@ -116,9 +113,6 @@ then invokes the normal binding of \\[autoarg-terminate].
|
|||
;;;###autoload
|
||||
(define-minor-mode autoarg-kp-mode
|
||||
"Toggle Autoarg-KP mode, a global minor mode.
|
||||
With a prefix argument ARG, enable Autoarg-KP mode if ARG is
|
||||
positive, and disable it otherwise. If called from Lisp, enable
|
||||
the mode if ARG is omitted or nil.
|
||||
|
||||
\\<autoarg-kp-mode-map>
|
||||
This is similar to `autoarg-mode' but rebinds the keypad keys
|
||||
|
|
|
@ -412,9 +412,6 @@ or if CONDITION had no actions, after all other CONDITIONs."
|
|||
;;;###autoload
|
||||
(define-minor-mode auto-insert-mode
|
||||
"Toggle Auto-insert mode, a global minor mode.
|
||||
With a prefix argument ARG, enable Auto-insert mode if ARG is
|
||||
positive, and disable it otherwise. If called from Lisp, enable
|
||||
the mode if ARG is omitted or nil.
|
||||
|
||||
When Auto-insert mode is enabled, when new files are created you can
|
||||
insert a template for the file depending on the mode of the buffer."
|
||||
|
|
|
@ -351,9 +351,6 @@ This has been reported by a file notification event.")
|
|||
;;;###autoload
|
||||
(define-minor-mode auto-revert-mode
|
||||
"Toggle reverting buffer when the file changes (Auto-Revert Mode).
|
||||
With a prefix argument ARG, enable Auto-Revert Mode if ARG is
|
||||
positive, and disable it otherwise. If called from Lisp, enable
|
||||
the mode if ARG is omitted or nil.
|
||||
|
||||
Auto-Revert Mode is a minor mode that affects only the current
|
||||
buffer. When enabled, it reverts the buffer when the file on
|
||||
|
@ -393,9 +390,6 @@ This function is designed to be added to hooks, for example:
|
|||
;;;###autoload
|
||||
(define-minor-mode auto-revert-tail-mode
|
||||
"Toggle reverting tail of buffer when the file grows.
|
||||
With a prefix argument ARG, enable Auto-Revert Tail Mode if ARG
|
||||
is positive, and disable it otherwise. If called from Lisp,
|
||||
enable the mode if ARG is omitted or nil.
|
||||
|
||||
When Auto-Revert Tail Mode is enabled, the tail of the file is
|
||||
constantly followed, as with the shell command `tail -f'. This
|
||||
|
@ -460,9 +454,6 @@ This function is designed to be added to hooks, for example:
|
|||
;;;###autoload
|
||||
(define-minor-mode global-auto-revert-mode
|
||||
"Toggle Global Auto-Revert Mode.
|
||||
With a prefix argument ARG, enable Global Auto-Revert Mode if ARG
|
||||
is positive, and disable it otherwise. If called from Lisp,
|
||||
enable the mode if ARG is omitted or nil.
|
||||
|
||||
Global Auto-Revert Mode is a global minor mode that reverts any
|
||||
buffer associated with a file when the file changes on disk. Use
|
||||
|
|
|
@ -175,9 +175,6 @@ The text being displayed in the echo area is controlled by the variables
|
|||
;;;###autoload
|
||||
(define-minor-mode display-battery-mode
|
||||
"Toggle battery status display in mode line (Display Battery mode).
|
||||
With a prefix argument ARG, enable Display Battery mode if ARG is
|
||||
positive, and disable it otherwise. If called from Lisp, enable
|
||||
the mode if ARG is omitted or nil.
|
||||
|
||||
The text displayed in the mode line is controlled by
|
||||
`battery-mode-line-format' and `battery-status-function'.
|
||||
|
|
|
@ -475,9 +475,6 @@ To be used in hook functions."
|
|||
|
||||
(define-minor-mode ede-minor-mode
|
||||
"Toggle EDE (Emacs Development Environment) minor mode.
|
||||
With a prefix argument ARG, enable EDE minor mode if ARG is
|
||||
positive, and disable it otherwise. If called from Lisp, enable
|
||||
EDE minor mode if ARG is omitted or nil.
|
||||
|
||||
If this file is contained, or could be contained in an EDE
|
||||
controlled project, then this mode is activated automatically
|
||||
|
@ -563,9 +560,6 @@ Sets buffer local variables for EDE."
|
|||
;;;###autoload
|
||||
(define-minor-mode global-ede-mode
|
||||
"Toggle global EDE (Emacs Development Environment) mode.
|
||||
With a prefix argument ARG, enable global EDE mode if ARG is
|
||||
positive, and disable it otherwise. If called from Lisp, enable
|
||||
the mode if ARG is omitted or nil.
|
||||
|
||||
This global minor mode enables `ede-minor-mode' in all buffers in
|
||||
an EDE controlled project."
|
||||
|
|
|
@ -59,9 +59,7 @@
|
|||
|
||||
;;;###autoload
|
||||
(define-minor-mode ede-dired-minor-mode
|
||||
"A minor mode that should only be activated in DIRED buffers.
|
||||
If ARG is nil or a positive number, force on, if
|
||||
negative, force off."
|
||||
"A minor mode that should only be activated in DIRED buffers."
|
||||
:lighter " EDE" :keymap ede-dired-keymap
|
||||
(unless (derived-mode-p 'dired-mode)
|
||||
(setq ede-dired-minor-mode nil)
|
||||
|
|
|
@ -1096,9 +1096,6 @@ The following modes are more targeted at people who want to see
|
|||
;;;###autoload
|
||||
(define-minor-mode semantic-mode
|
||||
"Toggle parser features (Semantic mode).
|
||||
With a prefix argument ARG, enable Semantic mode if ARG is
|
||||
positive, and disable it otherwise. If called from Lisp, enable
|
||||
Semantic mode if ARG is omitted or nil.
|
||||
|
||||
In Semantic mode, Emacs parses the buffers you visit for their
|
||||
semantic content. This information is used by a variety of
|
||||
|
|
|
@ -56,7 +56,6 @@
|
|||
;;;###autoload
|
||||
(define-minor-mode global-semanticdb-minor-mode
|
||||
"Toggle Semantic DB mode.
|
||||
With ARG, turn Semantic DB mode on if ARG is positive, off otherwise.
|
||||
|
||||
In Semantic DB mode, Semantic parsers store results in a
|
||||
database, which can be saved for future Emacs sessions."
|
||||
|
|
|
@ -249,13 +249,13 @@ by `semantic-decoration-styles'."
|
|||
|
||||
(define-minor-mode semantic-decoration-mode
|
||||
"Minor mode for decorating tags.
|
||||
Decorations are specified in `semantic-decoration-styles'.
|
||||
You can define new decoration styles with
|
||||
Decorations are specified in `semantic-decoration-styles'. You
|
||||
can define new decoration styles with
|
||||
`define-semantic-decoration-style'.
|
||||
With prefix argument ARG, turn on if positive, otherwise off. The
|
||||
minor mode can be turned on only if semantic feature is available and
|
||||
the current buffer was set up for parsing. Return non-nil if the
|
||||
minor mode is enabled."
|
||||
|
||||
The minor mode can be turned on only if semantic feature is
|
||||
available and the current buffer was set up for parsing. Return
|
||||
non-nil if the minor mode is enabled."
|
||||
;;
|
||||
;;\\{semantic-decoration-map}"
|
||||
nil nil nil
|
||||
|
|
|
@ -172,11 +172,9 @@ some command requests the list of available tokens. When idle-scheduler
|
|||
is enabled, Emacs periodically checks to see if the buffer is out of
|
||||
date, and reparses while the user is idle (not typing.)
|
||||
|
||||
With prefix argument ARG, turn on if positive, otherwise off. The
|
||||
minor mode can be turned on only if semantic feature is available and
|
||||
the current buffer was set up for parsing. Return non-nil if the
|
||||
minor mode is enabled."
|
||||
nil nil nil
|
||||
The minor mode can be turned on only if semantic feature is
|
||||
available and the current buffer was set up for parsing. Return
|
||||
non-nil if the minor mode is enabled." nil nil nil
|
||||
(if semantic-idle-scheduler-mode
|
||||
(if (not (and (featurep 'semantic) (semantic-active-p)))
|
||||
(progn
|
||||
|
@ -776,8 +774,6 @@ current tag to display information."
|
|||
|
||||
(define-minor-mode semantic-idle-summary-mode
|
||||
"Toggle Semantic Idle Summary mode.
|
||||
With ARG, turn Semantic Idle Summary mode on if ARG is positive,
|
||||
off otherwise.
|
||||
|
||||
When this minor mode is enabled, the echo area displays a summary
|
||||
of the lexical token at point whenever Emacs is idle."
|
||||
|
@ -812,8 +808,6 @@ of the lexical token at point whenever Emacs is idle."
|
|||
|
||||
(define-minor-mode global-semantic-idle-summary-mode
|
||||
"Toggle Global Semantic Idle Summary mode.
|
||||
With ARG, turn Global Semantic Idle Summary mode on if ARG is
|
||||
positive, off otherwise.
|
||||
|
||||
When this minor mode is enabled, `semantic-idle-summary-mode' is
|
||||
turned on in every Semantic-supported buffer."
|
||||
|
@ -931,9 +925,10 @@ Call `semantic-symref-hits-in-region' to identify local references."
|
|||
;;;###autoload
|
||||
(define-minor-mode global-semantic-idle-scheduler-mode
|
||||
"Toggle global use of option `semantic-idle-scheduler-mode'.
|
||||
The idle scheduler will automatically reparse buffers in idle time,
|
||||
and then schedule other jobs setup with `semantic-idle-scheduler-add'.
|
||||
If ARG is positive or nil, enable, if it is negative, disable."
|
||||
|
||||
The idle scheduler will automatically reparse buffers in idle
|
||||
time, and then schedule other jobs setup with
|
||||
`semantic-idle-scheduler-add'."
|
||||
:global t
|
||||
:group 'semantic
|
||||
:group 'semantic-modes
|
||||
|
|
|
@ -252,8 +252,7 @@ been edited, and you can re-visit them with \\[semantic-mrub-switch-tags]."
|
|||
|
||||
;;;###autoload
|
||||
(define-minor-mode global-semantic-mru-bookmark-mode
|
||||
"Toggle global use of option `semantic-mru-bookmark-mode'.
|
||||
If ARG is positive or nil, enable, if it is negative, disable."
|
||||
"Toggle global use of option `semantic-mru-bookmark-mode'."
|
||||
:global t :group 'semantic :group 'semantic-modes
|
||||
;; Not needed because it's autoloaded instead.
|
||||
;; :require 'semantic-util-modes
|
||||
|
@ -278,10 +277,9 @@ been edited, and you can re-visit them with \\[semantic-mrub-switch-tags].
|
|||
|
||||
\\{semantic-mru-bookmark-mode-map}
|
||||
|
||||
With prefix argument ARG, turn on if positive, otherwise off. The
|
||||
minor mode can be turned on only if semantic feature is available and
|
||||
the current buffer was set up for parsing. Return non-nil if the
|
||||
minor mode is enabled."
|
||||
The minor mode can be turned on only if semantic feature is
|
||||
available and the current buffer was set up for parsing. Return
|
||||
non-nil if the minor mode is enabled."
|
||||
:keymap semantic-mru-bookmark-mode-map
|
||||
(if semantic-mru-bookmark-mode
|
||||
(if (not (and (featurep 'semantic) (semantic-active-p)))
|
||||
|
|
|
@ -170,8 +170,7 @@ too an interactive function used to toggle the mode."
|
|||
|
||||
;;;###autoload
|
||||
(define-minor-mode global-semantic-highlight-edits-mode
|
||||
"Toggle global use of option `semantic-highlight-edits-mode'.
|
||||
If ARG is positive or nil, enable, if it is negative, disable."
|
||||
"Toggle global use of option `semantic-highlight-edits-mode'."
|
||||
:global t :group 'semantic :group 'semantic-modes
|
||||
(semantic-toggle-minor-mode-globally
|
||||
'semantic-highlight-edits-mode
|
||||
|
@ -209,10 +208,10 @@ Changes are tracked by semantic so that the incremental parser can work
|
|||
properly.
|
||||
This mode will highlight those changes as they are made, and clear them
|
||||
when the incremental parser accounts for those edits.
|
||||
With prefix argument ARG, turn on if positive, otherwise off. The
|
||||
minor mode can be turned on only if semantic feature is available and
|
||||
the current buffer was set up for parsing. Return non-nil if the
|
||||
minor mode is enabled."
|
||||
|
||||
The minor mode can be turned on only if semantic feature is
|
||||
available and the current buffer was set up for parsing. Return
|
||||
non-nil if the minor mode is enabled."
|
||||
:keymap semantic-highlight-edits-mode-map
|
||||
(if semantic-highlight-edits-mode
|
||||
(if (not (and (featurep 'semantic) (semantic-active-p)))
|
||||
|
@ -237,8 +236,7 @@ minor mode is enabled."
|
|||
|
||||
;;;###autoload
|
||||
(define-minor-mode global-semantic-show-unmatched-syntax-mode
|
||||
"Toggle global use of option `semantic-show-unmatched-syntax-mode'.
|
||||
If ARG is positive or nil, enable, if it is negative, disable."
|
||||
"Toggle global use of option `semantic-show-unmatched-syntax-mode'."
|
||||
:global t :group 'semantic :group 'semantic-modes
|
||||
;; Not needed because it's autoloaded instead.
|
||||
;; :require 'semantic/util-modes
|
||||
|
@ -360,10 +358,9 @@ parser rules. These text characters are considered unmatched syntax.
|
|||
Often time, the display of unmatched syntax can expose coding
|
||||
problems before the compiler is run.
|
||||
|
||||
With prefix argument ARG, turn on if positive, otherwise off. The
|
||||
minor mode can be turned on only if semantic feature is available and
|
||||
the current buffer was set up for parsing. Return non-nil if the
|
||||
minor mode is enabled.
|
||||
The minor mode can be turned on only if semantic feature is
|
||||
available and the current buffer was set up for parsing. Return
|
||||
non-nil if the minor mode is enabled.
|
||||
|
||||
\\{semantic-show-unmatched-syntax-mode-map}"
|
||||
:keymap semantic-show-unmatched-syntax-mode-map
|
||||
|
@ -410,8 +407,7 @@ minor mode is enabled.
|
|||
|
||||
;;;###autoload
|
||||
(define-minor-mode global-semantic-show-parser-state-mode
|
||||
"Toggle global use of option `semantic-show-parser-state-mode'.
|
||||
If ARG is positive or nil, enable, if it is negative, disable."
|
||||
"Toggle global use of option `semantic-show-parser-state-mode'."
|
||||
:global t :group 'semantic
|
||||
;; Not needed because it's autoloaded instead.
|
||||
;; :require 'semantic/util-modes
|
||||
|
@ -440,10 +436,10 @@ The state is indicated in the modeline with the following characters:
|
|||
`~' -> The cache needs to be incrementally parsed.
|
||||
`%' -> The cache is not currently parsable.
|
||||
`@' -> Auto-parse in progress (not set here.)
|
||||
With prefix argument ARG, turn on if positive, otherwise off. The
|
||||
minor mode can be turned on only if semantic feature is available and
|
||||
the current buffer was set up for parsing. Return non-nil if the
|
||||
minor mode is enabled."
|
||||
|
||||
The minor mode can be turned on only if semantic feature is
|
||||
available and the current buffer was set up for parsing. Return
|
||||
non-nil if the minor mode is enabled."
|
||||
:keymap semantic-show-parser-state-mode-map
|
||||
(if semantic-show-parser-state-mode
|
||||
(if (not (and (featurep 'semantic) (semantic-active-p)))
|
||||
|
@ -557,8 +553,7 @@ to indicate a parse in progress."
|
|||
|
||||
;;;###autoload
|
||||
(define-minor-mode global-semantic-stickyfunc-mode
|
||||
"Toggle global use of option `semantic-stickyfunc-mode'.
|
||||
If ARG is positive or nil, enable, if it is negative, disable."
|
||||
"Toggle global use of option `semantic-stickyfunc-mode'."
|
||||
:global t :group 'semantic :group 'semantic-modes
|
||||
;; Not needed because it's autoloaded instead.
|
||||
;; :require 'semantic/util-modes
|
||||
|
@ -700,10 +695,9 @@ A function (or other tag class specified by
|
|||
first line which describes the rest of the construct. This first
|
||||
line is what is displayed in the header line.
|
||||
|
||||
With prefix argument ARG, turn on if positive, otherwise off. The
|
||||
minor mode can be turned on only if semantic feature is available and
|
||||
the current buffer was set up for parsing. Return non-nil if the
|
||||
minor mode is enabled."
|
||||
The minor mode can be turned on only if semantic feature is
|
||||
available and the current buffer was set up for parsing. Return
|
||||
non-nil if the minor mode is enabled."
|
||||
;; Don't need indicator. It's quite visible
|
||||
:keymap semantic-stickyfunc-mode-map
|
||||
(if semantic-stickyfunc-mode
|
||||
|
@ -837,8 +831,7 @@ Argument EVENT describes the event that caused this function to be called."
|
|||
|
||||
;;;###autoload
|
||||
(define-minor-mode global-semantic-highlight-func-mode
|
||||
"Toggle global use of option `semantic-highlight-func-mode'.
|
||||
If ARG is positive or nil, enable, if it is negative, disable."
|
||||
"Toggle global use of option `semantic-highlight-func-mode'."
|
||||
:global t :group 'semantic :group 'semantic-modes
|
||||
;; Not needed because it's autoloaded instead.
|
||||
;; :require 'semantic/util-modes
|
||||
|
@ -933,10 +926,9 @@ See `semantic-stickyfunc-mode' for putting a function in the
|
|||
header line. This mode recycles the stickyfunc configuration
|
||||
classes list.
|
||||
|
||||
With prefix argument ARG, turn on if positive, otherwise off. The
|
||||
minor mode can be turned on only if semantic feature is available and
|
||||
the current buffer was set up for parsing. Return non-nil if the
|
||||
minor mode is enabled."
|
||||
The minor mode can be turned on only if semantic feature is
|
||||
available and the current buffer was set up for parsing. Return
|
||||
non-nil if the minor mode is enabled."
|
||||
:lighter nil ;; Don't need indicator. It's quite visible.
|
||||
(if semantic-highlight-func-mode
|
||||
(progn
|
||||
|
|
|
@ -148,10 +148,10 @@
|
|||
;;;###autoload
|
||||
(define-minor-mode srecode-minor-mode
|
||||
"Toggle srecode minor mode.
|
||||
With prefix argument ARG, turn on if positive, otherwise off. The
|
||||
minor mode can be turned on only if semantic feature is available and
|
||||
the current buffer was set up for parsing. Return non-nil if the
|
||||
minor mode is enabled.
|
||||
|
||||
The minor mode can be turned on only if semantic feature is
|
||||
available and the current buffer was set up for parsing. Return
|
||||
non-nil if the minor mode is enabled.
|
||||
|
||||
\\{srecode-mode-map}"
|
||||
:keymap srecode-mode-map
|
||||
|
@ -176,8 +176,7 @@ minor mode is enabled.
|
|||
|
||||
;;;###autoload
|
||||
(define-minor-mode global-srecode-minor-mode
|
||||
"Toggle global use of srecode minor mode.
|
||||
If ARG is positive or nil, enable, if it is negative, disable."
|
||||
"Toggle global use of srecode minor mode."
|
||||
:global t :group 'srecode
|
||||
;; Not needed because it's autoloaded instead.
|
||||
;; :require 'srecode/mode
|
||||
|
|
|
@ -2275,10 +2275,7 @@ TYPE is the type of the wrapper to be added. Can be :before or :under."
|
|||
|
||||
;;;###autoload
|
||||
(define-minor-mode dynamic-completion-mode
|
||||
"Toggle dynamic word-completion on or off.
|
||||
With a prefix argument ARG, enable the mode if ARG is positive,
|
||||
and disable it otherwise. If called from Lisp, enable the mode
|
||||
if ARG is omitted or nil."
|
||||
"Toggle dynamic word-completion on or off."
|
||||
:global t
|
||||
:group 'completion
|
||||
;; This is always good, not specific to dynamic-completion-mode.
|
||||
|
|
|
@ -829,9 +829,6 @@ This function is the default value of `auto-composition-function' (which see)."
|
|||
;;;###autoload
|
||||
(define-minor-mode auto-composition-mode
|
||||
"Toggle Auto Composition mode.
|
||||
With a prefix argument ARG, enable Auto Composition mode if ARG
|
||||
is positive, and disable it otherwise. If called from Lisp,
|
||||
enable the mode if ARG is omitted or nil.
|
||||
|
||||
When Auto Composition mode is enabled, text characters are
|
||||
automatically composed by functions registered in
|
||||
|
@ -847,9 +844,6 @@ Auto Composition mode in all buffers (this is the default)."
|
|||
;;;###autoload
|
||||
(define-minor-mode global-auto-composition-mode
|
||||
"Toggle Auto Composition mode in all buffers.
|
||||
With a prefix argument ARG, enable it if ARG is positive, and
|
||||
disable it otherwise. If called from Lisp, enable it if ARG is
|
||||
omitted or nil.
|
||||
|
||||
For more information on Auto Composition mode, see
|
||||
`auto-composition-mode' ."
|
||||
|
|
|
@ -70,12 +70,6 @@ Value must be the register (key) to use.")
|
|||
;;;###autoload
|
||||
(define-minor-mode delete-selection-mode
|
||||
"Toggle Delete Selection mode.
|
||||
Interactively, with a prefix argument, enable
|
||||
Delete Selection mode if the prefix argument is positive,
|
||||
and disable it otherwise. If called from Lisp, toggle
|
||||
the mode if ARG is `toggle', disable the mode if ARG is
|
||||
a non-positive integer, and enable the mode otherwise
|
||||
\(including if ARG is omitted or nil or a positive integer).
|
||||
|
||||
When Delete Selection mode is enabled, typed text replaces the selection
|
||||
if the selection is active. Otherwise, typed text is just inserted at
|
||||
|
|
|
@ -161,9 +161,6 @@ Used at desktop read to provide backward compatibility.")
|
|||
;;;###autoload
|
||||
(define-minor-mode desktop-save-mode
|
||||
"Toggle desktop saving (Desktop Save mode).
|
||||
With a prefix argument ARG, enable Desktop Save mode if ARG is positive,
|
||||
and disable it otherwise. If called from Lisp, enable the mode if ARG
|
||||
is omitted or nil.
|
||||
|
||||
When Desktop Save mode is enabled, the state of Emacs is saved from
|
||||
one session to another. In particular, Emacs will save the desktop when
|
||||
|
|
|
@ -139,9 +139,6 @@ folding to be used on case-insensitive filesystems only."
|
|||
|
||||
(define-minor-mode dired-omit-mode
|
||||
"Toggle omission of uninteresting files in Dired (Dired-Omit mode).
|
||||
With a prefix argument ARG, enable Dired-Omit mode if ARG is
|
||||
positive, and disable it otherwise. If called from Lisp, enable
|
||||
the mode if ARG is omitted or nil.
|
||||
|
||||
Dired-Omit mode is a buffer-local minor mode. When enabled in a
|
||||
Dired buffer, Dired does not list files whose filenames match
|
||||
|
|
|
@ -184,9 +184,6 @@ and ends with a forward slash."
|
|||
;;;###autoload
|
||||
(define-minor-mode dirtrack-mode
|
||||
"Toggle directory tracking in shell buffers (Dirtrack mode).
|
||||
With a prefix argument ARG, enable Dirtrack mode if ARG is
|
||||
positive, and disable it otherwise. If called from Lisp, enable
|
||||
the mode if ARG is omitted or nil.
|
||||
|
||||
This method requires that your shell prompt contain the current
|
||||
working directory at all times, and that you set the variable
|
||||
|
@ -205,10 +202,7 @@ directory."
|
|||
"23.1")
|
||||
(define-obsolete-variable-alias 'dirtrack-debug 'dirtrack-debug-mode "23.1")
|
||||
(define-minor-mode dirtrack-debug-mode
|
||||
"Toggle Dirtrack debugging.
|
||||
With a prefix argument ARG, enable Dirtrack debugging if ARG is
|
||||
positive, and disable it otherwise. If called from Lisp, enable
|
||||
the mode if ARG is omitted or nil."
|
||||
"Toggle Dirtrack debugging."
|
||||
nil nil nil
|
||||
(if dirtrack-debug-mode
|
||||
(display-buffer (get-buffer-create dirtrack-debug-buffer))))
|
||||
|
|
|
@ -1859,9 +1859,6 @@ to the next best mode."
|
|||
;;;###autoload
|
||||
(define-minor-mode doc-view-minor-mode
|
||||
"Toggle displaying buffer via Doc View (Doc View minor mode).
|
||||
With a prefix argument ARG, enable Doc View minor mode if ARG is
|
||||
positive, and disable it otherwise. If called from Lisp, enable
|
||||
the mode if ARG is omitted or nil.
|
||||
|
||||
See the command `doc-view-mode' for more information on this mode."
|
||||
nil " DocView" doc-view-minor-mode-map
|
||||
|
|
|
@ -150,9 +150,6 @@ but not `C-u X' or `ESC X' since the X is not the prefix key."
|
|||
;;;###autoload
|
||||
(define-minor-mode double-mode
|
||||
"Toggle special insertion on double keypresses (Double mode).
|
||||
With a prefix argument ARG, enable Double mode if ARG is
|
||||
positive, and disable it otherwise. If called from Lisp, enable
|
||||
the mode if ARG is omitted or nil.
|
||||
|
||||
When Double mode is enabled, some keys will insert different
|
||||
strings when pressed twice. See `double-map' for details."
|
||||
|
|
|
@ -581,9 +581,6 @@ ARG and KILLP are passed directly to
|
|||
;;;###autoload
|
||||
(define-minor-mode electric-pair-mode
|
||||
"Toggle automatic parens pairing (Electric Pair mode).
|
||||
With a prefix argument ARG, enable Electric Pair mode if ARG is
|
||||
positive, and disable it otherwise. If called from Lisp, enable
|
||||
the mode if ARG is omitted or nil.
|
||||
|
||||
Electric Pair mode is a global minor mode. When enabled, typing
|
||||
an open parenthesis automatically inserts the corresponding
|
||||
|
|
|
@ -325,9 +325,6 @@ column specified by the function `current-left-margin'."
|
|||
;;;###autoload
|
||||
(define-minor-mode electric-indent-mode
|
||||
"Toggle on-the-fly reindentation (Electric Indent mode).
|
||||
With a prefix argument ARG, enable Electric Indent mode if ARG is
|
||||
positive, and disable it otherwise. If called from Lisp, enable
|
||||
the mode if ARG is omitted or nil.
|
||||
|
||||
When enabled, this reindents whenever the hook `electric-indent-functions'
|
||||
returns non-nil, or if you insert a character from `electric-indent-chars'.
|
||||
|
@ -411,9 +408,7 @@ newline after CHAR but stay in the same place.")
|
|||
;;;###autoload
|
||||
(define-minor-mode electric-layout-mode
|
||||
"Automatically insert newlines around some chars.
|
||||
With a prefix argument ARG, enable Electric Layout mode if ARG is
|
||||
positive, and disable it otherwise. If called from Lisp, enable
|
||||
the mode if ARG is omitted or nil.
|
||||
|
||||
The variable `electric-layout-rules' says when and how to insert newlines."
|
||||
:global t :group 'electricity
|
||||
(cond (electric-layout-mode
|
||||
|
@ -551,9 +546,6 @@ This requotes when a quoting key is typed."
|
|||
;;;###autoload
|
||||
(define-minor-mode electric-quote-mode
|
||||
"Toggle on-the-fly requoting (Electric Quote mode).
|
||||
With a prefix argument ARG, enable Electric Quote mode if
|
||||
ARG is positive, and disable it otherwise. If called from Lisp,
|
||||
enable the mode if ARG is omitted or nil.
|
||||
|
||||
When enabled, as you type this replaces \\=` with ‘, \\=' with ’,
|
||||
\\=`\\=` with “, and \\='\\=' with ”. This occurs only in comments, strings,
|
||||
|
|
|
@ -1237,9 +1237,6 @@ TEXT, START, END and UNFIXABLE conform to
|
|||
;;;###autoload
|
||||
(define-minor-mode checkdoc-minor-mode
|
||||
"Toggle automatic docstring checking (Checkdoc minor mode).
|
||||
With a prefix argument ARG, enable Checkdoc minor mode if ARG is
|
||||
positive, and disable it otherwise. If called from Lisp, enable
|
||||
the mode if ARG is omitted or nil.
|
||||
|
||||
In Checkdoc minor mode, the usual bindings for `eval-defun' which is
|
||||
bound to \\<checkdoc-minor-mode-map>\\[checkdoc-eval-defun] and `checkdoc-eval-current-buffer' are overridden to include
|
||||
|
|
|
@ -81,6 +81,26 @@ replacing its case-insensitive matches with the literal string in LIGHTER."
|
|||
;; space.)
|
||||
(replace-regexp-in-string (regexp-quote lighter) lighter name t t))))
|
||||
|
||||
(defconst easy-mmode--arg-docstring
|
||||
"
|
||||
|
||||
If called interactively, enable %s if ARG is positive, and
|
||||
disable it if ARG is zero or negative. If called from Lisp,
|
||||
also enable the mode if ARG is omitted or nil, and toggle it
|
||||
if ARG is `toggle'; disable the mode otherwise.")
|
||||
|
||||
(defun easy-mmode--mode-docstring (doc mode-pretty-name keymap-sym)
|
||||
(let ((doc (or doc (format "Toggle %s on or off.
|
||||
|
||||
\\{%s}" mode-pretty-name keymap-sym))))
|
||||
(if (string-match-p "\\bARG\\b" doc)
|
||||
doc
|
||||
(let ((argdoc (format easy-mmode--arg-docstring
|
||||
mode-pretty-name)))
|
||||
(replace-regexp-in-string "\\(\n\n\\|\\'\\)\\(.\\|\n\\)*\\'"
|
||||
(concat argdoc "\\1")
|
||||
doc nil nil 1)))))
|
||||
|
||||
;;;###autoload
|
||||
(defalias 'easy-mmode-define-minor-mode 'define-minor-mode)
|
||||
;;;###autoload
|
||||
|
@ -101,7 +121,9 @@ non-positive integer, and enables the mode otherwise (including
|
|||
if the argument is omitted or nil or a positive integer).
|
||||
|
||||
If DOC is nil, give the mode command a basic doc-string
|
||||
documenting what its argument does.
|
||||
documenting what its argument does. If the word \"ARG\" does not
|
||||
appear in DOC, a paragraph is added to DOC explaining
|
||||
usage of the mode argument.
|
||||
|
||||
Optional INIT-VALUE is the initial value of the mode's variable.
|
||||
Optional LIGHTER is displayed in the mode line when the mode is on.
|
||||
|
@ -270,12 +292,7 @@ or call the function `%s'."))))
|
|||
|
||||
;; The actual function.
|
||||
(defun ,modefun (&optional arg ,@extra-args)
|
||||
,(or doc
|
||||
(format (concat "Toggle %s on or off.
|
||||
With a prefix argument ARG, enable %s if ARG is
|
||||
positive, and disable it otherwise. If called from Lisp, enable
|
||||
the mode if ARG is omitted or nil, and toggle it if ARG is `toggle'.
|
||||
\\{%s}") pretty-name pretty-name keymap-sym))
|
||||
,(easy-mmode--mode-docstring doc pretty-name keymap-sym)
|
||||
;; Use `toggle' rather than (if ,mode 0 1) so that using
|
||||
;; repeat-command still does the toggling correctly.
|
||||
(interactive (list (or current-prefix-arg 'toggle)))
|
||||
|
|
|
@ -177,9 +177,6 @@ printed after commands contained in this obarray."
|
|||
;;;###autoload
|
||||
(define-minor-mode eldoc-mode
|
||||
"Toggle echo area display of Lisp objects at point (ElDoc mode).
|
||||
With a prefix argument ARG, enable ElDoc mode if ARG is positive,
|
||||
and disable it otherwise. If called from Lisp, enable ElDoc mode
|
||||
if ARG is omitted or nil.
|
||||
|
||||
ElDoc mode is a buffer-local minor mode. When enabled, the echo
|
||||
area displays information about a function or variable in the
|
||||
|
|
|
@ -189,9 +189,7 @@ Return a value appropriate for `kill-buffer-query-functions' (which see)."
|
|||
(define-minor-mode emacs-lock-mode
|
||||
"Toggle Emacs Lock mode in the current buffer.
|
||||
If called with a plain prefix argument, ask for the locking mode
|
||||
to be used. With any other prefix ARG, turn mode on if ARG is
|
||||
positive, off otherwise. If called from Lisp, enable the mode if
|
||||
ARG is omitted or nil.
|
||||
to be used.
|
||||
|
||||
Initially, if the user does not pass an explicit locking mode, it
|
||||
defaults to `emacs-lock-default-locking-mode' (which see);
|
||||
|
|
|
@ -1318,9 +1318,6 @@ If ARG is the atom `-', scroll upward by nearly full screen."
|
|||
;;;###autoload
|
||||
(define-minor-mode cua-mode
|
||||
"Toggle Common User Access style editing (CUA mode).
|
||||
With a prefix argument ARG, enable CUA mode if ARG is positive,
|
||||
and disable it otherwise. If called from Lisp, enable the mode
|
||||
if ARG is omitted or nil.
|
||||
|
||||
CUA mode is a global minor mode. When enabled, typed text
|
||||
replaces the active selection, and you can use C-z, C-x, C-c, and
|
||||
|
|
|
@ -83,10 +83,7 @@ May either be a string or a list of strings.")
|
|||
(auto-save-mode 0)))
|
||||
|
||||
(define-minor-mode auto-encryption-mode
|
||||
"Toggle automatic file encryption/decryption (Auto Encryption mode).
|
||||
With a prefix argument ARG, enable Auto Encryption mode if ARG is
|
||||
positive, and disable it otherwise. If called from Lisp, enable
|
||||
the mode if ARG is omitted or nil."
|
||||
"Toggle automatic file encryption/decryption (Auto Encryption mode)."
|
||||
:global t :init-value t :group 'epa-file :version "23.1"
|
||||
;; We'd like to use custom-initialize-set here so the setup is done
|
||||
;; before dumping, but at the point where the defcustom is evaluated,
|
||||
|
|
|
@ -47,10 +47,7 @@
|
|||
|
||||
;;;###autoload
|
||||
(define-minor-mode epa-mail-mode
|
||||
"A minor-mode for composing encrypted/clearsigned mails.
|
||||
With a prefix argument ARG, enable the mode if ARG is positive,
|
||||
and disable it otherwise. If called from Lisp, enable the mode
|
||||
if ARG is omitted or nil."
|
||||
"A minor-mode for composing encrypted/clearsigned mails."
|
||||
nil " epa-mail" epa-mail-mode-map)
|
||||
|
||||
(defun epa-mail--find-usable-key (keys usage)
|
||||
|
@ -238,10 +235,7 @@ The buffer is expected to contain a mail message."
|
|||
|
||||
;;;###autoload
|
||||
(define-minor-mode epa-global-mail-mode
|
||||
"Minor mode to hook EasyPG into Mail mode.
|
||||
With a prefix argument ARG, enable the mode if ARG is positive,
|
||||
and disable it otherwise. If called from Lisp, enable the mode
|
||||
if ARG is omitted or nil."
|
||||
"Minor mode to hook EasyPG into Mail mode."
|
||||
:global t :init-value nil :group 'epa-mail :version "23.1"
|
||||
(remove-hook 'mail-mode-hook 'epa-mail-mode)
|
||||
(if epa-global-mail-mode
|
||||
|
|
|
@ -495,9 +495,6 @@ START is the minimum length of the name used."
|
|||
;;;###autoload
|
||||
(define-minor-mode erc-track-minor-mode
|
||||
"Toggle mode line display of ERC activity (ERC Track minor mode).
|
||||
With a prefix argument ARG, enable ERC Track minor mode if ARG is
|
||||
positive, and disable it otherwise. If called from Lisp, enable
|
||||
the mode if ARG is omitted or nil.
|
||||
|
||||
ERC Track minor mode is a global minor mode. It exists for the
|
||||
sole purpose of providing the C-c C-SPC and C-c C-@ keybindings.
|
||||
|
|
|
@ -229,9 +229,6 @@ Each positive or negative step scales the default face height by this amount."
|
|||
|
||||
(define-minor-mode text-scale-mode
|
||||
"Minor mode for displaying buffer text in a larger/smaller font.
|
||||
With a prefix argument ARG, enable the mode if ARG is positive,
|
||||
and disable it otherwise. If called from Lisp, enable the mode
|
||||
if ARG is omitted or nil.
|
||||
|
||||
The amount of scaling is determined by the variable
|
||||
`text-scale-mode-amount': one step scales the global default
|
||||
|
@ -387,10 +384,9 @@ plist, etc."
|
|||
;;;###autoload
|
||||
(define-minor-mode buffer-face-mode
|
||||
"Minor mode for a buffer-specific default face.
|
||||
With a prefix argument ARG, enable the mode if ARG is positive,
|
||||
and disable it otherwise. If called from Lisp, enable the mode
|
||||
if ARG is omitted or nil. When enabled, the face specified by the
|
||||
variable `buffer-face-mode-face' is used to display the buffer text."
|
||||
|
||||
When enabled, the face specified by the variable
|
||||
`buffer-face-mode-face' is used to display the buffer text."
|
||||
:lighter " BufFace"
|
||||
(when buffer-face-mode-remapping
|
||||
(face-remap-remove-relative buffer-face-mode-remapping))
|
||||
|
|
|
@ -419,14 +419,10 @@ idle for `auto-save-visited-interval' seconds."
|
|||
|
||||
(define-minor-mode auto-save-visited-mode
|
||||
"Toggle automatic saving to file-visiting buffers on or off.
|
||||
With a prefix argument ARG, enable regular saving of all buffers
|
||||
visiting a file if ARG is positive, and disable it otherwise.
|
||||
|
||||
Unlike `auto-save-mode', this mode will auto-save buffer contents
|
||||
to the visited files directly and will also run all save-related
|
||||
hooks. See Info node `Saving' for details of the save process.
|
||||
|
||||
If called from Lisp, enable the mode if ARG is omitted or nil,
|
||||
and toggle it if ARG is `toggle'."
|
||||
hooks. See Info node `Saving' for details of the save process."
|
||||
:group 'auto-save
|
||||
:global t
|
||||
(when auto-save--timer (cancel-timer auto-save--timer))
|
||||
|
|
|
@ -383,9 +383,6 @@ This is typically set by explicit scrolling commands.")
|
|||
;;;###autoload
|
||||
(define-minor-mode follow-mode
|
||||
"Toggle Follow mode.
|
||||
With a prefix argument ARG, enable Follow mode if ARG is
|
||||
positive, and disable it otherwise. If called from Lisp, enable
|
||||
the mode if ARG is omitted or nil.
|
||||
|
||||
Follow mode is a minor mode that combines windows into one tall
|
||||
virtual window. This is accomplished by two main techniques:
|
||||
|
|
|
@ -78,9 +78,6 @@ It will be passed one argument, which is the current value of
|
|||
|
||||
(define-minor-mode font-lock-mode
|
||||
"Toggle syntax highlighting in this buffer (Font Lock mode).
|
||||
With a prefix argument ARG, enable Font Lock mode if ARG is
|
||||
positive, and disable it otherwise. If called from Lisp, enable
|
||||
the mode if ARG is omitted or nil.
|
||||
|
||||
When Font Lock mode is enabled, text is fontified as you type it:
|
||||
|
||||
|
|
|
@ -1382,9 +1382,6 @@ To get the frame's current border color, use `frame-parameters'."
|
|||
|
||||
(define-minor-mode auto-raise-mode
|
||||
"Toggle whether or not selected frames should auto-raise.
|
||||
With a prefix argument ARG, enable Auto Raise mode if ARG is
|
||||
positive, and disable it otherwise. If called from Lisp, enable
|
||||
the mode if ARG is omitted or nil.
|
||||
|
||||
Auto Raise mode does nothing under most window managers, which
|
||||
switch focus on mouse clicks. It only has an effect if your
|
||||
|
@ -1402,9 +1399,6 @@ often have their own auto-raise feature."
|
|||
|
||||
(define-minor-mode auto-lower-mode
|
||||
"Toggle whether or not the selected frame should auto-lower.
|
||||
With a prefix argument ARG, enable Auto Lower mode if ARG is
|
||||
positive, and disable it otherwise. If called from Lisp, enable
|
||||
the mode if ARG is omitted or nil.
|
||||
|
||||
Auto Lower mode does nothing under most window managers, which
|
||||
switch focus on mouse clicks. It only has an effect if your
|
||||
|
@ -2297,9 +2291,6 @@ all divider widths to zero."
|
|||
|
||||
(define-minor-mode window-divider-mode
|
||||
"Display dividers between windows (Window Divider mode).
|
||||
With a prefix argument ARG, enable Window Divider mode if ARG is
|
||||
positive, and disable it otherwise. If called from Lisp, enable
|
||||
the mode if ARG is omitted or nil.
|
||||
|
||||
The option `window-divider-default-places' specifies on which
|
||||
side of a window dividers are displayed. The options
|
||||
|
@ -2450,9 +2441,6 @@ stopped by `blink-cursor-suspend'. Internally calls
|
|||
|
||||
(define-minor-mode blink-cursor-mode
|
||||
"Toggle cursor blinking (Blink Cursor mode).
|
||||
With a prefix argument ARG, enable Blink Cursor mode if ARG is
|
||||
positive, and disable it otherwise. If called from Lisp, enable
|
||||
the mode if ARG is omitted or nil.
|
||||
|
||||
If the value of `blink-cursor-blinks' is positive (10 by default),
|
||||
the cursor stops blinking after that number of blinks, if Emacs
|
||||
|
|
|
@ -1107,9 +1107,6 @@ function is called, the window to be resized is selected."
|
|||
|
||||
(define-minor-mode temp-buffer-resize-mode
|
||||
"Toggle auto-resizing temporary buffer windows (Temp Buffer Resize Mode).
|
||||
With a prefix argument ARG, enable Temp Buffer Resize mode if ARG
|
||||
is positive, and disable it otherwise. If called from Lisp,
|
||||
enable the mode if ARG is omitted or nil.
|
||||
|
||||
When Temp Buffer Resize mode is enabled, the windows in which we
|
||||
show a temporary buffer are automatically resized in height to
|
||||
|
|
|
@ -997,6 +997,7 @@ Embedded whitespace, dashes, and periods in the string are ignored."
|
|||
|
||||
(define-minor-mode hexl-follow-ascii-mode
|
||||
"Minor mode to follow ASCII in current Hexl buffer.
|
||||
|
||||
When following is enabled, the ASCII character corresponding to the
|
||||
element under the point is highlighted.
|
||||
The default activation is controlled by `hexl-follow-ascii'."
|
||||
|
|
|
@ -289,9 +289,6 @@ a library is being loaded.")
|
|||
;;;###autoload
|
||||
(define-minor-mode hi-lock-mode
|
||||
"Toggle selective highlighting of patterns (Hi Lock mode).
|
||||
With a prefix argument ARG, enable Hi Lock mode if ARG is
|
||||
positive, and disable it otherwise. If called from Lisp, enable
|
||||
the mode if ARG is omitted or nil.
|
||||
|
||||
Hi Lock mode is automatically enabled when you invoke any of the
|
||||
highlighting commands listed below, such as \\[highlight-regexp].
|
||||
|
|
|
@ -319,9 +319,6 @@ remove it from existing buffers."
|
|||
;;;###autoload
|
||||
(define-minor-mode highlight-changes-mode
|
||||
"Toggle highlighting changes in this buffer (Highlight Changes mode).
|
||||
With a prefix argument ARG, enable Highlight Changes mode if ARG
|
||||
is positive, and disable it otherwise. If called from Lisp,
|
||||
enable the mode if ARG is omitted or nil.
|
||||
|
||||
When Highlight Changes is enabled, changes are marked with a text
|
||||
property. Normally they are displayed in a distinctive face, but
|
||||
|
@ -360,9 +357,6 @@ buffer with the contents of a file
|
|||
;;;###autoload
|
||||
(define-minor-mode highlight-changes-visible-mode
|
||||
"Toggle visibility of highlighting due to Highlight Changes mode.
|
||||
With a prefix argument ARG, enable Highlight Changes Visible mode
|
||||
if ARG is positive, and disable it otherwise. If called from
|
||||
Lisp, enable the mode if ARG is omitted or nil.
|
||||
|
||||
Highlight Changes Visible mode only has an effect when Highlight
|
||||
Changes mode is on. When enabled, the changed text is displayed
|
||||
|
|
|
@ -132,9 +132,6 @@ This variable is expected to be made buffer-local by modes.")
|
|||
;;;###autoload
|
||||
(define-minor-mode hl-line-mode
|
||||
"Toggle highlighting of the current line (Hl-Line mode).
|
||||
With a prefix argument ARG, enable Hl-Line mode if ARG is
|
||||
positive, and disable it otherwise. If called from Lisp, enable
|
||||
the mode if ARG is omitted or nil.
|
||||
|
||||
Hl-Line mode is a buffer-local minor mode. If
|
||||
`hl-line-sticky-flag' is non-nil, Hl-Line mode highlights the
|
||||
|
@ -203,9 +200,6 @@ such overlays in all buffers except the current one."
|
|||
;;;###autoload
|
||||
(define-minor-mode global-hl-line-mode
|
||||
"Toggle line highlighting in all buffers (Global Hl-Line mode).
|
||||
With a prefix argument ARG, enable Global Hl-Line mode if ARG is
|
||||
positive, and disable it otherwise. If called from Lisp, enable
|
||||
the mode if ARG is omitted or nil.
|
||||
|
||||
If `global-hl-line-sticky-flag' is non-nil, Global Hl-Line mode
|
||||
highlights the line about the current buffer's point in all live
|
||||
|
|
|
@ -403,10 +403,7 @@ format. See `ibuffer-update-saved-filters-format' and
|
|||
|
||||
;;;###autoload
|
||||
(define-minor-mode ibuffer-auto-mode
|
||||
"Toggle use of Ibuffer's auto-update facility (Ibuffer Auto mode).
|
||||
With a prefix argument ARG, enable Ibuffer Auto mode if ARG is
|
||||
positive, and disable it otherwise. If called from Lisp, enable
|
||||
the mode if ARG is omitted or nil."
|
||||
"Toggle use of Ibuffer's auto-update facility (Ibuffer Auto mode)."
|
||||
nil nil nil
|
||||
(unless (derived-mode-p 'ibuffer-mode)
|
||||
(error "This buffer is not in Ibuffer mode"))
|
||||
|
|
|
@ -194,9 +194,6 @@ Last entry becomes the first and can be selected with
|
|||
;;;###autoload
|
||||
(define-minor-mode icomplete-mode
|
||||
"Toggle incremental minibuffer completion (Icomplete mode).
|
||||
With a prefix argument ARG, enable Icomplete mode if ARG is
|
||||
positive, and disable it otherwise. If called from Lisp, enable
|
||||
the mode if ARG is omitted or nil.
|
||||
|
||||
When this global minor mode is enabled, typing in the minibuffer
|
||||
continuously displays a list of possible completions that match
|
||||
|
|
|
@ -1582,10 +1582,7 @@ Removes badly formatted data and ignored directories."
|
|||
(add-hook 'choose-completion-string-functions 'ido-choose-completion-string))
|
||||
|
||||
(define-minor-mode ido-everywhere
|
||||
"Toggle use of Ido for all buffer/file reading.
|
||||
With a prefix argument ARG, enable this feature if ARG is
|
||||
positive, and disable it otherwise. If called from Lisp,
|
||||
enable the mode if ARG is omitted or nil."
|
||||
"Toggle use of Ido for all buffer/file reading."
|
||||
:global t
|
||||
:group 'ido
|
||||
(remove-function read-file-name-function #'ido-read-file-name)
|
||||
|
|
|
@ -179,9 +179,6 @@ Optional argument ARGS are the arguments to call FUNCTION with."
|
|||
;;;###autoload
|
||||
(define-minor-mode auto-image-file-mode
|
||||
"Toggle visiting of image files as images (Auto Image File mode).
|
||||
With a prefix argument ARG, enable Auto Image File mode if ARG is
|
||||
positive, and disable it otherwise. If called from Lisp, enable
|
||||
the mode if ARG is omitted or nil.
|
||||
|
||||
An image file is one whose name has an extension in
|
||||
`image-file-name-extensions', or matches a regexp in
|
||||
|
|
|
@ -617,9 +617,6 @@ mouse-3: Previous frame"
|
|||
;;;###autoload
|
||||
(define-minor-mode image-minor-mode
|
||||
"Toggle Image minor mode in this buffer.
|
||||
With a prefix argument ARG, enable Image minor mode if ARG is
|
||||
positive, and disable it otherwise. If called from Lisp, enable
|
||||
the mode if ARG is omitted or nil.
|
||||
|
||||
Image minor mode provides the key \\<image-mode-map>\\[image-toggle-display],
|
||||
to switch back to `image-mode' and display an image file as the
|
||||
|
|
|
@ -163,10 +163,7 @@
|
|||
(iso-ascii-display 255 "\"y") ; small y with diaeresis or umlaut mark
|
||||
|
||||
(define-minor-mode iso-ascii-mode
|
||||
"Toggle ISO-ASCII mode.
|
||||
With a prefix argument ARG, enable the mode if ARG is positive,
|
||||
and disable it otherwise. If called from Lisp, enable the mode
|
||||
if ARG is omitted or nil."
|
||||
"Toggle ISO-ASCII mode."
|
||||
:variable ((eq standard-display-table iso-ascii-display-table)
|
||||
. (lambda (v)
|
||||
(setq standard-display-table
|
||||
|
|
|
@ -266,6 +266,7 @@ If you need to debug code run from jit-lock, see `jit-lock-debug-mode'."
|
|||
|
||||
(define-minor-mode jit-lock-debug-mode
|
||||
"Minor mode to help debug code run from jit-lock.
|
||||
|
||||
When this minor mode is enabled, jit-lock runs as little code as possible
|
||||
during redisplay and moves the rest to a timer, where things
|
||||
like `debug-on-error' and Edebug can be used."
|
||||
|
|
|
@ -347,9 +347,6 @@ variables. Setting this through Custom does that automatically."
|
|||
|
||||
(define-minor-mode auto-compression-mode
|
||||
"Toggle Auto Compression mode.
|
||||
With a prefix argument ARG, enable Auto Compression mode if ARG
|
||||
is positive, and disable it otherwise. If called from Lisp,
|
||||
enable the mode if ARG is omitted or nil.
|
||||
|
||||
Auto Compression mode is a global minor mode. When enabled,
|
||||
compressed files are automatically uncompressed for reading, and
|
||||
|
|
|
@ -256,11 +256,10 @@ positions (integers or markers) specifying the region."
|
|||
|
||||
(define-minor-mode thai-word-mode
|
||||
"Minor mode to make word-oriented commands aware of Thai words.
|
||||
With a prefix argument ARG, enable the mode if ARG is positive,
|
||||
and disable it otherwise. If called from Lisp, enable the mode
|
||||
if ARG is omitted or nil. The commands affected are
|
||||
\\[forward-word], \\[backward-word], \\[kill-word], \\[backward-kill-word],
|
||||
\\[transpose-words], and \\[fill-paragraph]."
|
||||
|
||||
The commands affected are \\[forward-word], \\[backward-word],
|
||||
\\[kill-word], \\[backward-kill-word], \\[transpose-words], and
|
||||
\\[fill-paragraph]."
|
||||
:global t :group 'mule
|
||||
(cond (thai-word-mode
|
||||
;; This enables linebreak between Thai characters.
|
||||
|
|
|
@ -75,12 +75,10 @@ and you have to scroll or press \\[recenter-top-bottom] to update the numbers."
|
|||
;;;###autoload
|
||||
(define-minor-mode linum-mode
|
||||
"Toggle display of line numbers in the left margin (Linum mode).
|
||||
With a prefix argument ARG, enable Linum mode if ARG is positive,
|
||||
and disable it otherwise. If called from Lisp, enable the mode
|
||||
if ARG is omitted or nil.
|
||||
|
||||
Linum mode is a buffer-local minor mode."
|
||||
:lighter "" ; for desktop.el
|
||||
:append-arg-docstring t
|
||||
(if linum-mode
|
||||
(progn
|
||||
(if linum-eager
|
||||
|
|
|
@ -945,9 +945,6 @@ being set it is automatically widened."
|
|||
;;;###autoload
|
||||
(define-minor-mode footnote-mode
|
||||
"Toggle Footnote mode.
|
||||
With a prefix argument ARG, enable Footnote mode if ARG is
|
||||
positive, and disable it otherwise. If called from Lisp, enable
|
||||
the mode if ARG is omitted or nil.
|
||||
|
||||
Footnote mode is a buffer-local minor mode. If enabled, it
|
||||
provides footnote support for `message-mode'. To get started,
|
||||
|
|
|
@ -134,9 +134,6 @@
|
|||
;;;###autoload
|
||||
(define-minor-mode mail-abbrevs-mode
|
||||
"Toggle abbrev expansion of mail aliases (Mail Abbrevs mode).
|
||||
With a prefix argument ARG, enable Mail Abbrevs mode if ARG is
|
||||
positive, and disable it otherwise. If called from Lisp, enable
|
||||
the mode if ARG is omitted or nil.
|
||||
|
||||
Mail Abbrevs mode is a global minor mode. When enabled,
|
||||
abbrev-like expansion is performed when editing certain mail
|
||||
|
|
|
@ -73,9 +73,6 @@ You can set this variable using `master-set-slave'.")
|
|||
;;;###autoload
|
||||
(define-minor-mode master-mode
|
||||
"Toggle Master mode.
|
||||
With a prefix argument ARG, enable Master mode if ARG is
|
||||
positive, and disable it otherwise. If called from Lisp, enable
|
||||
the mode if ARG is omitted or nil.
|
||||
|
||||
When Master mode is enabled, you can scroll the slave buffer
|
||||
using the following commands:
|
||||
|
|
|
@ -58,9 +58,6 @@ The prompt should already have been inserted."
|
|||
;;;###autoload
|
||||
(define-minor-mode minibuffer-depth-indicate-mode
|
||||
"Toggle Minibuffer Depth Indication mode.
|
||||
With a prefix argument ARG, enable Minibuffer Depth Indication
|
||||
mode if ARG is positive, and disable it otherwise. If called
|
||||
from Lisp, enable the mode if ARG is omitted or nil.
|
||||
|
||||
Minibuffer Depth Indication mode is a global minor mode. When
|
||||
enabled, any recursive use of the minibuffer will show the
|
||||
|
|
|
@ -2285,9 +2285,6 @@ It must accept a buffer as its only required argument.")
|
|||
|
||||
(define-minor-mode menu-bar-mode
|
||||
"Toggle display of a menu bar on each frame (Menu Bar mode).
|
||||
With a prefix argument ARG, enable Menu Bar mode if ARG is
|
||||
positive, and disable it otherwise. If called from Lisp, also
|
||||
enable Menu Bar mode if ARG is omitted or nil.
|
||||
|
||||
This command applies to all frames that exist and frames to be
|
||||
created in the future."
|
||||
|
|
|
@ -163,9 +163,6 @@ been set up by `minibuf-eldef-setup-minibuffer'."
|
|||
;;;###autoload
|
||||
(define-minor-mode minibuffer-electric-default-mode
|
||||
"Toggle Minibuffer Electric Default mode.
|
||||
With a prefix argument ARG, enable Minibuffer Electric Default
|
||||
mode if ARG is positive, and disable it otherwise. If called
|
||||
from Lisp, enable the mode if ARG is omitted or nil.
|
||||
|
||||
Minibuffer Electric Default mode is a global minor mode. When
|
||||
enabled, minibuffer prompts that show a default value only show
|
||||
|
|
|
@ -1132,9 +1132,6 @@ variable `msb-menu-cond'."
|
|||
;;;###autoload
|
||||
(define-minor-mode msb-mode
|
||||
"Toggle Msb mode.
|
||||
With a prefix argument ARG, enable Msb mode if ARG is positive,
|
||||
and disable it otherwise. If called from Lisp, enable the mode
|
||||
if ARG is omitted or nil.
|
||||
|
||||
This mode overrides the binding(s) of `mouse-buffer-menu' to provide a
|
||||
different buffer menu using the function `msb'."
|
||||
|
|
|
@ -309,10 +309,7 @@ non-Windows systems."
|
|||
(defvar mwheel-installed-bindings nil)
|
||||
|
||||
(define-minor-mode mouse-wheel-mode
|
||||
"Toggle mouse wheel support (Mouse Wheel mode).
|
||||
With a prefix argument ARG, enable Mouse Wheel mode if ARG is
|
||||
positive, and disable it otherwise. If called from Lisp, enable
|
||||
the mode if ARG is omitted or nil."
|
||||
"Toggle mouse wheel support (Mouse Wheel mode)."
|
||||
:init-value t
|
||||
;; We'd like to use custom-initialize-set here so the setup is done
|
||||
;; before dumping, but at the point where the defcustom is evaluated,
|
||||
|
|
|
@ -270,10 +270,7 @@ Also fontifies the buffer appropriately (see `goto-address-fontify-p' and
|
|||
|
||||
;;;###autoload
|
||||
(define-minor-mode goto-address-mode
|
||||
"Minor mode to buttonize URLs and e-mail addresses in the current buffer.
|
||||
With a prefix argument ARG, enable the mode if ARG is positive,
|
||||
and disable it otherwise. If called from Lisp, enable the mode
|
||||
if ARG is omitted or nil."
|
||||
"Minor mode to buttonize URLs and e-mail addresses in the current buffer."
|
||||
nil
|
||||
""
|
||||
nil
|
||||
|
|
|
@ -186,9 +186,6 @@ underneath each nick."
|
|||
|
||||
(define-minor-mode rcirc-omit-mode
|
||||
"Toggle the hiding of \"uninteresting\" lines.
|
||||
With a prefix argument ARG, enable Rcirc-Omit mode if ARG is
|
||||
positive, and disable it otherwise. If called from Lisp, enable
|
||||
the mode if ARG is omitted or nil.
|
||||
|
||||
Uninteresting lines are those whose responses are listed in
|
||||
`rcirc-omit-responses'."
|
||||
|
@ -1353,10 +1350,7 @@ Create the buffer if it doesn't exist."
|
|||
"Keymap for multiline mode in rcirc.")
|
||||
|
||||
(define-minor-mode rcirc-multiline-minor-mode
|
||||
"Minor mode for editing multiple lines in rcirc.
|
||||
With a prefix argument ARG, enable the mode if ARG is positive,
|
||||
and disable it otherwise. If called from Lisp, enable the mode
|
||||
if ARG is omitted or nil."
|
||||
"Minor mode for editing multiple lines in rcirc."
|
||||
:init-value nil
|
||||
:lighter " rcirc-mline"
|
||||
:keymap rcirc-multiline-minor-mode-map
|
||||
|
@ -1867,10 +1861,7 @@ This function does not alter the INPUT string."
|
|||
|
||||
;;;###autoload
|
||||
(define-minor-mode rcirc-track-minor-mode
|
||||
"Global minor mode for tracking activity in rcirc buffers.
|
||||
With a prefix argument ARG, enable the mode if ARG is positive,
|
||||
and disable it otherwise. If called from Lisp, enable the mode
|
||||
if ARG is omitted or nil."
|
||||
"Global minor mode for tracking activity in rcirc buffers."
|
||||
:init-value nil
|
||||
:lighter ""
|
||||
:keymap rcirc-track-minor-mode-map
|
||||
|
|
|
@ -191,7 +191,6 @@ If nil, means use the colon-separated path in the variable $INCPATH instead."
|
|||
;;;###autoload
|
||||
(define-minor-mode partial-completion-mode
|
||||
"Toggle Partial Completion mode.
|
||||
With prefix ARG, turn Partial Completion mode on if ARG is positive.
|
||||
|
||||
When Partial Completion mode is enabled, TAB (or M-TAB if `PC-meta-flag' is
|
||||
nil) is enhanced so that if some string is divided into words and each word is
|
||||
|
|
|
@ -353,10 +353,7 @@ normal CRiSP binding) and when it is nil M-x will run
|
|||
|
||||
;;;###autoload
|
||||
(define-minor-mode crisp-mode
|
||||
"Toggle CRiSP/Brief emulation (CRiSP mode).
|
||||
With a prefix argument ARG, enable CRiSP mode if ARG is positive,
|
||||
and disable it otherwise. If called from Lisp, enable the mode
|
||||
if ARG is omitted or nil."
|
||||
"Toggle CRiSP/Brief emulation (CRiSP mode)."
|
||||
:keymap crisp-mode-map
|
||||
:lighter crisp-mode-mode-line-string
|
||||
(when crisp-mode
|
||||
|
|
|
@ -1417,9 +1417,6 @@ See the variable `iswitchb-case' for details."
|
|||
;;;###autoload
|
||||
(define-minor-mode iswitchb-mode
|
||||
"Toggle Iswitchb mode.
|
||||
With a prefix argument ARG, enable Iswitchb mode if ARG is
|
||||
positive, and disable it otherwise. If called from Lisp, enable
|
||||
the mode if ARG is omitted or nil.
|
||||
|
||||
Iswitchb mode is a global minor mode that enables switching
|
||||
between buffers using substrings. See `iswitchb' for details."
|
||||
|
|
|
@ -97,9 +97,6 @@ This is used when `longlines-show-hard-newlines' is on."
|
|||
;;;###autoload
|
||||
(define-minor-mode longlines-mode
|
||||
"Toggle Long Lines mode in this buffer.
|
||||
With a prefix argument ARG, enable Long Lines mode if ARG is
|
||||
positive, and disable it otherwise. If called from Lisp, enable
|
||||
the mode if ARG is omitted or nil.
|
||||
|
||||
When Long Lines mode is enabled, long lines are wrapped if they
|
||||
extend beyond `fill-column'. The soft newlines used for line
|
||||
|
|
|
@ -194,9 +194,6 @@ If nil, point will always be placed at the beginning of the region."
|
|||
;;;###autoload
|
||||
(define-minor-mode mouse-sel-mode
|
||||
"Toggle Mouse Sel mode.
|
||||
With a prefix argument ARG, enable Mouse Sel mode if ARG is
|
||||
positive, and disable it otherwise. If called from Lisp, enable
|
||||
the mode if ARG is omitted or nil.
|
||||
|
||||
Mouse Sel mode is a global minor mode. When enabled, mouse
|
||||
selection is enhanced in various ways:
|
||||
|
|
|
@ -747,7 +747,6 @@ If timer is not set, then set it to scan the files in
|
|||
;;;###autoload
|
||||
(define-minor-mode whitespace-global-mode
|
||||
"Toggle using Whitespace mode in new buffers.
|
||||
With ARG, turn the mode on if ARG is positive, otherwise turn it off.
|
||||
|
||||
When this mode is active, `whitespace-buffer' is added to
|
||||
`find-file-hook' and `kill-buffer-hook'."
|
||||
|
|
|
@ -980,10 +980,7 @@ and the total number of lines in the buffer."
|
|||
;;;
|
||||
;;;###autoload
|
||||
(define-minor-mode tpu-edt-mode
|
||||
"Toggle TPU/edt emulation on or off.
|
||||
With a prefix argument ARG, enable the mode if ARG is positive,
|
||||
and disable it otherwise. If called from Lisp, enable the mode
|
||||
if ARG is omitted or nil."
|
||||
"Toggle TPU/edt emulation on or off."
|
||||
:global t :group 'tpu
|
||||
(if tpu-edt-mode (tpu-edt-on) (tpu-edt-off)))
|
||||
|
||||
|
|
|
@ -133,10 +133,7 @@ the previous line when starting from a line beginning."
|
|||
|
||||
;;;###autoload
|
||||
(define-minor-mode tpu-cursor-free-mode
|
||||
"Minor mode to allow the cursor to move freely about the screen.
|
||||
With a prefix argument ARG, enable the mode if ARG is positive,
|
||||
and disable it otherwise. If called from Lisp, enable the mode
|
||||
if ARG is omitted or nil."
|
||||
"Minor mode to allow the cursor to move freely about the screen."
|
||||
:init-value nil
|
||||
(if (not tpu-cursor-free-mode)
|
||||
(tpu-trim-line-ends))
|
||||
|
|
|
@ -512,9 +512,6 @@ engine specific, widget :notify function to visualize xesam:url."
|
|||
|
||||
(define-minor-mode xesam-minor-mode
|
||||
"Toggle Xesam minor mode.
|
||||
With a prefix argument ARG, enable Xesam minor mode if ARG is
|
||||
positive, and disable it otherwise. If called from Lisp, enable
|
||||
the mode if ARG is omitted or nil.
|
||||
|
||||
When Xesam minor mode is enabled, all text which matches a
|
||||
previous Xesam query in this buffer is highlighted."
|
||||
|
|
|
@ -299,9 +299,6 @@ After that, changing the prefix key requires manipulating keymaps."
|
|||
;;;###autoload
|
||||
(define-minor-mode outline-minor-mode
|
||||
"Toggle Outline minor mode.
|
||||
With a prefix argument ARG, enable Outline minor mode if ARG is
|
||||
positive, and disable it otherwise. If called from Lisp, enable
|
||||
the mode if ARG is omitted or nil.
|
||||
|
||||
See the command `outline-mode' for more information on this mode."
|
||||
nil " Outl" (list (cons [menu-bar] outline-minor-mode-menu-bar-map)
|
||||
|
|
|
@ -100,9 +100,6 @@ its position."
|
|||
;;;###autoload
|
||||
(define-minor-mode show-paren-mode
|
||||
"Toggle visualization of matching parens (Show Paren mode).
|
||||
With a prefix argument ARG, enable Show Paren mode if ARG is
|
||||
positive, and disable it otherwise. If called from Lisp, enable
|
||||
the mode if ARG is omitted or nil.
|
||||
|
||||
Show Paren mode is a global minor mode. When enabled, any
|
||||
matching parenthesis is highlighted in `show-paren-style' after
|
||||
|
|
|
@ -105,10 +105,7 @@ function returns nil."
|
|||
|
||||
;;;###autoload
|
||||
(define-minor-mode pixel-scroll-mode
|
||||
"A minor mode to scroll text pixel-by-pixel.
|
||||
With a prefix argument ARG, enable Pixel Scroll mode if ARG is positive,
|
||||
and disable it otherwise. If called from Lisp, enable Pixel Scroll mode
|
||||
if ARG is omitted or nil."
|
||||
"A minor mode to scroll text pixel-by-pixel."
|
||||
:init-value nil
|
||||
:group 'scrolling
|
||||
:global t
|
||||
|
|
|
@ -141,10 +141,7 @@ The second subexpression should match the bug reference (usually a number)."
|
|||
|
||||
;;;###autoload
|
||||
(define-minor-mode bug-reference-mode
|
||||
"Toggle hyperlinking bug references in the buffer (Bug Reference mode).
|
||||
With a prefix argument ARG, enable Bug Reference mode if ARG is
|
||||
positive, and disable it otherwise. If called from Lisp, enable
|
||||
the mode if ARG is omitted or nil."
|
||||
"Toggle hyperlinking bug references in the buffer (Bug Reference mode)."
|
||||
nil
|
||||
""
|
||||
nil
|
||||
|
|
|
@ -2164,9 +2164,6 @@ Optional argument MINOR indicates this is called from
|
|||
;;;###autoload
|
||||
(define-minor-mode compilation-shell-minor-mode
|
||||
"Toggle Compilation Shell minor mode.
|
||||
With a prefix argument ARG, enable Compilation Shell minor mode
|
||||
if ARG is positive, and disable it otherwise. If called from
|
||||
Lisp, enable the mode if ARG is omitted or nil.
|
||||
|
||||
When Compilation Shell minor mode is enabled, all the
|
||||
error-parsing commands of the Compilation major mode are
|
||||
|
@ -2181,9 +2178,6 @@ See `compilation-mode'."
|
|||
;;;###autoload
|
||||
(define-minor-mode compilation-minor-mode
|
||||
"Toggle Compilation minor mode.
|
||||
With a prefix argument ARG, enable Compilation minor mode if ARG
|
||||
is positive, and disable it otherwise. If called from Lisp,
|
||||
enable the mode if ARG is omitted or nil.
|
||||
|
||||
When Compilation minor mode is enabled, all the error-parsing
|
||||
commands of Compilation major mode are available. See
|
||||
|
|
|
@ -180,11 +180,7 @@ Suspicious constructs are highlighted using `font-lock-warning-face'.
|
|||
|
||||
Note, in addition to enabling this minor mode, the major mode must
|
||||
be included in the variable `cwarn-configuration'. By default C and
|
||||
C++ modes are included.
|
||||
|
||||
With a prefix argument ARG, enable the mode if ARG is positive,
|
||||
and disable it otherwise. If called from Lisp, enable the mode
|
||||
if ARG is omitted or nil."
|
||||
C++ modes are included."
|
||||
:group 'cwarn :lighter cwarn-mode-text
|
||||
(cwarn-font-lock-keywords cwarn-mode)
|
||||
(font-lock-flush))
|
||||
|
|
|
@ -915,9 +915,6 @@ Interactively, with a prefix arg, FORCE is t."
|
|||
;;;###autoload
|
||||
(define-minor-mode flymake-mode
|
||||
"Toggle Flymake mode on or off.
|
||||
With a prefix argument ARG, enable Flymake mode if ARG is
|
||||
positive, and disable it otherwise. If called from Lisp, enable
|
||||
the mode if ARG is omitted or nil, and toggle it if ARG is `toggle'.
|
||||
|
||||
Flymake is an Emacs minor mode for on-the-fly syntax checking.
|
||||
Flymake collects diagnostic information from multiple sources,
|
||||
|
|
|
@ -1138,9 +1138,7 @@ Changed values are highlighted with the face `font-lock-warning-face'."
|
|||
:version "22.2")
|
||||
|
||||
(define-minor-mode gdb-speedbar-auto-raise
|
||||
"Minor mode to automatically raise the speedbar for watch expressions.
|
||||
With prefix argument ARG, automatically raise speedbar if ARG is
|
||||
positive, otherwise don't automatically raise it."
|
||||
"Minor mode to automatically raise the speedbar for watch expressions."
|
||||
:global t
|
||||
:group 'gdb
|
||||
:version "22.1")
|
||||
|
|
|
@ -312,10 +312,9 @@ recognized according to the current value of the variable `glasses-separator'."
|
|||
;;;###autoload
|
||||
(define-minor-mode glasses-mode
|
||||
"Minor mode for making identifiers likeThis readable.
|
||||
With a prefix argument ARG, enable the mode if ARG is positive,
|
||||
and disable it otherwise. If called from Lisp, enable the mode
|
||||
if ARG is omitted or nil. When this mode is active, it tries to
|
||||
add virtual separators (like underscores) at places they belong to."
|
||||
|
||||
When this mode is active, it tries to add virtual
|
||||
separators (like underscores) at places they belong to."
|
||||
:group 'glasses :lighter " o^o"
|
||||
(save-excursion
|
||||
(save-restriction
|
||||
|
|
|
@ -3363,10 +3363,7 @@ Treats actions as defuns."
|
|||
|
||||
;;;###autoload
|
||||
(define-minor-mode gud-tooltip-mode
|
||||
"Toggle the display of GUD tooltips.
|
||||
With a prefix argument ARG, enable the feature if ARG is
|
||||
positive, and disable it otherwise. If called from Lisp, enable
|
||||
it if ARG is omitted or nil."
|
||||
"Toggle the display of GUD tooltips."
|
||||
:global t
|
||||
:group 'gud
|
||||
:group 'tooltip
|
||||
|
|
|
@ -263,9 +263,6 @@ This backup prevents any accidental clearance of `hide-fidef-env' by
|
|||
;;;###autoload
|
||||
(define-minor-mode hide-ifdef-mode
|
||||
"Toggle features to hide/show #ifdef blocks (Hide-Ifdef mode).
|
||||
With a prefix argument ARG, enable Hide-Ifdef mode if ARG is
|
||||
positive, and disable it otherwise. If called from Lisp, enable
|
||||
the mode if ARG is omitted or nil.
|
||||
|
||||
Hide-Ifdef mode is a buffer-local minor mode for use with C and
|
||||
C-like major modes. When enabled, code within #ifdef constructs
|
||||
|
|
|
@ -932,9 +932,6 @@ This can be useful if you have huge RCS logs in those comments."
|
|||
;;;###autoload
|
||||
(define-minor-mode hs-minor-mode
|
||||
"Minor mode to selectively hide/show code and comment blocks.
|
||||
With a prefix argument ARG, enable the mode if ARG is positive,
|
||||
and disable it otherwise. If called from Lisp, enable the mode
|
||||
if ARG is omitted or nil.
|
||||
|
||||
When hideshow minor mode is on, the menu bar is augmented with hideshow
|
||||
commands and the hideshow commands are enabled.
|
||||
|
|
|
@ -4251,9 +4251,6 @@ Otherwise, just expand the file name."
|
|||
|
||||
(define-minor-mode idlwave-shell-electric-debug-mode
|
||||
"Toggle Idlwave Shell Electric Debug mode.
|
||||
With a prefix argument ARG, enable the mode if ARG is positive,
|
||||
and disable it otherwise. If called from Lisp, enable the mode
|
||||
if ARG is omitted or nil.
|
||||
|
||||
When Idlwave Shell Electric Debug mode is enabled, the Idlwave
|
||||
Shell debugging commands are available as single key sequences."
|
||||
|
|
|
@ -1405,9 +1405,6 @@ The default is a name found in the buffer around point."
|
|||
|
||||
(define-minor-mode pascal-outline-mode
|
||||
"Outline-line minor mode for Pascal mode.
|
||||
With a prefix argument ARG, enable the mode if ARG is positive,
|
||||
and disable it otherwise. If called from Lisp, enable the mode
|
||||
if ARG is omitted or nil.
|
||||
|
||||
When enabled, portions of the text being edited may be made
|
||||
invisible.\\<pascal-outline-map>
|
||||
|
|
|
@ -196,9 +196,6 @@ on the symbol."
|
|||
;;;###autoload
|
||||
(define-minor-mode prettify-symbols-mode
|
||||
"Toggle Prettify Symbols mode.
|
||||
With a prefix argument ARG, enable Prettify Symbols mode if ARG is
|
||||
positive, and disable it otherwise. If called from Lisp, enable
|
||||
the mode if ARG is omitted or nil.
|
||||
|
||||
When Prettify Symbols mode and font-locking are enabled, symbols are
|
||||
prettified (displayed as composed characters) according to the rules
|
||||
|
|
|
@ -93,9 +93,6 @@
|
|||
;;;###autoload
|
||||
(define-minor-mode subword-mode
|
||||
"Toggle subword movement and editing (Subword mode).
|
||||
With a prefix argument ARG, enable Subword mode if ARG is
|
||||
positive, and disable it otherwise. If called from Lisp, enable
|
||||
the mode if ARG is omitted or nil.
|
||||
|
||||
Subword mode is a buffer-local minor mode. Enabling it changes
|
||||
the definition of a word so that word-based commands stop inside
|
||||
|
@ -269,9 +266,6 @@ Optional argument ARG is the same as for `capitalize-word'."
|
|||
;;;###autoload
|
||||
(define-minor-mode superword-mode
|
||||
"Toggle superword movement and editing (Superword mode).
|
||||
With a prefix argument ARG, enable Superword mode if ARG is
|
||||
positive, and disable it otherwise. If called from Lisp, enable
|
||||
the mode if ARG is omitted or nil.
|
||||
|
||||
Superword mode is a buffer-local minor mode. Enabling it changes
|
||||
the definition of words such that symbols characters are treated
|
||||
|
|
|
@ -8707,17 +8707,11 @@ project is defined."
|
|||
;; Enabling/disabling
|
||||
|
||||
(define-minor-mode vhdl-electric-mode
|
||||
"Toggle VHDL electric mode.
|
||||
With a prefix argument ARG, enable the mode if ARG is positive,
|
||||
and disable it otherwise. If called from Lisp, enable it if ARG
|
||||
is omitted or nil."
|
||||
"Toggle VHDL electric mode."
|
||||
:global t :group 'vhdl-mode)
|
||||
|
||||
(define-minor-mode vhdl-stutter-mode
|
||||
"Toggle VHDL stuttering mode.
|
||||
With a prefix argument ARG, enable the mode if ARG is positive,
|
||||
and disable it otherwise. If called from Lisp, enable it if ARG
|
||||
is omitted or nil."
|
||||
"Toggle VHDL stuttering mode."
|
||||
:global t :group 'vhdl-mode)
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
|
|
@ -247,9 +247,6 @@ It creates the Imenu index for the buffer, if necessary."
|
|||
;;;###autoload
|
||||
(define-minor-mode which-function-mode
|
||||
"Toggle mode line display of current function (Which Function mode).
|
||||
With a prefix argument ARG, enable Which Function mode if ARG is
|
||||
positive, and disable it otherwise. If called from Lisp, enable
|
||||
the mode if ARG is omitted or nil.
|
||||
|
||||
Which Function mode is a global minor mode. When enabled, the
|
||||
current function name is continuously displayed in the mode line,
|
||||
|
|
|
@ -1342,9 +1342,6 @@ That is, remove duplicates, non-kept, and excluded files."
|
|||
;;;###autoload
|
||||
(define-minor-mode recentf-mode
|
||||
"Toggle \"Open Recent\" menu (Recentf mode).
|
||||
With a prefix argument ARG, enable Recentf mode if ARG is
|
||||
positive, and disable it otherwise. If called from Lisp, enable
|
||||
Recentf mode if ARG is omitted or nil.
|
||||
|
||||
When Recentf mode is enabled, a \"Open Recent\" submenu is
|
||||
displayed in the \"File\" menu, containing a list of files that
|
||||
|
|
|
@ -604,6 +604,7 @@ with a prefix argument, prompt for START-AT and FORMAT."
|
|||
;;;###autoload
|
||||
(define-minor-mode rectangle-mark-mode
|
||||
"Toggle the region as rectangular.
|
||||
|
||||
Activates the region if needed. Only lasts until the region is deactivated."
|
||||
nil nil nil
|
||||
(rectangle--reset-crutches)
|
||||
|
|
|
@ -191,9 +191,6 @@ Each element has the form (WINDOW . OVERLAY).")
|
|||
;;;###autoload
|
||||
(define-minor-mode reveal-mode
|
||||
"Toggle uncloaking of invisible text near point (Reveal mode).
|
||||
With a prefix argument ARG, enable Reveal mode if ARG is
|
||||
positive, and disable it otherwise. If called from Lisp, enable
|
||||
Reveal mode if ARG is omitted or nil.
|
||||
|
||||
Reveal mode is a buffer-local minor mode. When enabled, it
|
||||
reveals invisible text around point."
|
||||
|
@ -210,11 +207,7 @@ reveals invisible text around point."
|
|||
;;;###autoload
|
||||
(define-minor-mode global-reveal-mode
|
||||
"Toggle Reveal mode in all buffers (Global Reveal mode).
|
||||
Reveal mode renders invisible text around point visible again.
|
||||
|
||||
With a prefix argument ARG, enable Global Reveal mode if ARG is
|
||||
positive, and disable it otherwise. If called from Lisp, enable
|
||||
the mode if ARG is omitted or nil."
|
||||
Reveal mode renders invisible text around point visible again."
|
||||
:global t :group 'reveal
|
||||
(setq-default reveal-mode global-reveal-mode)
|
||||
(if global-reveal-mode
|
||||
|
|
|
@ -209,9 +209,6 @@ been set up by `rfn-eshadow-setup-minibuffer'."
|
|||
|
||||
(define-minor-mode file-name-shadow-mode
|
||||
"Toggle file-name shadowing in minibuffers (File-Name Shadow mode).
|
||||
With a prefix argument ARG, enable File-Name Shadow mode if ARG
|
||||
is positive, and disable it otherwise. If called from Lisp,
|
||||
enable the mode if ARG is omitted or nil.
|
||||
|
||||
File-Name Shadow mode is a global minor mode. When enabled, any
|
||||
part of a filename being read in the minibuffer that would be
|
||||
|
|
|
@ -591,10 +591,7 @@ format first."
|
|||
|
||||
;;;###autoload
|
||||
(define-minor-mode ruler-mode
|
||||
"Toggle display of ruler in header line (Ruler mode).
|
||||
With a prefix argument ARG, enable Ruler mode if ARG is positive,
|
||||
and disable it otherwise. If called from Lisp, enable the mode
|
||||
if ARG is omitted or nil."
|
||||
"Toggle display of ruler in header line (Ruler mode)."
|
||||
nil nil
|
||||
ruler-mode-map
|
||||
:group 'ruler-mode
|
||||
|
|
|
@ -171,9 +171,6 @@ minibuffer history.")
|
|||
;;;###autoload
|
||||
(define-minor-mode savehist-mode
|
||||
"Toggle saving of minibuffer history (Savehist mode).
|
||||
With a prefix argument ARG, enable Savehist mode if ARG is
|
||||
positive, and disable it otherwise. If called from Lisp, enable
|
||||
the mode if ARG is omitted or nil.
|
||||
|
||||
When Savehist mode is enabled, minibuffer history is saved
|
||||
periodically and when exiting Emacs. When Savehist mode is
|
||||
|
|
|
@ -160,9 +160,6 @@ If this mode is enabled, point is recorded when you kill the buffer
|
|||
or exit Emacs. Visiting this file again will go to that position,
|
||||
even in a later Emacs session.
|
||||
|
||||
If called with a prefix arg, the mode is enabled if and only if
|
||||
the argument is positive.
|
||||
|
||||
To save places automatically in all files, put this in your init
|
||||
file:
|
||||
|
||||
|
|
|
@ -102,9 +102,6 @@
|
|||
;;;###autoload
|
||||
(define-minor-mode scroll-all-mode
|
||||
"Toggle shared scrolling in same-frame windows (Scroll-All mode).
|
||||
With a prefix argument ARG, enable Scroll-All mode if ARG is
|
||||
positive, and disable it otherwise. If called from Lisp, enable
|
||||
the mode if ARG is omitted or nil.
|
||||
|
||||
When Scroll-All mode is enabled, scrolling commands invoked in
|
||||
one window apply to all visible windows in the same frame."
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue