summary refs log tree commit diff
path: root/config/init-ui.el
blob: 526b446748293029a880a258383391e0d844070f (plain) (blame)
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
62
63
64
65
66
67
;;; init-ui.el --- User interface config. -*- lexical-binding: t -*-

;;; Commentary:

;; User interface settings.

;;; Code:

;; Don't say anything on mode-line mouseover.
(setq mode-line-default-help-echo nil)

;; Keep cursors and highlights in current window only.
(setq cursor-in-non-selected-windows nil)

;; Don't highlight inactive windows.
(setq highlight-nonselected-windows nil)

;; Use y-or-n
(setq use-short-answers t)

;; Use UTF-8 everywhere
(prefer-coding-system       'utf-8)
(set-default-coding-systems 'utf-8)
(set-terminal-coding-system 'utf-8)
(set-keyboard-coding-system 'utf-8)

(use-package paren
  :init
  (show-paren-mode 2)
  :custom-face
  :custom
  (show-paren-delay 0.2)
  (show-paren-highlight-openparen t)
  (show-paren-when-point-inside-paren t)
  (show-paren-when-point-in-periphery t)
  (show-paren-style 'parenthesis))

(use-package fringe
  :demand t
  :config
  ;; no fringe on the right side
  (fringe-mode '(8 . 0)))

;; Disable bidirectional text support for slight performance bonus.
(setq bidi-display-reordering nil)

(setq window-divider-default-bottom-width 1)
(setq window-divider-default-places 'bottom-only)

;; empty scratch buffer
(setq initial-scratch-message "")

;; scroll 5 lines at a time
(setq next-screen-context-lines 5)

;; cursor is a horizontal bar
(setq cursor-type 'box)

;; breadcrumb
;; https://github.com/joaotavora/breadcrumb
(use-package breadcrumb
  :ensure t
  :init
  (breadcrumb-mode 1))

(provide 'init-ui)
;;; init-ui.el ends here