我已经编写了我自己的用于显示树的小语言 - 它只是 tkiz-qtree
的一些字符串替换。我可以以某种方式禁用该语言的安全问题吗?我正在养成在导出时按 y
6 次的习惯。
最佳答案
如 org manual 中所写:
User Option: org-confirm-babel-evaluate
When t (the default), the user is asked before every code block evaluation. When nil, the user is not asked. When set to a function, it is called with two arguments (language and body of the code block) and should return t to ask and nil not to ask.
因此,如果您信任您的源代码块,只需将此变量设置为 nil
。
您可以针对您的语言禁用消息:
(defun my-org-confirm-babel-evaluate (lang body)
(not (string= lang "tkiz"))) ; don't ask for tkiz
(setq org-confirm-babel-evaluate 'my-org-confirm-babel-evaluate)
关于emacs - 我可以在 org-mode src block 中禁用某些语言的安全确认吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12842970/