-
Notifications
You must be signed in to change notification settings - Fork 1
/
dot_emacs
44 lines (34 loc) · 1.32 KB
/
dot_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
(require 'package)
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
(setq make-backup-files nil) ; stop creating ~ files
(setq auto-save-default nil)
(setq create-lockfiles nil)
(global-whitespace-mode 1)
(setq whitespace-line-column 150)
(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.
'(inhibit-startup-screen t))
(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.
)
(setq-default c-basic-offset 4)
(setq-default indent-tabs-mode nil)
(setq c-default-style "linux" c-basic-offset 4)
(setq-default tab-width 4)
(setq c-mode-hook
(function (lambda ()
(setq indent-tabs-mode nil)
(setq c-indent-level 4))))
(add-to-list 'default-frame-alist
'(font . "DejaVu Sans Mono-10"))
(set-face-attribute 'region nil :background "#666" :foreground "#ffffff")
(add-hook 'c-mode-common-hook #'clang-format+-mode)
(global-set-key "\C-x\C-c" nil)
(global-set-key (kbd "C-x C-c") nil)
(server-start)