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)
|
2021-02-11 00:01:30 +01:00
|
|
|
;; 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
|
2021-07-31 20:56:24 +02:00
|
|
|
(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
|
2023-08-27 07:43:55 +02:00
|
|
|
(setq +doom-dashboard-menu-sections
|
|
|
|
'(("Reload last session"
|
2023-09-15 15:38:33 +02:00
|
|
|
:icon (nerd-icons-octicon "nf-oct-history" :face 'doom-dashboard-menu-title)
|
2023-08-27 07:43:55 +02:00
|
|
|
: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"
|
2023-09-15 15:38:33 +02:00
|
|
|
:icon (nerd-icons-octicon "nf-oct-calendar" :face 'doom-dashboard-menu-title)
|
2023-08-27 07:43:55 +02:00
|
|
|
:when (fboundp 'org-agenda)
|
|
|
|
:action org-agenda)
|
|
|
|
("Recently opened files"
|
2023-09-15 15:38:33 +02:00
|
|
|
: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)))
|
2023-08-27 07:43:55 +02:00
|
|
|
;; 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."))
|
2022-12-01 09:42:24 +01:00
|
|
|
;; Decrease size of icons in the modeline
|
2023-09-15 15:38:33 +02:00
|
|
|
(setq nerd-icons-scale-factor 1.0)
|