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
|
|
|
;; Display Magit status in fullscreen
|
|
|
|
(after! magit
|
|
|
|
(setq magit-display-buffer-function #'magit-display-buffer-fullframe-status-v1))
|
2022-08-01 18:06:40 +02:00
|
|
|
;; Match pdf-tools colors to the theme and fit to page by default
|
2020-01-06 10:20:20 +01:00
|
|
|
(after! pdf-tools
|
2023-06-12 14:04:56 +02:00
|
|
|
(setq pdf-view-midnight-colors '("#BBC2CF" . "#282C34"))
|
|
|
|
(add-hook 'pdf-tools-enabled-hook 'pdf-view-midnight-minor-mode))
|
2020-01-06 10:20:20 +01:00
|
|
|
;; Customize modeline
|
|
|
|
(setq doom-modeline-major-mode-icon t
|
2022-11-24 13:23:23 +01:00
|
|
|
doom-modeline-buffer-encoding nil)
|
2020-05-24 08:15:14 +02:00
|
|
|
;; Hide direnv environment variables popup
|
|
|
|
(setq direnv-always-show-summary nil)
|
2021-02-11 00:01:30 +01:00
|
|
|
;; Change splash-screen banner
|
|
|
|
(setq fancy-splash-image "~/.doom.d/assets/emacs.svg")
|
2022-12-18 01:04:16 +01:00
|
|
|
;; Disable LSP documentation popup
|
|
|
|
(after! lsp-ui
|
|
|
|
(setq lsp-ui-doc-enable nil
|
|
|
|
lsp-signature-auto-activate nil
|
|
|
|
lsp-enable-symbol-highlighting nil
|
|
|
|
lsp-ui-sideline-enable nil
|
|
|
|
lsp-modeline-code-actions-enable nil
|
|
|
|
lsp-headerline-breadcrumb-enable nil
|
|
|
|
lsp-len-enable nil))
|
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-11-30 17:01:03 +01:00
|
|
|
;; Reduce size of the popup terminal
|
|
|
|
(set-popup-rule! "*doom:vterm-popup:*" :size 0.25 :vslot -4 :select t :quit nil :ttl 0)
|
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-08-27 07:43:55 +02:00
|
|
|
:action recentf-open-files)
|
|
|
|
("Open email client"
|
2023-09-15 15:38:33 +02:00
|
|
|
:icon (nerd-icons-octicon "nf-oct-mail" :face 'doom-dashboard-menu-title)
|
2023-08-27 07:43:55 +02:00
|
|
|
:when (featurep! :email mu4e)
|
|
|
|
:face (:inherit (doom-dashboard-menu-title bold))
|
|
|
|
:action =mu4e)
|
|
|
|
("RSS reader"
|
2023-09-15 15:38:33 +02:00
|
|
|
:icon (nerd-icons-octicon "nf-oct-rss" :face 'doom-dashboard-menu-title)
|
2023-08-27 07:43:55 +02:00
|
|
|
:when (featurep! :app rss)
|
|
|
|
:face (:inherit (doom-dashboard-menu-title bold))
|
|
|
|
:action =rss)
|
|
|
|
("Read saved articles"
|
2023-09-15 15:38:33 +02:00
|
|
|
:icon (nerd-icons-octicon "nf-oct-book" :face 'doom-dashboard-menu-title)
|
2023-08-27 07:43:55 +02:00
|
|
|
:face (:inherit (doom-dashboard-menu-title bold))
|
|
|
|
:action =wallabag)))
|
|
|
|
;; Restore previous session without confirmation
|
|
|
|
(defadvice! restore-no-confirm-session-quickload-a ()
|
|
|
|
: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)
|
2023-03-15 01:31:12 +01:00
|
|
|
;; Increase size of the PlatformIO compilation buffer
|
2023-04-10 22:37:39 +02:00
|
|
|
(set-popup-rule! "*platformio*" :size 0.25 :vslot -4 :select t :quit t :ttl 0)
|