Compare commits
3 Commits
55fc91233d
...
b6e0a698e6
Author | SHA1 | Date |
---|---|---|
coolneng | b6e0a698e6 | |
coolneng | 039cacf3dd | |
coolneng | 39c23de25f |
56
+ui.el
56
+ui.el
|
@ -37,26 +37,42 @@
|
||||||
;; Show matching parenthesis on the minibuffer
|
;; Show matching parenthesis on the minibuffer
|
||||||
(after! smartparens (show-smartparens-global-mode t))
|
(after! smartparens (show-smartparens-global-mode t))
|
||||||
;; Modify the splash screen actions
|
;; Modify the splash screen actions
|
||||||
(assoc-delete-all "Jump to bookmark" +doom-dashboard-menu-sections)
|
(setq +doom-dashboard-menu-sections
|
||||||
(assoc-delete-all "Open private configuration" +doom-dashboard-menu-sections)
|
'(("Reload last session"
|
||||||
(assoc-delete-all "Open documentation" +doom-dashboard-menu-sections)
|
:icon (all-the-icons-octicon "history" :face 'doom-dashboard-menu-title)
|
||||||
(add-to-list '+doom-dashboard-menu-sections
|
:when (cond ((modulep! :ui workspaces)
|
||||||
'("Open email client"
|
(file-exists-p (expand-file-name persp-auto-save-fname persp-save-dir)))
|
||||||
:icon (all-the-icons-octicon "mail" :face 'doom-dashboard-menu-title)
|
((require 'desktop nil t)
|
||||||
:when (featurep! :email mu4e)
|
(file-exists-p (desktop-full-file-name))))
|
||||||
:face (:inherit (doom-dashboard-menu-title bold))
|
:face (:inherit (doom-dashboard-menu-title bold))
|
||||||
:action =mu4e) t)
|
:action doom/quickload-session)
|
||||||
(add-to-list '+doom-dashboard-menu-sections
|
("Open org-agenda"
|
||||||
'("RSS reader"
|
:icon (all-the-icons-octicon "calendar" :face 'doom-dashboard-menu-title)
|
||||||
:icon (all-the-icons-octicon "rss" :face 'doom-dashboard-menu-title)
|
:when (fboundp 'org-agenda)
|
||||||
:when (featurep! :app rss)
|
:action org-agenda)
|
||||||
:face (:inherit (doom-dashboard-menu-title bold))
|
("Recently opened files"
|
||||||
:action =rss) t)
|
:icon (all-the-icons-octicon "file-text" :face 'doom-dashboard-menu-title)
|
||||||
(add-to-list '+doom-dashboard-menu-sections
|
:action recentf-open-files)
|
||||||
'("Read saved articles"
|
("Open email client"
|
||||||
:icon (all-the-icons-octicon "book" :face 'doom-dashboard-menu-title)
|
:icon (all-the-icons-octicon "mail" :face 'doom-dashboard-menu-title)
|
||||||
:face (:inherit (doom-dashboard-menu-title bold))
|
:when (featurep! :email mu4e)
|
||||||
:action =wallabag) t)
|
:face (:inherit (doom-dashboard-menu-title bold))
|
||||||
|
:action =mu4e)
|
||||||
|
("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)
|
||||||
|
("Read saved articles"
|
||||||
|
:icon (all-the-icons-octicon "book" :face 'doom-dashboard-menu-title)
|
||||||
|
: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."))
|
||||||
;; Decrease size of icons in the modeline
|
;; Decrease size of icons in the modeline
|
||||||
(setq all-the-icons-scale-factor 1.0)
|
(setq all-the-icons-scale-factor 1.0)
|
||||||
;; Increase size of the PlatformIO compilation buffer
|
;; Increase size of the PlatformIO compilation buffer
|
||||||
|
|
|
@ -137,7 +137,7 @@
|
||||||
(let ((inhibit-read-only t)
|
(let ((inhibit-read-only t)
|
||||||
(inhibit-modification-hooks t))
|
(inhibit-modification-hooks t))
|
||||||
(visual-fill-column-mode)
|
(visual-fill-column-mode)
|
||||||
(setq-local shr-current-font '(:family "Raleway" :height 1.1))
|
(setq-local shr-current-font '(:family "Lato" :height 1.1))
|
||||||
(set-buffer-modified-p nil))))
|
(set-buffer-modified-p nil))))
|
||||||
;; Set up the mail stack
|
;; Set up the mail stack
|
||||||
(after! mu4e (load! "+mail"))
|
(after! mu4e (load! "+mail"))
|
||||||
|
@ -161,3 +161,5 @@
|
||||||
(global-centered-cursor-mode))
|
(global-centered-cursor-mode))
|
||||||
;; Enable smooth scrolling
|
;; Enable smooth scrolling
|
||||||
(pixel-scroll-precision-mode)
|
(pixel-scroll-precision-mode)
|
||||||
|
;; Restore previous session on startup
|
||||||
|
(add-hook 'window-setup-hook #'doom/quickload-session)
|
||||||
|
|
Loading…
Reference in New Issue