Skip to content

Instantly share code, notes, and snippets.

@npetrenko
Created January 24, 2019 16:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save npetrenko/2feeb22c628e85601805a2dbf7bd4702 to your computer and use it in GitHub Desktop.
Save npetrenko/2feeb22c628e85601805a2dbf7bd4702 to your computer and use it in GitHub Desktop.
(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