-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvisuals.el
61 lines (49 loc) · 1.91 KB
/
visuals.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
61
;; Visuals
;; Find a way to load it with max height and half of screen
;; (set-frame-size (selected-frame) 150 79)
;; (set-frame-position (selected-frame) 1195 0)
(setq inhibit-splash-screen t) ;; Do not show splash screen
(tool-bar-mode -1) ;; Disable toolbar
;; Show line numbers
(setq linum-format "%3d \u2502")
(global-display-line-numbers-mode)
(show-paren-mode) ;; Highlight matching parentheses when the point is on them.
;; (set-frame-position nil 0 0) ;; only notebook
(set-frame-position nil 772 0) ;; work monitor
(set-frame-width nil 248) ;; work monitor
;; home monitor
(if (eq (display-pixel-width) 4352)
(set-frame-width nil 198))
(add-to-list 'default-frame-alist '(fullscreen . fullheight))
;; Clock in the mode line
(setq display-time-24hr-format t)
(setq display-time-default-load-average nil)
(display-time)
(set-fringe-style 0) ;; left and right spaces
(scroll-bar-mode -1) ;; hide scrollbar
(menu-bar-mode -1) ;; hide menubar
;; (setq scroll-step 1
;; scroll-conservatively 10000)
(set-face-attribute 'default nil :height 150) ;; Change "font size"
(blink-cursor-mode -1)
(global-hl-line-mode) ;; Current line color
;; Whitespace
(setq whitespace-display-mappings
(quote ((newline-mark ?\n [?\u00AC ?\n] [?$ ?\n])
(tab-mark ?\t [?\u25B8 ?\t] [?\u00BB ?\t] [?\\ ?\t]))))
(setq whitespace-style
(quote (face tabs trailing space-before-tab newline
indentation space-after-tab tab-mark newline-mark
empty)))
(global-whitespace-mode)
(defun my-magit-section-mode-hook ()
"Custom behaviours for 'magit-section-mode'."
(whitespace-mode)
(whitespace-mode))
(add-hook 'magit-section-mode-hook #'my-magit-section-mode-hook)
;; WIP
;; (add-to-list 'initial-frame-alist '(fullscreen . maximized))
;; (set-frame-size (selected-frame) 200 78)
;; (set-frame-height (selected-frame) 75)
;; (set-frame-position (selected-frame) 900 0)
;; (fullheight)