improve autoloads

This commit is contained in:
2025-07-04 23:58:34 +02:00
parent 09e03011d7
commit 4a4f30e3b1
15 changed files with 359 additions and 44 deletions

View File

@@ -116,16 +116,16 @@ DISPLAY-START: `integer', e.g. 3820"
(add-to-list 'window-scroll-functions #'my-window-scroll-function))
(use-package tab-bar
:commands (tab-bar-mode)
:bind ((:map global-map
(("s-{" . tab-bar-switch-to-prev-tab)
("s-}" . tab-bar-switch-to-next-tab)
("s-t" . tab-bar-new-tab)
("s-w" . tab-bar-close-tab))))
:config
;; add menu button
(add-to-list 'tab-bar-format #'tab-bar-format-menu-bar)
;; add tool bar
(require 'my-tool-bar)
(add-to-list 'tab-bar-format #'my-tool-bar-format)
@@ -175,14 +175,11 @@ DISPLAY-START: `integer', e.g. 3820"
(gnuplot-mode)
(my-view-gnuplot))))
;; not working
;; (when (display-graphic-p)
;; (setq mode-line-format nil))
(use-package awesome-tray
:defer nil
:after my-theme
:hook (after-init . awesome-tray-mode)
:init (setq mode-line-format nil)
:config
(setq awesome-tray-info-padding-right 1)
(setq awesome-tray-buffer-name-buffer-changed t)
@@ -343,17 +340,17 @@ DISPLAY-START: `integer', e.g. 3820"
(use-package page-break-lines
:delight (page-break-lines-mode "Pb") ;; "\u24C5\uFF42"
:config
(add-to-list 'page-break-lines-modes 'python-mode)
(add-to-list 'page-break-lines-modes 'ledger-mode)
(add-to-list 'page-break-lines-modes 'dashboard-mode)
(global-page-break-lines-mode))
(global-page-break-lines-mode 1))
(use-package memoize
:defer t)
(use-package all-the-icons
:defer nil
:defer t
:if (display-graphic-p)
:init (require 'all-the-icons-autoloads)
:config
(when (and (not (my-font-installed-p "all-the-icons"))
(window-system))
@@ -363,11 +360,8 @@ DISPLAY-START: `integer', e.g. 3820"
(use-package dashboard
:defer nil
;; :defer 0.1
:delight (dashboard-mode "Db") ;; "\u01F153
:after (all-the-icons)
:delight (dashboard-mode "Db") ;; "\u01F153"
:commands (dashboard-mode)
:init (require 'dashboard-autoloads)
:config
;; see `dashboad-widget'
(setq dashboard-banner-logo-title
@@ -566,7 +560,6 @@ See also `dashboard-insert-section' for the sequence of elements."
;; therefore not all levels and if toggled on and mode default off
(use-package indent-guide
:delight (indent-guide-mode "Ig") ;; "\u24BE\uFF47"
:commands (indent-guide-mode)
;;:hook (prog-mode . indent-guide-mode) ;; problem if used in notmuch
:hook (python-mode . indent-guide-mode)
:config
@@ -589,21 +582,21 @@ See also `dashboard-insert-section' for the sequence of elements."
;; )
(use-package rainbow-mode
:delight (rainbow-mode "Rb") ;; " Rbow" "\u24C7"
:commands rainbow-mode)
:defer t
:delight (rainbow-mode "Rb")) ;; " Rbow" "\u24C7"
(use-package focus
:commands focus-mode
:defer t
:custom-face (focus-unfocused ((t :inherit shadow))))
(use-package iscroll
:commands iscroll-mode
:defer t
;; :hook ((special-mode text-mode) . iscroll-mode)
)
(use-package virtual-auto-fill
:defer t
:delight (virtual-auto-fill-mode "Fv") ;; "\u24CB\uFF46"
:commands virtual-auto-fill-mode
;;:hook (help-mode . virtual-auto-fill-mode)
)