mirror of https://gitlab.com/QEF/q-e.git
implementing the ido-completion-read using the elisp snippet provided by Hongyi Zhao
This commit is contained in:
parent
2812015d20
commit
01c3af05c3
|
@ -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))
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -31,6 +31,7 @@ $header
|
|||
|
||||
;;; Code:
|
||||
|
||||
(require 'ido)
|
||||
|
||||
$utility_functions
|
||||
|
||||
|
|
Loading…
Reference in New Issue