@@ -336,7 +336,7 @@ from: https://github.com/doomemacs/doomemacs/blob/master/lisp/doom-start.el
336336 (< (float-time idle-time) doom-incremental-first-idle-timer)
337337 (not
338338 (while-no-input
339- (message "start:iloader: Loading %s (%d left)" req (length packages))
339+ ;; (message "start:iloader: Loading %s (%d left)" req (length packages))
340340 ;; If `default-directory' doesn't exist or is
341341 ;; unreadable, Emacs throws file errors.
342342 (let ((default-directory user-emacs-directory)
@@ -454,26 +454,29 @@ from: https://github.com/doomemacs/doomemacs/blob/master/lisp/doom-start.el
454454
455455 ;; 数据目录
456456 (if sys-is-windows
457- (defconst my-data -dir (expand-file-name "D:/BaiduSyncdisk "))
457+ (defconst my-docs -dir (expand-file-name "D:/Docs "))
458458 (if sys-is-wsl2
459- (defconst my-data -dir (expand-file-name "/mnt/d/BaiduSyncdisk "))
460- (defconst my-data -dir (expand-file-name "~/BaiduSyncdisk "))))
459+ (defconst my-docs -dir (expand-file-name "/mnt/d/Docs "))
460+ (defconst my-docs -dir (expand-file-name "~/Docs "))))
461461
462462 ;; 笔记目录
463- (defconst my-notes-dir (expand-file-name "Notes" my-data -dir))
463+ (defconst my-notes-dir (expand-file-name "Notes" my-docs -dir))
464464
465465 ;; 博客相关目录
466- (defconst my-blogs-dir (expand-file-name "Blogs" my-data-dir))
466+ (if sys-is-windows
467+ (defconst my-blogs-dir (expand-file-name "D:/BaiduSyncdisk/Blogs"))
468+ (if sys-is-wsl2
469+ (defconst my-blogs-dir (expand-file-name "/mnt/d/BaiduSyncdisk/Blogs"))
470+ (defconst my-blogs-dir (expand-file-name "~/BaiduSyncdisk/Blogs"))))
467471 (defconst my-blogs-org-dir (expand-file-name "org" my-blogs-dir))
468472 (defconst my-blogs-image-dir (expand-file-name "images" my-blogs-dir))
469473
470474 ;; Org 相关目录
471475 (if sys-is-windows
472- (defconst my-org-dir (expand-file-name "D:/ Org"))
476+ (defconst my-org-dir (expand-file-name "Org" my-docs-dir ))
473477 (if sys-is-wsl2
474- (defconst my-org-dir (expand-file-name "/mnt/d/Org"))
475- (defconst my-org-dir (expand-file-name "~/Org"))))
476-
478+ (defconst my-org-dir (expand-file-name "Org" my-docs-dir))
479+ (defconst my-org-dir (expand-file-name "Org" my-docs-dir))))
477480 ;; 私有文件目录
478481 (defconst my-private-dir (expand-file-name "Private" my-org-dir))
479482
@@ -772,8 +775,15 @@ ref: https://github.com/manateelazycat/auto-save
772775 (add-hook 'window-setup-hook #'my-setup-fonts)
773776 (add-hook 'server-after-make-frame-hook #'my-setup-fonts)
774777
775- (ignore-errors
776- (load-theme 'modus-operandi-tinted :no-confirm))
778+ (use-package modus-themes
779+ :straight (:type git :host github :repo "protesilaos/modus-themes")
780+ )
781+
782+ (use-package ef-themes
783+ :straight (:type git :host github :repo "protesilaos/ef-themes")
784+ :config
785+ (modus-themes-load-theme 'ef-owl)
786+ )
777787
778788 (use-package nerd-icons
779789 :straight t
@@ -2505,13 +2515,11 @@ ref:https://github.com/manateelazycat/toggle-one-window
25052515*** hugo 配置
25062516
25072517#+begin_src emacs-lisp
2508-
25092518 (if sys-is-windows
2510- (defconst my-hugo-root-dir (expand-file-name "D:/Blog"))
2511- (if sys-is-wsl2
2512- (defconst my-hugo-root-dir (expand-file-name "/mnt/d/Blog"))
2513- (defconst my-hugo-root-dir (expand-file-name "~/Blog"))))
2514-
2519+ (defconst my-hugo-root-dir (expand-file-name "D:/Blog"))
2520+ (if sys-is-wsl2
2521+ (defconst my-hugo-root-dir (expand-file-name "/mnt/d/Blog"))
2522+ (defconst my-hugo-root-dir (expand-file-name "~/Blog"))))
25152523 (defconst my-hugo-image-url "https://images.xhcoding.cn/blog")
25162524
25172525 (defconst my-hugo-post-url "https://xhcoding.cn/post/")
@@ -2677,34 +2685,34 @@ ref:https://github.com/manateelazycat/toggle-one-window
26772685** eaf 配置
26782686
26792687#+begin_src elisp
2680- (use-package eaf
2681- :ban minimal?
2682- :disabled t
2683- :straight (emacs-application-framework :type git :host github :repo "emacs-eaf/emacs-application-framework"
2684- :files ("*")
2685- :build nil)
2686- :defer t
2687- :commands (eaf-open eaf-open-browser eaf-open-this-buffer eaf-open-pdf-from-history eaf-open-cloud-music)
2688- :init
2689- ;; 手动添加到 load-path
2690- (add-to-list 'load-path (straight--repos-dir "emacs-application-framework"))
2691- :config
2692- (setq eaf-proxy-type "http")
2693- (setq eaf-proxy-host "127.0.0.1")
2694- (setq eaf-proxy-port "7890")
2695-
2696- (setq eaf-webengine-default-zoom 2.5)
2697- (when sys-is-windows
2698- (setq eaf-chrome-bookmark-file (expand-file-name "~/AppData/Local/Microsoft/Edge/User Data/Default/Bookmarks"))
2699-
2700- (defun my-eaf--enable-python-utf8-mode (environment)
2701- (append (list "PYTHONUTF8=1") environment))
2702- (advice-add 'eaf--build-process-environment :filter-return #'my-eaf--enable-python-utf8-mode))
2703- (require 'eaf-browser)
2704- (require 'eaf-pdf-viewer)
2705- (require 'eaf-org-previewer)
2706- (require 'eaf-markdown-previewer)
2707- (require 'eaf-music-player) )
2688+ (use-package eaf
2689+ :ban minimal?
2690+ :disabled t
2691+ :straight (emacs-application-framework :type git :host github :repo "emacs-eaf/emacs-application-framework"
2692+ :files ("*")
2693+ :build nil)
2694+ :defer t
2695+ :commands (eaf-open eaf-open-browser eaf-open-this-buffer eaf-open-pdf-from-history eaf-open-cloud-music)
2696+ :init
2697+ ;; 手动添加到 load-path
2698+ (add-to-list 'load-path (straight--repos-dir "emacs-application-framework"))
2699+ :config
2700+ (setq eaf-proxy-type "http")
2701+ (setq eaf-proxy-host "127.0.0.1")
2702+ (setq eaf-proxy-port "7890")
2703+
2704+ (setq eaf-webengine-default-zoom 2.5)
2705+ (when sys-is-windows
2706+ (setq eaf-chrome-bookmark-file (expand-file-name "~/AppData/Local/Microsoft/Edge/User Data/Default/Bookmarks"))
2707+
2708+ (defun my-eaf--enable-python-utf8-mode (environment)
2709+ (append (list "PYTHONUTF8=1") environment))
2710+ (advice-add 'eaf--build-process-environment :filter-return #'my-eaf--enable-python-utf8-mode))
2711+ (require 'eaf-browser)
2712+ (require 'eaf-pdf-viewer)
2713+ (require 'eaf-org-previewer)
2714+ (require 'eaf-markdown-previewer)
2715+ )
27082716
27092717#+end_src
27102718
@@ -2938,8 +2946,8 @@ Wanderlust + offlineimap3 + mu
29382946
29392947#+begin_src elisp
29402948 (use-package tex
2941- :disabled t
29422949 :ban minimal?
2950+ :hook (LaTeX-mode . my-enable-code-service)
29432951 :straight (auctex)
29442952 :defer t
29452953 :config
0 commit comments