Correct example configuration for vertico-multiform

This commit is contained in:
contrapunctus 2022-01-24 19:59:33 +05:30
parent 5629b06f33
commit 406c23275c
2 changed files with 18 additions and 14 deletions

View File

@ -13,7 +13,7 @@
1. [chronometrist](#usage-chronometrist)
2. [chronometrist-report](#usage-chronometrist-report)
3. [chronometrist-statistics](#usage-chronometrist-statistics)
4. [chronometrist-details](#org19d44bb)
4. [chronometrist-details](#org690c2df)
5. [common commands](#usage-common-commands)
6. [Time goals/targets](#time-goals)
6. [How-to](#how-to)
@ -21,19 +21,19 @@
2. [How to load the program using literate-elisp](#how-to-literate-elisp)
3. [How to attach tags to time intervals](#how-to-tags)
4. [How to attach key-values to time intervals](#how-to-key-value-pairs)
5. [How to skip running hooks/attaching tags and key values](#org8a0d4c5)
5. [How to skip running hooks/attaching tags and key values](#org63b85c6)
6. [How to open certain files when you start a task](#how-to-open-files-on-task-start)
7. [How to warn yourself about uncommitted changes](#how-to-warn-uncommitted-changes)
8. [How to display the current time interval in the activity indicator](#how-to-activity-indicator)
9. [How to back up your Chronometrist data](#how-to-backup)
10. [How to configure Vertico for use with Chronometrist](#howto-vertico)
7. [Explanation](#orge41029f)
7. [Explanation](#org4f83f29)
1. [Literate Program](#explanation-literate-program)
8. [User's reference](#orgac468be)
8. [User's reference](#org07932c3)
9. [Contributions and contact](#contributions-contact)
10. [License](#license)
11. [Thanks](#thanks)
12. [Local variables](#org235758e):NOEXPORT:
12. [Local variables](#org6ca2f77):NOEXPORT:
<a href="https://liberapay.com/contrapunctus/donate"><img alt="Donate using Liberapay" src="https://img.shields.io/liberapay/receives/contrapunctus.svg?logo=liberapay"></a>
@ -159,7 +159,7 @@ Run `M-x chronometrist-statistics` (or `chronometrist` with a prefix argument of
Press `b` to look at past time ranges, and `f` for future ones.
<a id="org19d44bb"></a>
<a id="org690c2df"></a>
## chronometrist-details
@ -234,7 +234,7 @@ Evaluate or add to your init.el the following -
To exit the prompt, press the key it indicates for quitting - you can then edit the resulting key-values by hand if required. Press `C-c C-c` to accept the key-values, or `C-c C-k` to cancel.
<a id="org8a0d4c5"></a>
<a id="org63b85c6"></a>
## How to skip running hooks/attaching tags and key values
@ -324,16 +324,18 @@ You can either disable Vertico's sorting entirely -
(setq vertico-sort-function nil)
Or use `vertico-multiform` to disable sorting for only a specific command -
Or use `vertico-multiform` to disable sorting for only specific commands -
(use-package vertico-multiform
:init (vertico-multiform-mode)
:config
(setq vertico-multiform-commands
'((chronometrist-key-values-unified-prompt (vertico-sort-function . nil)))))
'((chronometrist-toggle-task (vertico-sort-function . nil))
(chronometrist-toggle-task-no-hooks (vertico-sort-function . nil))
(chronometrist-key-values-unified-prompt (vertico-sort-function . nil)))))
<a id="orge41029f"></a>
<a id="org4f83f29"></a>
# Explanation
@ -349,7 +351,7 @@ The Org file can also be loaded directly using the [literate-elisp](https://gith
`chronometrist.org` is also included in MELPA installs, although not used directly by default, since doing so would interfere with automatic generation of autoloads.
<a id="orgac468be"></a>
<a id="org07932c3"></a>
# User's reference
@ -422,7 +424,7 @@ blandest for helping me with the name
fiete and wu-lee for testing and bug reports
<a id="org235758e"></a>
<a id="org6ca2f77"></a>
# Local variables :NOEXPORT:

View File

@ -296,13 +296,15 @@ You can either disable Vertico's sorting entirely -
(setq vertico-sort-function nil)
#+END_SRC
Or use =vertico-multiform= to disable sorting for only a specific command -
Or use =vertico-multiform= to disable sorting for only specific commands -
#+BEGIN_SRC emacs-lisp
(use-package vertico-multiform
:init (vertico-multiform-mode)
:config
(setq vertico-multiform-commands
'((chronometrist-key-values-unified-prompt (vertico-sort-function . nil)))))
'((chronometrist-toggle-task (vertico-sort-function . nil))
(chronometrist-toggle-task-no-hooks (vertico-sort-function . nil))
(chronometrist-key-values-unified-prompt (vertico-sort-function . nil)))))
#+END_SRC
* Explanation