browse-url-generic-program作为safe-local-variable-values

时间:2017-08-27 18:02:15

标签: google-chrome firefox browser emacs

我已经为我的所有不同项目(个人/工作/社区/等)使用了很多.dir-locals.el文件,并根据项目定义了几个设置。

今天,我尝试更改browse-url-generic-program的价值,因为我的工作需要谷歌浏览器,个人项目需要Firefox。所以,我将此添加到我的.dir-locals.el

((nil
  . (
     ;; use Firefox as browser for this project
     (browse-url-generic-program . "firefox")
     )))

并且我在.emacs中也有这个,因为文档说它是风险变量

(custom-set-variables
 '(safe-local-variable-values
   (quote
    ((browse-url-generic-program "firefox")
     (browse-url-generic-program "google-chrome")))))

我可以在这个变量的描述/文档中看到这条消息:

browse-url-generic-program’s value is "google-chrome"
Original value was nil

  This variable may be risky if used as a file-local variable.
  However, you have added it to ‘safe-local-variable-values’.

但是Emacs仍然不断向我询问The local variables list in /home/humitos/ contains variables that are risky (**). Do you want to apply it?,并且唯一提到的变量browse-url-generic-program的值为"firefox"

我做错了什么?

0 个答案:

没有答案