implementing the ido-completion-read using the elisp snippet provided by Hongyi Zhao

This commit is contained in:
Tone Kokalj 2021-12-18 19:57:10 +01:00
parent 2812015d20
commit 01c3af05c3
3 changed files with 9 additions and 7 deletions

View File

@ -1,6 +1,5 @@
(defun $module-$card_uc ()
(interactive)
(let ((flag (read-string "Flags: $card_flags ")))
(insert "$card " flag))
(newline 1)
)
(let ((flag '($card_flags_elist)))
(insert "$card " (ido-completing-read "Select the flag: " flag)))
(newline 1))

View File

@ -18,9 +18,11 @@
;; (https://www.emacswiki.org/emacs/DerivedMode,
;; https://www.emacswiki.org/emacs/SampleMode) as well as the very
;; useful resources of Xah Lee
;; (http://ergoemacs.org/emacs/elisp_syntax_coloring.html). Last but
;; not the least Sebastijan Peljhan is acknowledged for his work on
;; `xsf-mode' that inspired the idea of writing the qe-modes.
;; (http://ergoemacs.org/emacs/elisp_syntax_coloring.html). Sebastijan
;; Peljhan is acknowledged for his work on `xsf-mode' that inspired
;; the idea of writing the qe-modes. Last but not the least,
;; Hongyi Zhao contributed the ido-completion-read snippet of
;; code for selecting the values for the card's flags.
;; This file is not part of GNU Emacs.

View File

@ -31,6 +31,7 @@ $header
;;; Code:
(require 'ido)
$utility_functions