-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.emacs
executable file
·50 lines (43 loc) · 1.56 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
; start package.el with emacs
(require 'package)
;add MELPA to repository list
(add-to-list 'package-archives '("melpa" . "http://melpa.milkbox.net/packages/"))
; initialize package.el
(package-initialize)
; start auto-complete with emacs
(require 'auto-complete)
; do default config for auto-complete
(require 'auto-complete-config)
(ac-config-default)
(add-to-list 'ac-dictionary-directories
"~/.emacs.d/elpa/auto-complete-20160107.8/dict")
(setq ac-ignore-case nil)
(add-to-list 'ac-modes 'arduino-mode)
; start yasnippet with emacs
(require 'yasnippet)
(yas-global-mode 1)
; Fix iedit bug in Mac
(define-key global-map (kbd "C-;") 'iedit-mode)
(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.
'(c-default-style
(quote
((c++-mode . "")
(java-mode . "java")
(awk-mode . "awk")
(other . "gnu"))))
'(custom-enabled-themes (quote (tango-dark))))
(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.
)
;; Arduino mode
(add-to-list 'load-path "~/.emacs.d/elpa/arduino-mode-20151017.2335")
(setq auto-mode-alist (cons '("\\.\\(pde\\|ino\\)$" . arduino-mode) auto-mode-alist))
(autoload 'arduino-mode "arduino-mode" "Arduino editing mode." t)
(setq yas/also-auto-indent-first-line)