[英]Macos always change the command “TeX-view-program-list” into “”open %o" in emacs
In custom.el I set as follows. 在custom.el我设置如下。
'(TeX-source-correlate-method (quote synctex))
'(TeX-source-correlate-mode t)
'(TeX-source-correlate-start-server t)
'(TeX-view-program-list (quote (("Okular" "okular --unique %o#src:%n%b"))))
'(TeX-view-program-selection (quote ((output-pdf "Okular"))))
Also I aliased the okular in zsh. 我还在zsh中别名okular。
alias okular="/Applications/MacPorts/KDE4/okular.app/Contents/MacOS/okular"
But each time I want to view. 但是每次我要查看。 The command becomes "open ......"
该命令变为“打开...”
And I got to see the custom varible. 而且我看到了自定义变量。 It shows as follows
显示如下
How can I deal with it? 我该如何处理? Thank you very much.
非常感谢你。
Update:2015-10-31 I find reason, I use bbatsov/prelude configuration. 更新:2015-10-31我找到原因,我使用bbatsov / prelude配置。 In his module,prelude-latex.el, he define the default viewer, so that I can't change.
在他的模块prelude-latex.el中,他定义了默认查看器,因此我无法更改。 Now I comment it and everything's ok.
现在我发表评论,一切都很好。
Are you sure custom.el
is being loaded? 您确定要加载
custom.el
吗? Perhaps you set custom-file
, but forgot to load
it? 也许您设置了
custom-file
,却忘记了load
它?
Also, I don't think that aliasing it will work, because Emacs is looking for an executable, but aliases are specific to the shell. 另外,我不认为对它进行别名是可行的,因为Emacs正在寻找可执行文件,但是别名是特定于Shell的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.