4.5.1 Creating and Editing Priors

Creating priors follows a similar patter to creating candidate generators and mappings. You can create a prior by pressing P (p-search-add-prior). Like the creation process for the other entities, you will go through two steps: selecting and configuring.

P (p-search-add-prior)

Initiate the process of adding a prior. You will first be shown a list of the priors you can add via a transient menu. After selecting the prior you want to add, you will then be prompted to configure it. Press c to finalize the creation process.

As with the other entities, you can edit a prior with e (p-search-edit-dwim) and kill a prior via k (p-search-kill-entity-at-point).

Priors can either calculate the scores with Elisp or by an external process. Depending on how many candidates exist, the time to compute the scores can vary greatly. When a prior’s scoring mechanism completes, the buffer will re-display with the newly calculated scores.