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

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

[elpa] externals/tmr b01685626e 4/6: Document minibuffer histories; add


From: ELPA Syncer
Subject: [elpa] externals/tmr b01685626e 4/6: Document minibuffer histories; add savehist sample
Date: Thu, 7 Jul 2022 12:58:00 -0400 (EDT)

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

    Document minibuffer histories; add savehist sample
---
 README.org | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/README.org b/README.org
index 9d1f0a642f..e7f34bf2a2 100644
--- a/README.org
+++ b/README.org
@@ -261,6 +261,25 @@ Desktop notifications work only if Emacs is built with DBus
 functionality.  This is the norm.  If such functionality is not
 available, TMR will issue warning informing the user accordingly.
 
+** Minibuffer histories
+:PROPERTIES:
+:CUSTOM_ID: h:fbedb656-2402-46bc-9763-d5112700c954
+:END:
+
+TMR defines two variables that store user input: ~tmr-duration-history~
+and ~tmr-description-history~.  Minibuffer histories can persist between
+sessions if the user enables the built-in =savehist= library.  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
+
 * Installation
 :PROPERTIES:
 :CUSTOM_ID: h:46378bdf-f6cc-469e-b0b0-1b90dd9aa595



reply via email to

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