-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathemacs_config
27 lines (26 loc) · 980 Bytes
/
emacs_config
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
(global-linum-mode t)
(setq c-default-style "bsd"
c-basic-offset 8
tab-width 8
indent-tabs-mode t)
(require 'whitespace)
(setq whitespace-style '(face empty lines-tail trailing))
(global-whitespace-mode t)
(setq column-number-mode t)
(defun my-js-mode-hook ()
(setq-local tab-width 1)
(setq-local indent-tabs-mode nil))
(add-hook 'js-mode-hook 'my-js-mode-hook)
(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 (company puppet-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.
)
(add-hook 'after-init-hook 'global-company-mode)