Emacs: cursory version 0.3.0
Cursory provides a thin wrapper around built-in variables that affect the style of the Emacs cursor. The intent is to allow the user to define preset configurations such as “block with slow blinking” or “bar with fast blinking” and set them on demand.
- Package name (GNU ELPA):
cursory - Official manual: https://protesilaos.com/emacs/cursory
- Change log: https://protesilaos.com/emacs/cursory-changelog
- Git repo on SourceHut: https://git.sr.ht/~protesilaos/cursory
- Mirrors:
- Mailing list: https://lists.sr.ht/~protesilaos/cursory
Below are the release notes.
-
Implemented a mechanism to read fallback values for the presets specified in the user option
cursory-presets. In practical terms, there can now be atpreset which holds the default values. Any other named preset overrides thet, so it only needs to specify the properties that differ from the defaults. Sample using the original value:(setq cursory-presets '((box :blink-cursor-interval 0.8) (box-no-blink :blink-cursor-mode -1) (bar :cursor-type (bar . 2) :blink-cursor-interval 0.5) (underscore :cursor-type (hbar . 3) :blink-cursor-blinks 50) (t ; the default values :cursor-type box :cursor-in-non-selected-windows hollow :blink-cursor-mode 1 :blink-cursor-blinks 10 :blink-cursor-interval 0.2 :blink-cursor-delay 0.2))) -
Expanded the available properties of the user option
cursory-presetsto accept a value for the:blink-cursor-modekey (as seen in the above code block). It is either1or-1and is passed to the functionblink-cursor-mode. The former value enables the mode, the latter disables it. This letscursory-presetsset theblink-cursor-modeper stylistic variant. -
Refined the default value of the minibuffer prompt that is used by the command
cursory-set-preset. The default value now is the previous element in the history, if it exists. This makes it easier to toggle between the last two choices (select the default value simply by pressingRETwithout any further input). -
Specified a
:package-versionfor all user options. The user is informed in relevant Help buffers about the last version that introduced or iterated on the variable. -
The
cursorygroup now references the Info manual that ships with the GNU ELPA package. A link is shown in Custom UI buffers.