-
Notifications
You must be signed in to change notification settings - Fork 0
/
.emacs
43 lines (37 loc) · 1.44 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
;; start package.el with emacs
(require 'package)
;; add melpa to repository list
(add-to-list 'package-archives
'("melpa" . "http://melpa.org/packages/") t)
;; 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)
;; start company with emacs
;;(require 'company)
;; start yasnippet with emacs
(add-to-list 'load-path "~/.emacs.d/plugins/yasnippet")
(require 'yasnippet)
(yas-global-mode 1)
;; start neotree with emacs
(require 'neotree)
(global-set-key [f8] 'neotree-toggle)
(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-enabled-themes (quote (tango-dark)))
'(package-selected-packages
(quote
(yasnippet-snippets neotree company-c-headers company yasnippet auto-complete))))
(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.
)
;; set the default indentation style for C
(setq c-default-style "linux"
c-basic-offset 4)