-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.el
42 lines (34 loc) · 1.04 KB
/
init.el
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
;; install a el-get when not installed
(add-to-list 'load-path (locate-user-emacs-file "el-get/el-get"))
(unless (require 'el-get nil 'noerror)
(require 'package)
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/"))
(add-to-list 'package-pinned-packages '((el-get . "melpa")))
(package-refresh-contents)
(package-initialize)
(package-install 'el-get)
(require 'el-get))
;; el-get
(el-get-bundle 'elpy)
(el-get-bundle 'flycheck)
(el-get-bundle 'jedi)
(el-get-bundle 'smartrep)
(el-get 'sync)
;; beep sound mute
(setq ring-bell-function 'ignore)
;; display linenum
(global-linum-mode t)
;; elpy setting
(elpy-enable)
(elpy-use-ipython)
(setq elpy-rpc-backend "jedi")
;; flycheck setting
(when (require 'flycheck nil t)
(remove-hook 'elpy-modules 'elpy-module-flymake)
(add-hook 'elpy-mode-hook 'flycheck-mode))
(define-key elpy-mode-map (kbd "C-c C-v") 'helm-flycheck)
(require 'smartrep)
(smartrep-define-key elpy-mode-map "C-c"
'(("C-n" . flycheck-next-erorr)
("C-p" . flycheck-previous-erorr)))
;;;