多个 Emacs/Auctex + Okular 实例

多个 Emacs/Auctex + Okular 实例

在 Ubuntu 中使用 Emacs/Auctex 时,我切换到 Okular,因为它的夜间模式对比度比简单地反转颜色要低。我在文件中添加了以下几.emacs这个建议

(custom-set-variables
  ;; custom-set-variables was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.
  '(TeX-source-correlate-method (quote synctex))
  '(TeX-source-correlate-mode t)
  '(TeX-source-correlate-start-server t)
  '(TeX-view-program-selection (quote (((output-dvi has-no-display-manager) "dvi2tty") ((output-dvi style-pstricks) "dvips and gv") (output-pdf "Okular") (output-dvi "xdvi") (output-pdf "Evince") (output-html "xdg-open"))))
  '(delete-selection-mode nil)
  '(mark-even-if-inactive t)
  '(scroll-bar-mode (quote right))
  '(transient-mark-mode 1))
 (custom-set-faces
  ;; custom-set-faces was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.
  )

但是,现在我无法跨多个工作区处理多个项目:

如果我A.pdf在工作区 A 中打开,然后要求 emacs 在工作区 B 中打开B.pdf,我的系统会跳回工作区 A,关闭A.pdf,并B.pdf在现有窗口中打开,而不是B.pdf在工作区 B 的新窗口中打开。

有没有什么办法可以修正这种行为?我不介意为此放弃向前和向后搜索。

我的问题与以下先前的问题相关:链接1链接2链接 3

编辑:我可以通过手动打开 pdf 并且从不从 emacs 调用 view 命令来解决我的问题。从这个意义上说,这个问题并不严重,但如果能有一个适当的修复方法就更好了。

相关内容