Emacs 如何在终端中使用参数打开应用程序(由macports安装)
我的操作系统是Macosx 10.10 我在macports安装okular。 我可以使用Emacs 如何在终端中使用参数打开应用程序(由macports安装),emacs,terminal,macports,tex,Emacs,Terminal,Macports,Tex,我的操作系统是Macosx 10.10 我在macports安装okular。 我可以使用open-a-okular 但是,当我使用open-a okula--unique homography_20151023.pdf#src:88homography_20151023.tex时,什么都没发生,为什么 更新:2015-10-25 我发现okular位于“/Applications/MacPorts/KDE4/okular.app/Contents/MacOS/okular”中 那么。 我在zs
open-a-okular
但是,当我使用open-a okula--unique homography_20151023.pdf#src:88homography_20151023.tex
时,什么都没发生,为什么
更新:2015-10-25
我发现okular位于“/Applications/MacPorts/KDE4/okular.app/Contents/MacOS/okular”中
那么。
我在zsh中给okular加了别名<代码>别名okular=“/Applications/MacPorts/KDE4/okular.app/Contents/MacOS/okular”。
只需使用okula***.pdf
就可以了。但是仍然okular——独特的家庭作业\u 20151023.pdf#src:88homography\u 20151023.tex
在emacs中是无用的。您需要使用
open -a okular --args --unique Homework_20151023.pdf#src:88Homework_20151023.tex
否则,open
将解释(并忽略)参数,而不是传递给okular
另请参见打开的手册页:
man open
为什么会有一个Emacs标记?在Emacs中,我设置了
“Tex View Program List”
和open-a-okular-unique%o#src:%n%b
。但是在AUCTeX使用的路径中,您的macportsbin
目录是否可用?*Messages*
缓冲区中是否有任何错误消息?没有错误消息。我还将/opt/local/bin:/opt/local/sbin:$PATH“
添加到PATH中。但我发现okula位于“/Applications/MacPorts/KDE4/okular.app/Contents/MacOS/okular”中。然后,我在zsh中为okular添加了别名。别名okular=“/Applications/MacPorts/KDE4/okular.app/Contents/MacOS/okular”“
。只需使用okula***.pdf
就可以了。但是仍然okula——独特的家庭作业在emacs中是无用的。