mirror of
https://github.com/larstvei/dot-emacs.git
synced 2024-11-26 15:38:29 +00:00
Use auto-revert-mode with pdf-tools
This commit is contained in:
parent
26eea0fa11
commit
c70d93a716
4
init.org
4
init.org
@ -251,7 +251,8 @@
|
|||||||
We can set variables to whatever value we'd like using =setq=.
|
We can set variables to whatever value we'd like using =setq=.
|
||||||
|
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(setq default-input-method "TeX" ; Use TeX when toggling input method.
|
(setq auto-revert-interval 1 ; Refresh buffers fast
|
||||||
|
default-input-method "TeX" ; Use TeX when toggling input method.
|
||||||
doc-view-continuous t ; At page edge goto next/previous.
|
doc-view-continuous t ; At page edge goto next/previous.
|
||||||
echo-keystrokes 0.1 ; Show keystrokes asap.
|
echo-keystrokes 0.1 ; Show keystrokes asap.
|
||||||
inhibit-startup-message t ; No splash screen please.
|
inhibit-startup-message t ; No splash screen please.
|
||||||
@ -447,6 +448,7 @@
|
|||||||
it's only slow on the first run!
|
it's only slow on the first run!
|
||||||
|
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(add-hook 'pdf-tools-enabled-hook 'auto-revert-mode)
|
||||||
(add-to-list 'auto-mode-alist '("\\.pdf\\'" . pdf-tools-install))
|
(add-to-list 'auto-mode-alist '("\\.pdf\\'" . pdf-tools-install))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user