refactor: remake pankomacs

This commit is contained in:
Artur Manuel 2025-05-03 18:04:12 +01:00
commit d8e729c7d8
Signed by: amadaluzia
SSH key fingerprint: SHA256:uS8IX6IxM7STPOBS/e1vMC6FBToJmSCViQNO/f4SHpU
9 changed files with 150 additions and 208 deletions

View file

@ -1,24 +1,20 @@
;; -*- lexical-binding: t -*-
;;; config-ui --- UI configuration -*- lexical-binding: t -*-
;;; Commentary:
(defun config-init-ui ()
(defun my/doom-modeline-for-new-frames (&optional frame)
(setq doom-modeline-height (+ (frame-char-height) 8))
(with-selected-frame (or frame (selected-frame))
(doom-modeline-mode 1)))
;; I need to do UI configuration and this is a
;; decent place to do that.
(use-package doom-modeline
:defer t
:commands (doom-modeline-mode)
:custom
(doom-modeline-mode (not (daemonp)))
(doom-modeline-env-load-string "")
:hook ((server-after-make-frame) . my/doom-modeline-for-new-frames)
;; ^^^^^^^^^^^^^^^^^^^^^^^ this hook is my goat
)
;;; Code:
(defun init-ui-config ()
"Just provide UI configuration."
(use-package base16-theme
:config
(load-theme 'base16-rose-pine t)))
(load-theme 'base16-rose-pine t))
(use-package doom-modeline
:custom
(doom-modeline-mode t)))
(provide 'config-ui)
;;; config-ui.el ends here