]> git.friedersdorff.com Git - max/dotfiles.git/blob - emacs/.emacs
Merge branch 'master' into beryllium
[max/dotfiles.git] / emacs / .emacs
1 (require 'package)
2 (add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/"))
3 (package-initialize)
4 (custom-set-variables
5  ;; custom-set-variables was added by Custom.
6  ;; If you edit it by hand, you could mess it up, so be careful.
7  ;; Your init file should contain only one such instance.
8  ;; If there is more than one, they won't work right.
9  '(ansi-color-faces-vector
10    [default default default italic underline success warning error])
11  '(ansi-color-names-vector
12    ["#212526" "#ff4b4b" "#b4fa70" "#fce94f" "#729fcf" "#e090d7" "#8cc4ff" "#eeeeec"])
13  '(auto-save-file-name-transforms (quote ((".*" "~/.emacs.d/autosaves/\\1" t))))
14  '(backup-directory-alist (quote ((".*" . "~/.emacs.d/backups/"))))
15  '(custom-enabled-themes (quote (molokai)))
16  '(custom-safe-themes
17    (quote
18     ("4e753673a37c71b07e3026be75dc6af3efbac5ce335f3707b7d6a110ecb636a3" "b571f92c9bfaf4a28cb64ae4b4cdbda95241cd62cf07d942be44dc8f46c491f4" default)))
19  '(fci-rule-color "#383838")
20  '(nrepl-message-colors
21    (quote
22     ("#CC9393" "#DFAF8F" "#F0DFAF" "#7F9F7F" "#BFEBBF" "#93E0E3" "#94BFF3" "#DC8CC3")))
23  '(package-selected-packages
24    (quote
25     (evil-magit evil-leader evil-org molokai-theme org-evil flycheck-mypy jinja2 jinja2-mode highlight-indent-guides projectile helm-projectile zenburn-theme helm helm-config use-package flycheck company-jedi company org evil)))
26  '(pdf-view-midnight-colors (quote ("#DCDCCC" . "#383838")))
27  '(vc-annotate-background "#2B2B2B")
28  '(vc-annotate-color-map
29    (quote
30     ((20 . "#BC8383")
31      (40 . "#CC9393")
32      (60 . "#DFAF8F")
33      (80 . "#D0BF8F")
34      (100 . "#E0CF9F")
35      (120 . "#F0DFAF")
36      (140 . "#5F7F5F")
37      (160 . "#7F9F7F")
38      (180 . "#8FB28F")
39      (200 . "#9FC59F")
40      (220 . "#AFD8AF")
41      (240 . "#BFEBBF")
42      (260 . "#93E0E3")
43      (280 . "#6CA0A3")
44      (300 . "#7CB8BB")
45      (320 . "#8CD0D3")
46      (340 . "#94BFF3")
47      (360 . "#DC8CC3"))) t)
48  '(vc-annotate-very-old-color "#DC8CC3"))
49 (custom-set-faces
50  ;; custom-set-faces was added by Custom.
51  ;; If you edit it by hand, you could mess it up, so be careful.
52  ;; Your init file should contain only one such instance.
53  ;; If there is more than one, they won't work right.
54  )
55
56 ;; Create autosave dir
57 (make-directory "~/.emacs.d/autosaves/" t)
58
59 (use-package evil
60   :ensure t
61   :config (evil-mode 1))
62
63 (use-package org
64   :ensure t)
65
66 (use-package org-evil
67   :ensure t)
68
69 (use-package flycheck
70   :ensure t
71   :init (global-flycheck-mode))
72
73 (use-package flycheck-mypy
74   :ensure t)
75
76 (use-package helm-config
77   :ensure helm
78   :config
79   (helm-mode 1)
80   (global-set-key (kbd "M-x") 'helm-M-x))
81
82 (use-package projectile
83   :ensure t)
84
85 (use-package helm-projectile
86   :ensure t
87   :config
88   (projectile-global-mode)
89   (setq projectile-completion-system 'helm)
90   (helm-projectile-on))
91
92 (use-package highlight-indent-guides
93   :ensure t
94   :config
95   (add-hook 'prog-mode-hook 'highlight-indent-guides-mode)
96   (setq highlight-indent-guides-method 'character)
97   (setq highlight-indend-guides-character ?\|)
98   (set-face-foreground 'highlight-indent-guides-character-face "darkgray"))
99
100 (use-package jinja2-mode
101   :ensure t)
102
103 (use-package whitespace
104   :config
105   (setq whitespace-style '(face lines))
106   (setq whitespace-line-column 80)
107   (global-whitespace-mode +1))
108
109 (use-package magit
110   :ensure t
111   :config
112   (global-set-key (kbd "C-x g") 'magit-status))
113
114 (use-package evil-magit
115   :ensure t)
116
117
118 (add-hook 'after-init-hook 'global-company-mode)
119
120 (add-hook 'prog-mode-hook 'electric-pair-mode)
121
122 (eval-after-load 'company
123   '(add-to-list 'company-backends 'company-jedi))