doom.d/+ui.el

43 lines
1.8 KiB
EmacsLisp
Raw Permalink Normal View History

2020-01-06 10:20:20 +01:00
;;; ~/.doom.d/+ui.el -*- lexical-binding: t; -*-
;; Appearance settings
;; Set Font and theme
2021-01-19 01:44:10 +01:00
(setq doom-font (font-spec :family "Iosevka Medium" :size 26)
2022-09-12 01:03:53 +02:00
doom-theme 'doom-one)
2020-01-06 10:20:20 +01:00
;; Customize modeline
2023-10-04 19:11:11 +02:00
(setq doom-modeline-buffer-encoding nil)
;; Change splash-screen banner
(setq fancy-splash-image "~/.doom.d/assets/emacs.svg")
2020-07-01 18:55:20 +02:00
;; Shrink minibuffer
2021-07-31 14:39:27 +02:00
(after! vertico
(setq vertico-count 8))
2020-09-06 16:58:29 +02:00
;; Eliminate gaps between windows
(after! frame
(remove-hook 'doom-init-ui-hook #'window-divider-mode))
2022-09-11 22:53:50 +02:00
;; Show matching parenthesis on the minibuffer
(after! smartparens (show-smartparens-global-mode t))
2022-09-17 12:33:44 +02:00
;; Modify the splash screen actions
(setq +doom-dashboard-menu-sections
'(("Reload last session"
:icon (nerd-icons-octicon "nf-oct-history" :face 'doom-dashboard-menu-title)
:when (cond ((modulep! :ui workspaces)
(file-exists-p (expand-file-name persp-auto-save-fname persp-save-dir)))
((require 'desktop nil t)
(file-exists-p (desktop-full-file-name))))
:face (:inherit (doom-dashboard-menu-title bold))
:action doom/quickload-session)
("Open org-agenda"
:icon (nerd-icons-octicon "nf-oct-calendar" :face 'doom-dashboard-menu-title)
:when (fboundp 'org-agenda)
:action org-agenda)
("Recently opened files"
:icon (nerd-icons-faicon "nf-fa-file_text" :face 'doom-dashboard-menu-title)
2023-10-04 19:11:11 +02:00
:action recentf-open-files)))
;; Restore previous session without confirmation
(defadvice! restore-no-confirm-session-quickload-a ()
2023-10-04 19:11:11 +02:00
:override #'doom/quickload-session
(message "Restoring session...")
(doom-load-session)
(message "Session restored. Welcome back."))
;; Decrease size of icons in the modeline
(setq nerd-icons-scale-factor 1.0)