summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--custom-settings.el4
-rw-r--r--init.el25
2 files changed, 27 insertions, 2 deletions
diff --git a/custom-settings.el b/custom-settings.el
index 366b83e..7697e13 100644
--- a/custom-settings.el
+++ b/custom-settings.el
@@ -58,7 +58,7 @@
'(ivy-on-del-error-function nil)
'(ivy-use-virtual-buffers t)
'(ivy-wrap t)
- '(ledger-clear-whole-transactions t)
+ '(ledger-clear-whole-transactions t t)
'(lsp-ui-doc-border "wheat")
'(lsp-ui-doc-enable t)
'(lsp-ui-doc-header t)
@@ -73,7 +73,7 @@
'(org-sort-agenda-notime-is-late nil)
'(package-selected-packages
(quote
- (ox-hugo company-irony beacon-mode python-pytest password-store csv-mode expand-region org-gcal lsp-python-ms ace-window discover-my-major popup-kill-ring amx gnu-elpa-keyring-update auto-package-update monokai-theme color-theme-monokai color-theme-sanityinc-tomorrow dracula-theme evil-mode yasnippet-snippets highlight-symbol rainbow-delimiters git-gutter Ivy org-caldav which-key-mode org-plus-contrib use-package ac-cider magit blacken py-autopep8 flycheck elpy yasnippet company-lsp company lsp-ui go-autocomplete lsp-mode go-mode markdown-mode gruvbox-theme helm org cider slime evil)))
+ (auctex dired-x gotest company-irony beacon-mode python-pytest password-store csv-mode expand-region org-gcal lsp-python-ms ace-window discover-my-major popup-kill-ring amx gnu-elpa-keyring-update auto-package-update monokai-theme color-theme-monokai color-theme-sanityinc-tomorrow dracula-theme evil-mode yasnippet-snippets highlight-symbol rainbow-delimiters git-gutter Ivy org-caldav which-key-mode org-plus-contrib use-package ac-cider magit blacken py-autopep8 flycheck elpy yasnippet company-lsp company lsp-ui go-autocomplete lsp-mode go-mode markdown-mode gruvbox-theme helm org cider slime evil)))
'(pdf-view-midnight-colors (quote ("#fdf4c1" . "#282828")))
'(pos-tip-background-color "#36473A")
'(pos-tip-foreground-color "#FFFFC8")
diff --git a/init.el b/init.el
index 74b011b..c5bb39c 100644
--- a/init.el
+++ b/init.el
@@ -135,6 +135,31 @@
(setq beacon-color "OrangeRed")
(beacon-mode 1))
+;; AUCTeX
+(use-package tex
+ :ensure auctex
+ :defer t
+ :custom
+ (TeX-auto-save t)
+ (TeX-parse-self t)
+ (TeX-master nil)
+ ;; to use pdfview with auctex
+ (TeX-view-program-selection '((output-pdf "pdf-tools"))
+ TeX-source-correlate-start-server t)
+ (TeX-view-program-list '(("pdf-tools" "TeX-pdf-tools-sync-view")))
+ (TeX-after-compilation-finished-functions #'TeX-revert-document-buffer)
+ :hook
+ (LaTeX-mode . (lambda ()
+ (turn-on-reftex)
+ (setq reftex-plug-into-AUCTeX t)
+ (reftex-isearch-minor-mode)
+ (setq TeX-PDF-mode t)
+ (setq TeX-source-correlate-method 'synctex)
+ (setq TeX-source-correlate-start-server t)))
+ :config
+ (when (version< emacs-version "26")
+ (add-hook LaTeX-mode-hook #'display-line-numbers-mode)))
+
;; kill other buffers
(defun kill-other-buffers ()
"Kill all other buffers."