mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-04-21 18:40:26 +10:00
Testing completion-read.
This commit is contained in:
@@ -738,6 +738,8 @@
|
||||
(defun dt/key-value-completing (choice)
|
||||
(interactive
|
||||
(list
|
||||
(let ((completions '(("1" "One") ("2" "Two") ("3" "Three"))))
|
||||
(let ((completions '(("1" "One")
|
||||
("2" "Two")
|
||||
("3" "Three"))))
|
||||
(cadr (assoc (completing-read "Choose: " completions) completions)))))
|
||||
(message "You choose `%s'" choice))
|
||||
|
||||
@@ -1067,7 +1067,9 @@ With Emacs version 29, true transparency has been added. I have turned transpar
|
||||
(defun dt/key-value-completing (choice)
|
||||
(interactive
|
||||
(list
|
||||
(let ((completions '(("1" "One") ("2" "Two") ("3" "Three"))))
|
||||
(let ((completions '(("1" "One")
|
||||
("2" "Two")
|
||||
("3" "Three"))))
|
||||
(cadr (assoc (completing-read "Choose: " completions) completions)))))
|
||||
(message "You choose `%s'" choice))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user