Browse Source

auctex with PDF tools and transparency

auctex
parent
commit
a80a722972
1 changed files with 30 additions and 12 deletions
  1. +30
    -12
      .emacs

+ 30
- 12
.emacs View File

@ -33,6 +33,8 @@
;; frame size ;; frame size
(setq initial-frame-alist '((top . 0)(left . 0) (setq initial-frame-alist '((top . 0)(left . 0)
(width . 80)(height . 50))) (width . 80)(height . 50)))
(set-frame-parameter (selected-frame) 'alpha '(95 . 15)) ;;transparency
(add-to-list 'default-frame-alist '(alpha . (95 . 15))) ;;transparency
;;+++++++++++ ;;+++++++++++
;; Doom-themes, all-the-icons, mode-line and font ;; Doom-themes, all-the-icons, mode-line and font
(unless (package-installed-p 'doom-themes) (unless (package-installed-p 'doom-themes)
@ -59,19 +61,36 @@
(unless (package-installed-p 'all-the-icons) (unless (package-installed-p 'all-the-icons)
(package-install 'all-the-icons)) (package-install 'all-the-icons))
;; Set default font: ;; Set default font:
;;(add-to-list 'default-frame-alist
;; '(font . "Source Code Pro-18"))
(add-to-list 'default-frame-alist
'(font . "Source Code Pro-14"))
;;+++++++ ;;+++++++
;;auctex: ;;auctex:
(is-installed 'auctex) (is-installed 'auctex)
(is-installed 'pdf-tools);; PDFtools
(pdf-tools-install)
(setenv "PATH" (concat "/Library/TeX/texbin:" (setenv "PATH" (concat "/Library/TeX/texbin:"
(getenv "PATH"))) (getenv "PATH")))
(add-to-list 'exec-path "/Library/TeX/texbin") (add-to-list 'exec-path "/Library/TeX/texbin")
(setq TeX-auto-save t) (setq TeX-auto-save t)
(setq TeX-save-query nil)
(setq LaTeX-includegraphics-read-file 'LaTeX-includegraphics-read-file-relative)
(setq TeX-parse-self t) (setq TeX-parse-self t)
(setq-default TeX-master nil) (setq-default TeX-master nil)
(add-hook 'LaTeX-mode-hook 'visual-line-mode)
(add-hook 'LaTeX-mode-hook 'flyspell-mode)
(add-hook 'LaTeX-mode-hook 'LaTeX-math-mode)
(add-hook 'LaTeX-mode-hook 'turn-on-reftex)
(setq reftex-plug-into-AUCTeX t)
(setq TeX-view-program-selection '((output-pdf "PDF Tools"))
TeX-source-correlate-start-server t)
;; Update PDF buffers after successful LaTeX runs
(add-hook 'TeX-after-compilation-finished-functions
#'TeX-revert-document-buffer)
(add-to-list 'auto-mode-alist '("\\.pdf\\'" . pdf-view-mode))
(add-hook 'pdf-view-mode-hook
(lambda () (pdf-tools-enable-minor-modes)))
(setq TeX-source-correlate-method 'synctex)
;;--end---- ;;--end----
;;..............
;;======== ;;========
;;Flyspell ;;Flyspell
(setq ispell-program-name "/usr/bin/aspell") (setq ispell-program-name "/usr/bin/aspell")
@ -105,7 +124,6 @@
(is-installed 'neotree) (is-installed 'neotree)
(require 'neotree) (require 'neotree)
(global-set-key [f8] 'neotree-toggle) (global-set-key [f8] 'neotree-toggle)
;;==================== ;;====================
;; emacs startup config ;; emacs startup config
(setq inhibit-startup-message nil) ;;inhibit startup (setq inhibit-startup-message nil) ;;inhibit startup
@ -120,18 +138,18 @@
(add-hook 'prog-mode-hook 'display-line-numbers-mode) ;; display line number when programming (add-hook 'prog-mode-hook 'display-line-numbers-mode) ;; display line number when programming
(show-paren-mode +1) ;; show matching parentheses (show-paren-mode +1) ;; show matching parentheses
;;--------- ;;---------
(custom-set-variables
;; custom-set-variables was added by Custom.
;;Keybindings:
;;(global-set-key (kbd "M-x") 'helm-M-x)
;;................
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful. ;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance. ;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right. ;; If there is more than one, they won't work right.
) )
(custom-set-faces
;; custom-set-faces was added by Custom.
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful. ;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance. ;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right. ;; If there is more than one, they won't work right.
)
)

Loading…
Cancel
Save