-
Notifications
You must be signed in to change notification settings - Fork 0
/
.emacs
43 lines (31 loc) · 1.21 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
(load-theme 'misterioso)
(setq column-number-mode t)
(setq create-lockfiles nil)
(setq backup-directory-alist '((".*" . "~/.Trash")))
(add-hook 'prog-mode-hook (lambda () (setq display-line-numbers 'relative)))
(add-hook 'conf-mode-hook (lambda () (setq display-line-numbers 'relative)))
(setq-default display-line-numbers-width 2)
(setq-default display-line-numbers-widen t)
(tool-bar-mode -1)
(scroll-bar-mode -1)
(menu-bar-mode 1)
(setq-default cursor-type 'bar
cursor-in-non-selected-windows nil)
(set-default 'truncate-lines t)
(setq scroll-step 1) ; keyboard scroll one line at a time
(setq scroll-preserve-screen-position t)
(setq scroll-conservatively 101)
(global-set-key (kbd "C-M-z") 'undo)
(recentf-mode 1)
(global-set-key "\C-x\ \C-r" 'recentf-open-files)
(defalias 'yes-or-no-p 'y-or-n-p)
(setq visible-bell 1)
(set-language-environment "UTF-8")
(prefer-coding-system 'utf-8)
(set-terminal-coding-system 'utf-8)
(set-keyboard-coding-system 'utf-8)
(set-buffer-file-coding-system 'utf-8)
(set-default-coding-systems 'utf-8)
(set-face-background 'region "color-17")
(set-face-foreground 'region "red")
(set-face-bold-p 'font-lock-builtin-face t )