help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Setting numeric value according to symbol with cl-case


From: Heime
Subject: Setting numeric value according to symbol with cl-case
Date: Sun, 30 Oct 2022 10:21:47 +0000

Is this a good way to set a numeric value to a variable depending
on a whether another variable was set to a particular symbol.  Have
been scrutinising the possibility of setting a value to the symbol
itself, but do not know how.

  (setq mbcomplt
            (cl-case armg
              ('auto 0)
              ('icomplt-horz 1)
              ('icomplt-vert 2)
              ('ivy 3)
              ('vertico 4)
              ('helm 5)))





reply via email to

[Prev in Thread] Current Thread [Next in Thread]