3 The Score File

The rules for scoring are written down in the score file, a plain-text file containing a single Lisp form. The location of the score file is defined in elfeed-score-serde-score-file.

User Option: elfeed-score-serde-score-file

The location at which scoring rules are maintained.

The default value is elfeed.score in user-emacs-directory, which see user-emacs-directory in Emacs Lisp.

We’ll go over the format in more detail below.

It is important to note that the score file is authored & maintained by the user: elfeed-score will only read from it, not write to it. Prior versions of elfeed-score kept assorted statistics about each rule (how many times it matched, for instance) in the rule structures themselves, and would periodically write them out to the score file. This led to situations where users would lose edits to their score file when elfeed-score blindly wrote out its in-memory state. Beginning with elfeed-score 0.7.10, those statistics are tracked & persisted separately, which will hopefully put an end to this problem.

That said, if you update your rules by hand, you need to tell elfeed-score to re-load it before (re-)scoring any elfeed entries. You can do this by invoking elfeed-score-load-score-file (= l):

Command: elfeed-score-load-score-file

Load the score file into the current session.