Config: streamline config structure and reorganize modules

- Remove init-workspace.el and redundant UI/font/autothemer setup
- Add init-prog.el for programming language configs (treesit, lua, scheme, etc.)
- Defer org-refile loading via org-mode hook
- Adjust load order in init.el, add init-proxy
- Fix indentation and formatting issues
This commit is contained in:
User
2026-04-26 07:49:55 +08:00
parent c6cf0ef9d8
commit 4d810f270f
13 changed files with 205 additions and 347 deletions

View File

@@ -11,24 +11,12 @@
(setq dashboard-banner-logo-title (format "%s" emacs-version))
(setq dashboard-banner-ascii " ##### # # # # ####### # # # ##### ##### \n# # ## # # # # ## ## # # # # # # \n# # # # # # # # # # # # # # # \n# #### # # # # # ##### # # # # # # ##### \n# # # # # # # # # # ####### # # \n# # # ## # # # # # # # # # # # \n ##### # # ##### ####### # # # # ##### ##### ")
(setq dashboard-startup-banner 'ascii)
(setq dashboard-footer-messages '("hello"))
(setq dashboard-center-content t)
(setq dashboard-navigation-cycle t)
(setq dashboard-items '((recents . 15)
(bookmarks . 5)
(projects . 5)))
(add-hook 'emacs-startup-hook
(lambda()
(setq my-emacs-startup-time (format-time-string "%Y-%m-%d %H:%M:%S"))))
(defun my/dashboard-insert-copyright ()
"Insert copyright in the footer."
(dashboard-insert-center
(propertize (format "\n\nEmacs started at %s" my-emacs-startup-time)
'face 'font-lock-comment-face)))
(advice-add #'dashboard-insert-footer :after #'my/dashboard-insert-copyright)
(setq dashboard-footer-messages '(
"Hello."
"Hi."
))
(setq dashboard-item-shortcuts '((recents . "r") (bookmarks . "b") (projects . "p") (agenda . "a") (registers . "e"))))
(provide 'init-dashboard)