【发布时间】:2014-06-12 01:22:45
【问题描述】:
我想创建一个宏来改变这个:
(set-face-attribute 'term-color-blue nil :foreground "#5555FF")
进入
(term-color blue "#5555FF")
我试过这个:
(defmacro term-color (name color)
`(set-face-attribute ',(intern (concat "term-color-" (symbol-name name)))
:foreground ,color))
但出现错误wrong-type-argument symbolp "#5555FF",我的宏有什么问题?
宏展开返回:
(set-face-attribute (quote term-color-blue) :foreground "#5555FF")
【问题讨论】: