Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Focus Lost upon LaTeX compiling via C-c C-a #35

Open
Davidj361 opened this issue Apr 5, 2019 · 0 comments
Open

Focus Lost upon LaTeX compiling via C-c C-a #35

Davidj361 opened this issue Apr 5, 2019 · 0 comments

Comments

@Davidj361
Copy link

Davidj361 commented Apr 5, 2019

When I have a split screen of working on a LaTeX file, where the preview of the PDF is in another emacs window already, and if I compile it again via C-c C-a, airline changes focus to the PDF preview and while I am still able to scroll around and type in the LaTeX source window which is indicated as unfocused. This doesn't happen when airline is disabled.

I am using the auctex and pdf-tools packages, here are my settings for LaTeX in emacs:

(pdf-tools-install)

(setq TeX-PDF-mode t)
(setq TeX-source-correlate-method 'synctex)
(setq TeX-source-correlate-mode t)
(setq TeX-source-correlate-start-server t)
(setq TeX-auto-save t)
(setq TeX-parse-self t)

(setq TeX-view-program-selection '((output-pdf "pdf-tools"))
    TeX-view-program-list '(("pdf-tools" TeX-pdf-tools-sync-view))
    TeX-source-correlate-start-server t)

;; revert pdf-view after compilation
(add-hook 'TeX-after-compilation-finished-functions #'TeX-revert-document-buffer)
(add-hook 'LaTeX-mode-hook (lambda () (local-set-key (kbd "C-c a") 'pdf-sync-forward-search)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant