emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/denote f55dee06b1 143/355: Add documentation about our


From: ELPA Syncer
Subject: [elpa] externals/denote f55dee06b1 143/355: Add documentation about our minibuffer histories
Date: Sun, 26 Jun 2022 23:58:15 -0400 (EDT)

branch: externals/denote
commit f55dee06b1150ea1bac7205dca02bf2be140f1b5
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>

    Add documentation about our minibuffer histories
---
 README.org | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/README.org b/README.org
index b79f88018a..f8459e43fe 100644
--- a/README.org
+++ b/README.org
@@ -612,6 +612,29 @@ scenaria where, say, one wants to organise their 
collection of PDFs and
 multimedia in a systematic way (and, perhaps, use them as attachments
 for the notes Denote produces).
 
+* Minibuffer histories
+:PROPERTIES:
+:CUSTOM_ID: h:82dc1203-d689-44b2-9a6c-b37776209651
+:END:
+
+Denote has a dedicated minibuffer history for each one of its prompts.
+This practically means that using =M-p= (~previous-history-element~) and
+=M-n= (~next-history-element~) will only cycle through the relevant
+record of inputs, such as your latest titles in the =TITLE= prompt, and
+keywords in the =KEYWORDS= prompt.
+
+The built-in =savehist= library saves minibuffer histories.  Sample
+configuration:
+
+#+begin_src emacs-lisp
+(require 'savehist)
+(setq savehist-file (locate-user-emacs-file "savehist"))
+(setq history-length 10000)
+(setq history-delete-duplicates t)
+(setq savehist-save-minibuffer-history t)
+(add-hook 'after-init-hook #'savehist-mode)
+#+end_src
+
 * Notes in multiple file types
 :PROPERTIES:
 :CUSTOM_ID: h:f34b172b-3440-446c-aec1-bf818d0aabfe



reply via email to

[Prev in Thread] Current Thread [Next in Thread]