[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Setting numecir values according to symbol
From: |
Emanuel Berg |
Subject: |
Re: Setting numecir values according to symbol |
Date: |
Sun, 30 Oct 2022 14:01:51 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Stefan Monnier via Users list for the GNU Emacs text editor wrote:
>> (defvar mbcomplt 0)
>>
>> (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)))
>
> Without giving more info about how you're using those two
> vars, it's hard to tell, but my crystal ball tells that
> you're probably better off getting rid of `mbcomplt` and
> using `armg` instead.
Because one variable shouldn't be functionally dependent on
another ...
--
underground experts united
https://dataswamp.org/~incal