Created
January 24, 2019 16:25
-
-
Save npetrenko/2feeb22c628e85601805a2dbf7bd4702 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(require 'package) | |
(setq package-enable-at-startup nil) | |
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/")) | |
(add-to-list 'package-archives '("marmalade" . "http://marmalade-repo.org/packages/")) | |
(add-to-list 'package-archives '("gnu" . "http://elpa.gnu.org/packages/")) | |
(package-initialize) | |
(unless (package-installed-p 'use-package) | |
(package-refresh-contents) | |
(package-install 'use-package)) | |
(require 'use-package) | |
(server-start) | |
(setq inhibit-startup-screen t) | |
(setq initial-scratch-message ";; Happy Hacking") | |
(show-paren-mode 1) | |
(load "auctex.el" nil t t) | |
(load "preview-latex.el" nil t t) | |
(setq TeX-auto-save t) | |
(setq TeX-parse-self t) | |
(setq-default TeX-master nil) | |
(setq LaTeX-indent-level 4) | |
(setq LaTeX-indent-environment-list | |
'(("itemize" LaTeX-indent-tabular) | |
("enumerate" LaTeX-indent-tabular) | |
("tabular" LaTeX-indent-tabular) | |
("tabular*" LaTeX-indent-tabular) | |
("displaymath") | |
("equation") | |
("equation*") | |
("picture"))) | |
(add-hook 'LaTeX-mode-hook 'visual-line-mode) | |
(add-hook 'LaTeX-mode-hook 'LaTeX-math-mode) | |
(setenv "TEXINPUTS" | |
(concat | |
"/home/nikita/conf_files/latex_styles/" ":" | |
(getenv "TEXINPUTS"))) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment