Questions tagged [setq-default]

2 questions
2
votes
1 answer

Cannot get a symbol's value for the first time when using `setq-default`

I can use setq-default to set a symbol's default value, as follows: (with-temp-buffer (make-local-variable 'bar) (setq-default bar "xyz") (symbol-value 'bar)) When I first executed the above code, I got an error: Symbol’s value as variable…
Searene
  • 479
  • 2
  • 14
0
votes
1 answer

vc-mode doesn't evaluate when mode-line-format is set with setq-default

I've this code in my init.el (setq-default mode-line-format (list (propertize " %b " 'face 'bufname) (propertize (concat " " vc-mode " ") 'face 'gitmode))) This evaluates vc-mode to…
natto
  • 3
  • 3