blob: 7034d9a4f1ea1acced2e0cd11789fadb4d36474e (
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
|
;;; et-appearance --- Configuration for the "Look" of Emacs -*- lexical-binding: t; -*-
;;
;;; Commentary:
;;
;;; Code:
(require 'et-utils)
(defvar et-monospace-font "Hack Nerd Font Mono"
"The font used by default and for any monospaced font usage.")
(defvar et-monospace-font-size (if (et-is-desktop-p) 192 160))
(set-face-attribute 'default nil
:font (symbol-value 'et-monospace-font)
:height (symbol-value 'et-monospace-font-size))
;; Start emacs in full screen
;;
;; The t parameter appends to the hook, instead of prepending.
;; This means it'll be run after other hooks that might fiddle
;; with the frame size.
(add-hook 'window-setup-hook 'toggle-frame-maximized t)
; Remove the menu bar (File Edit Options...)
(menu-bar-mode -1)
; Remove the tool bar (if using the GUI)
(tool-bar-mode -1)
; Skip the welcome screen
(setq inhibit-startup-screen t)
;; Rather than an auditory noise, use a visual
;; flash instead.
(setq visible-bell t)
;; 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
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-package nord-theme
:config
(load-theme 'nord t))
(use-package nerd-icons)
(use-package doom-modeline
:init (doom-modeline-mode 1))
(provide 'et-appearance)
;;; et-appearance.el ends here
|