I have the following condition to set mbcomplt
according to the symbol stored in armg
. Is there a more convenient way (e.g a shorter way of setting mbcomplt
) to set the numeric value for mbcomplt
associated with symbol.
(defvar armgv 0)
(defvar cia '(norm norm))
(defun mbcomplt-authentis (cookie)
"DOC."
(let ( (armg (car cookie))
(seqr (car (cdr cookie))) )
(cond
((eq armg 'auto)
(setq mbcomplt 0))
((eq armg 'icomplt-horz)
(setq mbcomplt 1))
((eq armg 'icomplt-vert)
(setq mbcomplt 2))
((eq armg 'ivy)
(setq mbcomplt 3))
((eq armg 'vertico)
(setq mbcomplt 4))
((eq armg 'helm)
(setq mbcomplt 5)))))