Testing completion-read.

This commit is contained in:
Derek Taylor
2024-04-12 00:26:37 -05:00
parent aeaa014498
commit e2ea74fbde
2 changed files with 22 additions and 0 deletions

View File

@@ -700,3 +700,12 @@
which-key-max-description-length 25
which-key-allow-imprecise-window-fit nil
which-key-separator "" ))
(defun reader ()
(interactive)
(let ((choices '(("First" . 'first-choice)
("Second" . 'second-choice)
("Third" . 'third-choice))))
(alist-get
(completing-read "Choose: " choices)
choices nil nil 'equal)))

View File

@@ -55,6 +55,7 @@
- [[#tldr][TLDR]]
- [[#transparency][TRANSPARENCY]]
- [[#which-key][WHICH-KEY]]
- [[#test][TEST]]
* IMPORTANT PROGRAMS TO LOAD FIRST
To keep this =config.org= a reasonable length, I have moved a lot of code to individual scripts that will be sourced by this config. These scripts are found in "~/.config/emacs/scripts" and do not contain any code that most people are likely to need to edit.
@@ -1026,3 +1027,15 @@ With Emacs version 29, true transparency has been added. I have turned transpar
which-key-separator "" ))
#+end_src
* TEST
#+begin_src emacs-lisp
(defun reader ()
(interactive)
(let ((choices '(("First" . 'first-choice)
("Second" . 'second-choice)
("Third" . 'third-choice))))
(alist-get
(completing-read "Choose: " choices)
choices nil nil 'equal)))
#+end_src