macOS 10.14.1
emacs使用homebrew的emacs-plus安装,并启动服务
使用zsh,$PATH的修改是在 $HOME/.zshenv 中,如果不使用 speacmacs,不用修改path,因为texlive在 /etc/path.d 中有添加路径。
使用 Automator 做了emacs client 的app
/usr/local/bin/emacsclient -n -c -a "" -- "$@"
spacemacs使用的是develop分支,因为stable分支的latexmk
始终找不到,是看的spacemacs某个issue改的,改完后正常使用。
但是却发现 emacs client还是报错latexmk
找不到。
spacemacs 中自定义设置见下:
dotspacemacs-configuration-layers
'(
;; ----------------------------------------------------------------
;; Example of useful layers you may want to use right away.
;; Uncomment some layer names and press <SPC f e R> (Vim style) or
;; <M-m f e R> (Emacs style) to install them.
;; ----------------------------------------------------------------
helm
auto-completion
;; better-defaults
emacs-lisp
git
markdown
org
python
;; (shell :variables
;; shell-default-height 30
;; shell-default-position 'bottom)
(spell-checking :variables spell-checking-enable-auto-dictionary nil)
syntax-checking
;; version-control
(latex :variables latex-build-command "LatexMk")
)
(defun dotspacemacs/user-config ()
"Configuration function for user code.
This function is called at the very end of Spacemacs initialization after
layers configuration.
This is the place where most of your configurations should be done. Unless it is
explicitly specified that a variable should be set before a package is loaded,
you should place your code here."
(add-hook 'doc-view-mode-hook 'auto-revert-mode)
(setq TeX-view-program-list
'(("Okular" "okular --unique %o#src:%n`pwd`/./%b")
("Skim" "displayline -b -g %n %o %b")))
(cond
((spacemacs/system-is-mac) (setq TeX-view-program-selection '((output-pdf "Skim"))))
((spacemacs/system-is-linux) (setq TeX-view-program-selection '((output-pdf "Okular")))))
)
同有一台arch,共享 .spacemacs,spacemacs还在stable分支,emacs client使用正常。
望诸位大佬,尤其是在mac上用latex的不吝赐教。