这是Emacs Lisp的后续问题:在alist中评估变量 ..我试图default-frame-alist
在我的.emacs
文件中设置.考虑一下,例如
(setq default-frame-alist
'((auto-lower . nil)
(auto-raise . nil)
(height . 41)
(width . 80)
(top . 1)
(left . 1)))
Run Code Online (Sandbox Code Playgroud)
(我省略了一些值)这个工作正常..假设现在我想height
根据另一个变量设置..我,我在变量中存储了整数值50 my-height
..如何设置height
为my-height
?的值?我试过了
(height . my-height)
但是都不起作用..我在这里想念的是什么?
你需要反驳整个表格:
(setq default-frame-alist
`((auto-lower . nil)
(auto-raise . nil)
(height . ,my-height)
(width . 80)
(top . 1)
(left . 1)))
Run Code Online (Sandbox Code Playgroud)