- (setq TeX-view-program-list
- '(("zathura"
- ("zathura" (mode-io-correlate "-sync.sh")
- " "
- (mode-io-correlate "%n:1:%t ")
- "%o"))))
+ ;; (setq TeX-view-program-list
+ ;; '(("zathura"
+ ;; ("zathura" (mode-io-correlate "-sync.sh")
+ ;; " "
+ ;; (mode-io-correlate "%n:1:%t ")
+ ;; "%o"))))
+
+ ;; Recompile with latexmk -xelatex on save
+ (add-hook 'after-save-hook
+ (lambda ()
+ (when (string= major-mode 'latex-mode)
+ (TeX-run-latexmk "LaTeX"
+ (format "latexmk -xelatex %s" (buffer-file-name))
+ (file-name-base (buffer-file-name))))))
+
+ ;; Move to beg/end of buffer before signaling an error
+ (setq scroll-error-top-bottom t)
+
+ (use-package beacon
+ :ensure nil
+ :init (beacon-mode 1)
+ :diminish beacon-mode)
+
+ (use-package delsel ; Replace selected text upon typing
+ :ensure nil
+ :defer t
+ :init (delete-selection-mode))
+
+ (setq magit-repository-directories '(("~/src/" . 2)
+ ("~/usr/uni/eecs/3311/" . 0)
+ ("~/dotfiles/" . 0)))