aboutsummaryrefslogtreecommitdiffstats
path: root/.emacs.d/modules/et-appearance.el
diff options
context:
space:
mode:
authorEugene Triguba <hello@eugenetriguba.com>2026-04-02 19:02:19 -0400
committerEugene Triguba <hello@eugenetriguba.com>2026-04-02 19:02:19 -0400
commitfdcf582c498c89f3363bbb9ed1f89f9e3dde287c (patch)
treec96db5dfa84ed487b23a921b75e22aa1dd5b53fc /.emacs.d/modules/et-appearance.el
parentAdd magit and fix typo in et-keys to C-g instead of M-g (diff)
downloaddotfiles-fdcf582c498c89f3363bbb9ed1f89f9e3dde287c.zip
Adjust emacs config
Diffstat (limited to '.emacs.d/modules/et-appearance.el')
-rw-r--r--.emacs.d/modules/et-appearance.el46
1 files changed, 32 insertions, 14 deletions
diff --git a/.emacs.d/modules/et-appearance.el b/.emacs.d/modules/et-appearance.el
index 3e9c035..b11ceea 100644
--- a/.emacs.d/modules/et-appearance.el
+++ b/.emacs.d/modules/et-appearance.el
@@ -1,3 +1,24 @@
+;;; 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-utils-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)
@@ -11,21 +32,17 @@
;; flash instead.
(setq visible-bell t)
-;; 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)
-
-;; Setup our monospace font
-(set-face-attribute 'default nil
- :font (symbol-value 'et-monospace-font)
- :height (symbol-value 'et-monospace-font-size))
-
-;; Use line numbers globally
-;; (setq display-line-numbers-type 'relative)
+;; 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
@@ -36,3 +53,4 @@
:init (doom-modeline-mode 1))
(provide 'et-appearance)
+;;; et-appearance.el ends here