-
Notifications
You must be signed in to change notification settings - Fork 0
/
personal.el
60 lines (45 loc) · 1.79 KB
/
personal.el
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
51
52
53
54
55
56
57
58
59
60
;;; Package --- Summary
;;; Commentary:
;;; User settings for .emacs
;;; Code:
;;; Цветные скобочки
(use-package rainbow-delimiters
:init
(add-hook 'prog-mode-hook #'rainbow-delimiters-mode)
(setq rainbow-delimiters-max-face-count 9))
;;; Scrolling
(setq scroll-step 1) ;; one line
(setq scroll-margin 10) ;; scroll buffer to 10 lines at going to last line
(setq scroll-conservatively 10000)
(setq directory-free-space-args "-Pm")
;; Подсветка результатов поиска и всё такое
(setq search-highlight t)
(setq query-replace-highlight t)
(setq column-number-mode 1) ;; Номера строк слева
(save-place-mode 1) ;; Remember the cursor position
(global-hl-line-mode 1) ;;; Подсветка текущей строки
(add-hook 'find-file-hook 'linum-mode) ;; Show line numbers on opened files
(setq linum-format "%4d") ;; fill more spaces left to numbers
;; Иконки в статус-баре
(use-package
mode-icons
:config (mode-icons-mode 1))
;; Показывать отступы во всех режимах
(use-package
indent-guide
:config (indent-guide-global-mode 1))
;; Auto fill new file with some content
(auto-insert-mode t)
(fset 'yes-or-no-p 'y-or-n-p) ;;; Understand y and n instead of yes and no
(scroll-bar-mode -1) ;; Scrollbars off
;; Some fonts
(set-face-font 'default "Fira Code-14")
(set-face-font 'mode-line "Fira Code-10")
(set-face-font 'mode-line-inactive "Fira Code-10")
(eval-after-load "linum"
'(set-face-attribute 'linum nil :height 100))
;; Highlight empty lines after the end of file in prog modes.
(add-hook 'prog-mode-hook (lambda () (setq indicate-empty-lines t)))
(setq-default frame-title-format '("%f [%m]")
show-trailing-whitespace 't)
;;; personal.el ends here