如何控制emacs中的变量?

时间:2010-09-01 20:18:45

标签: emacs

组织模式手册第49页有以下注释。

"To limit tag inheritance to specific tags, or to turn it off entirely, use the variable org-use-tag-iheritance and org-tags-exclude-from-inheritance." 

似乎我应该将这些变量设置为emacs中的1或t。它是否正确?如果是这样,我该怎么做?

2 个答案:

答案 0 :(得分:5)

M-x set-variable RET var RET value(来自http://www.delorie.com/gnu/docs/emacs/emacs_478.html

答案 1 :(得分:2)

要永久配置这些内容,您可以在.emacs文件中使用(setq variable value)。或者,由于这些变量都是使用defcustom定义的,因此您还可以使用:

M-x customize-variable org-use-tag-iheritance
M-x customize-variable org-tags-exclude-from-inheritance

暂时或永久配置它们。