-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.emacs
140 lines (108 loc) · 3.71 KB
/
.emacs
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
(require 'package)
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
(add-to-list 'package-archives '("melpa-stable" . "https://stable.melpa.org/packages/") t)
(add-to-list 'package-archives '("org" . "https://orgmode.org/elpa/") t)
(setq package-enable-at-startup nil)
(setq inhibit-startup-message t)
(package-initialize)
(when (not package-archive-contents)
(package-refresh-contents))
(load-theme 'material t)
(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.
'(custom-safe-themes
(quote
("d4f8fcc20d4b44bf5796196dbeabec42078c2ddb16dcb6ec145a1c610e0842f3" "732b807b0543855541743429c9979ebfb363e27ec91e82f463c91e68c772f6e3" "a24c5b3c12d147da6cef80938dca1223b7c7f70f2f382b26308eba014dc4833a" default)))
'(custom-enabled-themes (quote (material)))
'(elpy-rpc-python-command "python3")
'(elpy-test-django-with-manage t)
'(package-selected-packages
(quote
(evil-snipe evil-easymotion yaml-mode rainbow-delimiters evil auto-package-update key-chord elpy material-theme better-defaults fzf web-mode linum-relative editorconfig isortify evil-terminal-cursor-changer ## blacken use-package evil-visual-mark-mode))))
(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.
)
(setq make-backup-files nil)
(setq auto-save-default nil)
(setq create-lockfiles nil)
(unless (package-installed-p 'use-package)
(package-install 'use-package))
(eval-when-compile
(require 'use-package))
(setq use-package-always-ensure t)
(use-package better-defaults)
(use-package material-theme)
(use-package evil
:config
(evil-mode 1))
(use-package key-chord
:after evil
:config
(key-chord-define evil-insert-state-map "jk" 'evil-normal-state)
(key-chord-mode 1))
;(use-package org-evil)
(require 'display-line-numbers)
(global-display-line-numbers-mode)
(setq display-line-numbers-type 'relative)
(use-package editorconfig
:config
(editorconfig-mode 1))
;(define-minor-mode blacken-mode
;"Automatically run black when saving"
;:lighter " Black"
;(if blacken-mode
;(add-hook 'before-save-hook 'elpy-format-code)
;(remove-hook 'before-save-hook 'elpy-format-code)))
(use-package elpy
:init
(add-hook 'python-mode-hook 'blacken-mode)
:config
(global-set-key (kbd "<f8>") 'flymake-goto-next-error)
(elpy-enable))
(use-package isortify)
;:init
;(add-hook 'python-mode-hook 'isortify-mode))
;(use-package org-bullets
;:config
;(add-hook 'org-mode-hook (lambda () (org-bullets-mode 1))))
(setq python-shell-interpreter "python3")
;(org-babel-do-load-languages
;'org-babel-load-languages
;'((python . t)))
(modify-syntax-entry ?_ "w")
(use-package fzf
:config
(global-set-key (kbd "C-x f") 'fzf-git))
(use-package rainbow-delimiters
:init
(add-hook 'prog-mode-hook #'rainbow-delimiters-mode))
(rassq-delete-all 'change-log-mode auto-mode-alist)
(rassq-delete-all 'rst-mode auto-mode-alist)
(rassq-delete-all 'javascript-mode auto-mode-alist)
(use-package yasnippet
:config
(yas-global-mode 1))
(use-package auto-package-update
:config
(setq auto-package-update-delete-old-versions t)
(setq auto-package-update-hide-results t)
(auto-package-update-maybe))
;(use-package elm-mode)
;(use-package evil-easymotion
;:config
;(evilem-default-keybindings "SPC"))
(use-package evil-snipe)
(use-package nim-mode)
(use-package helm-ag
:config
(defun ag ()
(interactive)
(helm-do-ag-project-root)
)
)