| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
to the name since they're added by mode-line-format already.
(define-minor-mode): Run (,mode -1) when needed.
|
|
|
|
| |
Don't call the function during init if mode is on by default.
|
| |
|
|
|
|
|
|
| |
(define-minor-mode): Get rid of this silly `togglep'.
Add an explicit `toggle' argument (used for interactive calls).
Emit a warning when a nil argument turns the mode off.
|
|
|
|
| |
the functions whose names are constructed.
|
| |
|
|
|
|
| |
so that repeating the command toggles again.
|
|
|
|
| |
mode-line-minor-mode-keymap for the minor mode name.
|
| |
|
| |
|
|
|
|
|
| |
to delay the call to <mode> for global minor modes.
(easy-mmode-define-navigation): Only recenter if interactive.
|
| |
|
| |
|
| |
|
|
|
|
| |
Add keyword arg :name.
|
|
|
|
| |
Allow `next' to jump to after the end of the last match.
|
| |
|
|
|
|
|
|
|
| |
Correctly handle the case where several :group args are supplied.
Allow :extra-args.
(easy-mmode-define-global-mode): Allow :extra-args.
Correctly handle the case where several :group args are supplied.
|
|
|
|
|
|
|
|
|
| |
Revert the latest changes.
Allow the three positional arguments to be skipped and replaced
by keyword arguments.
Add a :toggle argument to determine whether a nil arg means toggle
or means turn-on. The default is unchanged.
Add a call to force-mode-line-update.
|
| |
|
|
|
|
|
|
|
| |
functions unless the mode is global. If :global is followed by a
non-nil but non-t value, make the mode buffer-local, but also generate a
`global-MODE' version using `easy-mmode-define-global-mode'. Add
:conditional-turn-on keyword argument.
|
| |
|
| |
|
|
|
|
| |
Call `recenter' with an arg to prevent redrawing the display.
|
| |
|
|
|
|
| |
(easy-mmode-defmap): Remove the now useless autoload.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Use byte-compile-current-file and load-file-name to infer the
proper :require to pass to defcustom.
Wrap the hook var into `progn' so as not to autoload it.
Add a :autoload-end cookie.
Be more careful about the evaluation of KEYMAP.
(easy-mmode-define-global-mode): Add a :autoload-end cookie.
(define-derived-mode): Move define-abbrev-table outside of defvar.
|
|
|
|
|
| |
Use find-file-hooks in the minor-mode function.
Be careful not to loop indefinitely in the post-command-hook function.
|
|
|
|
|
|
| |
(easy-mmode-define-global-mode): New macro.
(define-minor-mode): Fix the handling of `group'.
(easy-mmode-define-keymap): Use case.
|
|
|
|
|
|
|
|
|
| |
(easy-mmode-pretty-mode-name): Rename from easy-mmode-derive-name
and improve to use the lighter to guess the capitalization.
(define-minor-mode): Inline code from easy-mmode-define-toggle.
Add keyword arguments to specify global-ness or the custom group.
Add local-map and help-echo properties to the lighter.
(easy-mmode-define-navigation): Add the errors to debug-ignored-errors.
|
|
|
|
|
|
|
|
| |
(easy-mmode-define-toggle, define-minor-mode): Use it.
(easy-mmode-define-keymap): Docstring fix.
(define-derived-mode): Default PARENT to fundamental-mode.
Add the derived-mode-parent symbol-property.
(easy-mmode-derived-mode-p): New function.
|
|
|
|
|
|
|
|
|
|
|
| |
(easy-mmode-define-toggle): Deprecate the use of *-(on|off)-hook.
Print a status message if the toggle is called interactively.
(define-minor-mode): Allow INIT-VALUE to be (global . INIT-VALUE)
for global minor modes and use `defcustom' for them.
Use add-minor-mode.
(easy-mmode-define-derived-mode): Remove.
(define-derived-mode): Fancier default docstring.
(easy-mmode-define-navigation): Signal an error rather than (ding).
|
|
|
|
| |
else, use `error' (to enable the caller to react to the problem).
|
|
|
|
|
|
|
|
| |
Prefer the macro-only version provided by easy-mmode.el.
* emacs-lisp/easy-mmode.el (define-derived-mode): New name for
`easy-mmode-define-derived-mode'.
Use `combine-run-hooks'.
(easy-mmode-define-navigation): New macro.
|
|
|
|
|
| |
(easy-mmode-define-syntax): Fix CL typo.
(easy-mmode-define-derived-mode): Improve the docstring generation.
|
|
|
|
|
|
| |
(easy-mmode-set-keymap-parents, easy-mmode-define-syntax): New functions.
(easy-mmode-defmap, easy-mmode-defsyntax, easy-mmode-define-derived-mode):
New macros.
|
|
|
|
|
|
|
|
| |
(easy-mmode-define-toggle): New BODY arg; Never append `-mode';
Use defcustom for the hooks; Improve the auto-generated docstrings.
(easy-mmode-define-minor-mode): Renamed `define-minor-mode'.
(define-minor-mode): Add BODY arg; Only declare the keymap if
provided; Improve the auto-generated docstrings.
|
|
|
|
|
| |
On repeated call, override previous values put into
minor-mode-map-alist and minor-mode-alist.
|
| |
|
| |
|
|
|
|
|
| |
the doc strings used for the mode flag variable and the keymap.
Delete duplicate &optional's.
|
|
|