]> git.friedersdorff.com Git - max/dotfiles.git/blob - emacs/.emacs
More complicated emacs config
[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  '(auto-save-file-name-transforms (quote ((".*" "~/.emacs.d/autosaves/\\1" t))))
12  '(backup-directory-alist (quote ((".*" . "~/.emacs.d/backups/"))))
13  '(custom-enabled-themes (quote (zenburn)))
14  '(custom-safe-themes
15    (quote
16     ("4e753673a37c71b07e3026be75dc6af3efbac5ce335f3707b7d6a110ecb636a3" "b571f92c9bfaf4a28cb64ae4b4cdbda95241cd62cf07d942be44dc8f46c491f4" default)))
17  '(package-selected-packages
18    (quote
19     (zenburn-theme helm helm-config use-package flycheck company-jedi company org evil))))
20 (custom-set-faces
21  ;; custom-set-faces was added by Custom.
22  ;; If you edit it by hand, you could mess it up, so be careful.
23  ;; Your init file should contain only one such instance.
24  ;; If there is more than one, they won't work right.
25  )
26
27 ;; Create autosave dir
28 (make-directory "~/.emacs.d/autosaves/" t)
29
30 (use-package evil
31   :ensure t
32   :config (evil-mode 1))
33
34 (use-package flycheck
35   :ensure t
36   :init (global-flycheck-mode))
37
38 (use-package helm-config
39   :ensure helm
40   :config
41   (helm-mode 1)
42   (global-set-key (kbd "M-x") 'helm-M-x))
43
44
45 (add-hook 'after-init-hook 'global-company-mode)
46
47 (eval-after-load 'company
48   '(add-to-list 'company-backends 'company-jedi))