-
Notifications
You must be signed in to change notification settings - Fork 0
/
test
69 lines (50 loc) · 2.17 KB
/
test
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
;; Added by Package.el. This must come before configurations of
;; installed packages. Don't delete this line. If you don't want it,
;; just comment it out by adding a semicolon to the start of the line.
;; You may delete these explanatory comments.
(package-initialize)
(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.
'(package-selected-packages
(quote
(highlight-indent-guides elpy yasnippet nlinum company-anaconda company-tern company-irony irony global-linum-mode markdown-mode use-package evil-visual-mark-mode ahungry-theme company))))
(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.
)
(require 'package)
(add-to-list 'package-archives '("org" . "http://orgmode.org/elpa/"))
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/"))
(add-to-list 'package-archives '("melpa-stable" . "http://stable.melpa.org/packages/"))
(setq package-enable-at-startup nil)
(package-initialize)
(require 'evil)
(evil-mode t)
(unless (package-installed-p 'use-package)
(package-refresh-contents)
(package-install 'use-package))
(eval-when-compile
(require 'use-package))
(load-theme 'zenburn t)
(global-linum-mode 1)
(setq linum-format "%4d \u2502 ")
; lines below based on tutorial given on https://www.youtube.com/channel/UCibKclzsnnHjQZFOLuykZ1A
; start auto-complete with emacs
(require 'auto-complete)
; default config for auto-complete
(require 'auto-complete-config)
(ac-config-default)
; start yasnippet when loading emacs
(require 'yasnippet)
(yas-global-mode 1)
; Enable elpy mode
(elpy-enable)
; Fixing a key binding bug in elpy -- credit: tutorial by b yuksel @ https://www.youtube.com/channel/UCibKclzsnnHjQZFOLuykZ1A
(define-key yas-minor-mode-map (kbd "C-c k") 'yas-expand)
; Fixing another key binding bug in iedit mode
(define-key global-map (kbd "C-c o") 'iedit-mode)