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:
@@ -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)))
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user