-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathemacs
More file actions
69 lines (51 loc) · 1.63 KB
/
Copy pathemacs
File metadata and controls
69 lines (51 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(inhibit-startup-screen t)
)
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
;; INSTALL PACKAGES
;; --------------------------------------
(require 'package)
(add-to-list 'package-archives
'("melpa" . "http://melpa.org/packages/") t)
(package-initialize)
(when (not package-archive-contents)
(package-refresh-contents))
(defvar myPackages
'(better-defaults
elpy
material-theme))
(mapc #'(lambda (package)
(unless (package-installed-p package)
(package-install package)))
myPackages)
;; BASIC CUSTOMIZATION
;; --------------------------------------
(load-theme 'material t) ;; load material theme
(elpy-enable)
(global-visual-line-mode t)
(global-linum-mode t)
(setq linum-format "%3d ")
(setq TeX-PDF-mode t)
(setq-default TeX-master nil)
(setq TeX-parse-self t)
(setq TeX-auto-save t)
(auto-fill-mode t)
(reftex-mode t)
(setq TeX-electric-math (cons "$" "$") ) ; auto close dollars
;; Use zathura for previews
(setq TeX-source-correlate-mode t)
;;(add-to-list 'TeX-view-program-selection '(output-pdf "Zathura"))
(add-to-list 'default-frame-alist '(height . 61))
(add-to-list 'default-frame-alist '(width . 140))
(require 'iso-transl)
(require 'tex-site)
(menu-bar-mode 0)