aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Riehs <tristan.riehs@bordeaux-inp.fr>2024-03-19 13:18:39 +0100
committerTristan Riehs <tristan.riehs@bordeaux-inp.fr>2024-03-19 13:18:39 +0100
commit43d727e71ad6839b70f22e7ea11a0637f39eebad (patch)
tree7c9aab52cd7dc8a44a11cb3823b41dfd4f6933b0
parent60eb1227f5ca967107f6e40859f6892483660681 (diff)
Add history to edit-config
-rw-r--r--edit-config.el7
1 files changed, 6 insertions, 1 deletions
diff --git a/edit-config.el b/edit-config.el
index 2dddb3d..7f54d99 100644
--- a/edit-config.el
+++ b/edit-config.el
@@ -58,6 +58,9 @@ Used when prompting only when `edit-config-missing' is non-nil. See
`edit-config-files' for the structure of CONFIG."
(file-exists-p (cdr config)))
+(defvar edit-config--hist nil
+ "History for `edit-config'.")
+
;;;###autoload
(defun edit-config (label)
"Edit the config file associated to LABEL."
@@ -68,7 +71,9 @@ Used when prompting only when `edit-config-missing' is non-nil. See
(if edit-config-missing
'edit-config--completing-read-predicate
nil)
- t)
+ t
+ nil
+ 'edit-config--hist)
nil)))
(if label
(find-file (alist-get label edit-config-files nil nil 'string-equal))