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
|
2022-09-12 01:03:53 +02:00
|
|
|
(setq pdf-view-midnight-colors '("#BBC2CF" . "#282C34"))
|
2020-01-06 10:20:20 +01:00
|
|
|
(add-hook 'pdf-tools-enabled-hook 'pdf-view-midnight-minor-mode))
|
|
|
|
;; Customize modeline
|
|
|
|
(setq doom-modeline-major-mode-icon t
|
|
|
|
doom-modeline-persp-name 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-11-30 16:50:39 +01:00
|
|
|
;; Remove distracting LSP UI elements
|
|
|
|
(after! eglot
|
|
|
|
(setq eldoc-echo-area-use-multiline-p nil)
|
|
|
|
(set-popup-rule! "^\\*eglot-help" :size 0.2 :quit t :select t))
|
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))
|
2021-02-03 02:37:30 +01:00
|
|
|
;; Shrink terminal buffer
|
2021-06-24 12:24:29 +02:00
|
|
|
(set-popup-rule! "^\\*vterm" :size 0.1 :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
|
|
|
|
(assoc-delete-all "Jump to bookmark" +doom-dashboard-menu-sections)
|
|
|
|
(assoc-delete-all "Open private configuration" +doom-dashboard-menu-sections)
|
|
|
|
(assoc-delete-all "Open documentation" +doom-dashboard-menu-sections)
|
|
|
|
(add-to-list '+doom-dashboard-menu-sections
|
|
|
|
'("Open email client"
|
|
|
|
:icon (all-the-icons-octicon "mail" :face 'doom-dashboard-menu-title)
|
|
|
|
:when (featurep! :email mu4e)
|
|
|
|
:face (:inherit (doom-dashboard-menu-title bold))
|
|
|
|
:action =mu4e) t)
|
|
|
|
(add-to-list '+doom-dashboard-menu-sections
|
|
|
|
'("RSS reader"
|
|
|
|
:icon (all-the-icons-octicon "rss" :face 'doom-dashboard-menu-title)
|
|
|
|
:when (featurep! :app rss)
|
|
|
|
:face (:inherit (doom-dashboard-menu-title bold))
|
|
|
|
:action =rss) t)
|
2022-09-18 19:03:52 +02:00
|
|
|
(add-to-list '+doom-dashboard-menu-sections
|
|
|
|
'("Read saved articles"
|
|
|
|
:icon (all-the-icons-octicon "book" :face 'doom-dashboard-menu-title)
|
|
|
|
:face (:inherit (doom-dashboard-menu-title bold))
|
|
|
|
:action =wallabag) t)
|