[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Using variables to set defaults to parameters
From: |
goncholden |
Subject: |
Using variables to set defaults to parameters |
Date: |
Thu, 03 Feb 2022 14:55:57 +0000 |
I am currently defining a minor-mode with default parameters, but want to pass
defaulted variables
instead. What is the way to do this, using setq ?
(define-minor-mode rich-minor-mode
"Brief description" nil "" nil
then changed to
(setq initval nil)
(setq mdline-indic "")
(setq other nil)
(define-minor-mode rich-minor-mode
"Brief description" initval mdline-indic other
- Using variables to set defaults to parameters,
goncholden <=