Browse Source

Before restart use-package

ubuntu
parent
commit
199755b610
1 changed files with 39 additions and 17 deletions
  1. +39
    -17
      .emacs

+ 39
- 17
.emacs View File

@ -73,12 +73,12 @@
(projectile-mode t)) (projectile-mode t))
;; helm-projectile: ;; helm-projectile:
(use-package helm-projectile (use-package helm-projectile
:after projectile
:ensure t :ensure t
:init :init
(progn
(require 'tramp)
)
:config (helm-projectile-on))
(require 'tramp)
:config
(helm-projectile-on))
;; temp: ;; temp:
(setq ido-enable-flex-matching t) (setq ido-enable-flex-matching t)
;; dash-board: ;; dash-board:
@ -122,26 +122,47 @@
(use-package tex (use-package tex
:defer t :defer t
:ensure auctex :ensure auctex
:config
:init
(progn (progn
(setq TeX-auto-save t)
(setq latex-run-command "pdflatex")
(setenv "PATH" (concat (getenv "PATH") ":/Library/TeX/texbin/"))
(setq exec-path (append exec-path '("/Library/TeX/texbin/")))
)
(setq-default TeX-master nil) ; Query for master file.
(setq TeX-auto-save t) ; Enable parse on save.
(setq latex-run-command "pdflatex")
(setq TeX-parse-self t) ; Enable parse on load.
(setenv "PATH" (concat (getenv "PATH") ":/Library/TeX/texbin/"))
(setq exec-path (append exec-path '("/Library/TeX/texbin/")))
)
;;:config
;;
) )
;; Use pdf-tools to open PDF files ;; Use pdf-tools to open PDF files
;; (use-package pdf-tools
;; :load-path "site-lisp/pdf-tools/lisp"
;; :magic ("%PDF" . pdf-view-mode)
;; :config
;; (pdf-tools-install :no-query)
;; :init
;; (add-hook 'TeX-after-compilation-finished-functions
;; #'TeX-revert-document-buffer)
;; (setq pdf-info-epdfinfo-program "/usr/local/bin/epdfinfo")
;; (setq TeX-view-program-selection '((output-pdf "PDF Tools")))
;; ;; (add-to-list 'auto-mode-alist '("\\.pdf\\'" . pdf-view-mode))
;; )
(use-package pdf-tools (use-package pdf-tools
:load-path "site-lisp/pdf-tools/lisp"
:ensure t
:pin melpa
:magic ("%PDF" . pdf-view-mode) :magic ("%PDF" . pdf-view-mode)
:config :config
(pdf-tools-install :no-query)
:init
(custom-set-variables
'(pdf-tools-handle-upgrades nil))
:init
(setq pdf-view-midnight-colors '("#ff9900" . "#0a0a12" )) ; set the amber profile as default (see below)
(add-hook 'TeX-after-compilation-finished-functions (add-hook 'TeX-after-compilation-finished-functions
#'TeX-revert-document-buffer) #'TeX-revert-document-buffer)
(setq TeX-view-program-selection '((output-pdf "PDF Tools"))
TeX-source-correlate-start-server t)
(setq pdf-info-epdfinfo-program "/usr/local/bin/epdfinfo") (setq pdf-info-epdfinfo-program "/usr/local/bin/epdfinfo")
(setq TeX-view-program-selection '((output-pdf "PDF Tools")))
;; (add-to-list 'auto-mode-alist '("\\.pdf\\'" . pdf-view-mode))
(add-to-list 'auto-mode-alist '("\\.pdf\\'" . pdf-view-mode))
) )
@ -406,14 +427,15 @@
;; If there is more than one, they won't work right. ;; If there is more than one, they won't work right.
'(custom-safe-themes '(custom-safe-themes
(quote (quote
("bf387180109d222aee6bb089db48ed38403a1e330c9ec69fe1f52460a8936b66" default)))
("99ea831ca79a916f1bd789de366b639d09811501e8c092c85b2cb7d697777f93" "bf387180109d222aee6bb089db48ed38403a1e330c9ec69fe1f52460a8936b66" default)))
'(package-selected-packages '(package-selected-packages
(quote (quote
(org-pomodoro which-key virtualenvwrapper use-package treemacs-projectile pdf-tools org-bullets mu4e-maildirs-extension mu4e-alert magit helm-projectile helm-mu flycheck expand-region doom-themes doom-modeline dashboard company auctex))) (org-pomodoro which-key virtualenvwrapper use-package treemacs-projectile pdf-tools org-bullets mu4e-maildirs-extension mu4e-alert magit helm-projectile helm-mu flycheck expand-region doom-themes doom-modeline dashboard company auctex)))
'(pdf-tools-handle-upgrades nil) '(pdf-tools-handle-upgrades nil)
'(safe-local-variable-values '(safe-local-variable-values
(quote (quote
((set-fill-column . 5000)
((LaTeX-includegraphics-read-file . LaTeX-includegraphics-read-file-relative)
(set-fill-column . 5000)
(set-fill-column . 2000) (set-fill-column . 2000)
(TeX-auto-save . t) (TeX-auto-save . t)
(TeX-parse-self . t) (TeX-parse-self . t)


Loading…
Cancel
Save