aboutsummaryrefslogtreecommitdiffstats
path: root/.emacs.d/lisp/et-appearance.el
blob: 30c9587169e4f7c5eb7764205be8ec69a7139e66 (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
;;; et-appearance --- Configuration for the "Look" of Emacs -*- lexical-binding: t; -*-
;;; Commentary:
;;; Code:
(require 'et-utils)

;; Default to using line numbers in all modes
;; and turn them off one by one in the particular
;; modes where they don't make as much sense.
(global-display-line-numbers-mode 1)
(dolist (mode '(text-mode-hook
		man-mode-hook
		org-mode-hook
		term-mode-hook
		eshell-mode-hook
		shell-mode-hook
		special-mode-hook))
  (add-hook mode (lambda () (display-line-numbers-mode 0))))

;; Use relative line numbers since they are nice when using vim
;; keybindings with evil mode.
(setq display-line-numbers-type 'relative)

(setq column-number-mode t)

;; Set the emacs frame title to the full file path.
;;
;; Source - https://stackoverflow.com/a/3669681
;; Posted by Jérôme Radix, modified by community. See post 'Timeline' for change history
;; Retrieved 2026-04-25, License - CC BY-SA 3.0
(setq frame-title-format
      (list (format "%s %%S: %%j " (system-name))
            '(buffer-file-name "%f" (dired-directory dired-directory "%b"))))

(use-package nerd-icons
  :ensure t)

(use-package doom-modeline
  :ensure t
  :init
  (doom-modeline-mode 1))

(use-package doom-themes
  :ensure t
  :custom
  (doom-themes-enable-bold t)
  (doom-themes-enable-italic nil)
  :config
  (load-theme 'doom-nord t))
  ;; Enable flashing mode-line on errors
  ;(doom-themes-visual-bell-config)
  ;; Corrects (and improves) org-mode's native fontification.
  ;(doom-themes-org-config))

(provide 'et-appearance)
;;; et-appearance.el ends here