Reapply "feat(config): Switch to dark theme and enable"

This reverts commit d78e61c800.
This commit is contained in:
Zelong Kuang
2025-12-06 15:31:50 +11:00
parent 7108760718
commit 60de3333b6
3 changed files with 24 additions and 32 deletions

View File

@@ -18,7 +18,7 @@
(add-to-list 'default-frame-alist '(width . 100)))) (add-to-list 'default-frame-alist '(width . 100))))
(setq catppuccin-flavor 'catppuccin) (setq catppuccin-flavor 'catppuccin)
(setq doom-theme 'modus-operandi) (setq doom-theme 'modus-vivendi-tritanopia)
(setq display-line-numbers-type 'relative) (setq display-line-numbers-type 'relative)
(setq org-directory "~/org/") (setq org-directory "~/org/")
@@ -159,4 +159,4 @@
#'my/org-latex-preview-uncenter))) #'my/org-latex-preview-uncenter)))
) )
;; (add-to-list 'org-modules 'org-habit) (add-to-list 'org-modules 'org-habit)

View File

@@ -29,7 +29,7 @@
(add-to-list 'default-frame-alist '(width . 100)))) (add-to-list 'default-frame-alist '(width . 100))))
(setq catppuccin-flavor 'catppuccin) (setq catppuccin-flavor 'catppuccin)
(setq doom-theme 'modus-operandi) (setq doom-theme 'modus-vivendi-tritanopia)
(setq display-line-numbers-type 'relative) (setq display-line-numbers-type 'relative)
(setq org-directory "~/org/") (setq org-directory "~/org/")
#+end_src #+end_src
@@ -199,12 +199,12 @@ Thisenables the feature of auto-expanding snippets when matching the pattern
*** Org *** Org
#+begin_src emacs-lisp :tangle packages.el #+begin_src emacs-lisp :tangle packages.el
(package! org :recipe (package! org :recipe
(:host nil :repo "https://code.tecosaur.net/mirrors/org-mode.git" (:host nil :repo "https://code.tecosaur.net/mirrors/org-mode.git" :remote "mirror" :fork
:remote "mirror" :fork (:host nil :repo "https://code.tecosaur.net/tec/org-mode.git" :branch "dev" :remote "tecosaur")
(:host nil :repo "https://code.tecosaur.net/tec/org-mode.git" :files
:branch "dev" :remote "tecosaur") (:defaults "etc")
:files (:defaults "etc") :build t :pre-build :build t :pre-build
(with-temp-file "lisp/org-version.el" (with-temp-file "org-version.el"
(require 'lisp-mnt) (require 'lisp-mnt)
(let (let
((version ((version
@@ -214,18 +214,14 @@ Thisenables the feature of auto-expanding snippets when matching the pattern
(git-version (git-version
(string-trim (string-trim
(with-temp-buffer (with-temp-buffer
(call-process "git" nil t nil "rev-parse" (call-process "git" nil t nil "rev-parse" "--short" "HEAD")
"--short" "HEAD")
(buffer-string))))) (buffer-string)))))
(insert (insert
(format (format "(defun org-release () \"The release version of Org.\" %S)\n" version)
"(defun org-release () \"The release version of Org.\" %S)\n" (format "(defun org-git-version () \"The truncate git commit hash of Org mode.\" %S)\n" git-version)
version)
(format
"(defun org-git-version () \"The truncate git commit hash of Org mode.\" %S)\n"
git-version)
"(provide 'org-version)\n")))) "(provide 'org-version)\n"))))
:pin nil) :pin nil)
(unpin! org) (unpin! org)
#+end_src #+end_src
**** Latex live-preview (fast) **** Latex live-preview (fast)
@@ -310,5 +306,5 @@ Thisenables the feature of auto-expanding snippets when matching the pattern
#+end_src #+end_src
**** org habit **** org habit
#+begin_src emacs-lisp #+begin_src emacs-lisp
;; (add-to-list 'org-modules 'org-habit) (add-to-list 'org-modules 'org-habit)
#+end_src #+end_src

View File

@@ -14,12 +14,12 @@
:recipe (:host github :repo "havarddj/typst-preview.el")) :recipe (:host github :repo "havarddj/typst-preview.el"))
(package! org :recipe (package! org :recipe
(:host nil :repo "https://code.tecosaur.net/mirrors/org-mode.git" (:host nil :repo "https://code.tecosaur.net/mirrors/org-mode.git" :remote "mirror" :fork
:remote "mirror" :fork (:host nil :repo "https://code.tecosaur.net/tec/org-mode.git" :branch "dev" :remote "tecosaur")
(:host nil :repo "https://code.tecosaur.net/tec/org-mode.git" :files
:branch "dev" :remote "tecosaur") (:defaults "etc")
:files (:defaults "etc") :build t :pre-build :build t :pre-build
(with-temp-file "lisp/org-version.el" (with-temp-file "org-version.el"
(require 'lisp-mnt) (require 'lisp-mnt)
(let (let
((version ((version
@@ -29,16 +29,12 @@
(git-version (git-version
(string-trim (string-trim
(with-temp-buffer (with-temp-buffer
(call-process "git" nil t nil "rev-parse" (call-process "git" nil t nil "rev-parse" "--short" "HEAD")
"--short" "HEAD")
(buffer-string))))) (buffer-string)))))
(insert (insert
(format (format "(defun org-release () \"The release version of Org.\" %S)\n" version)
"(defun org-release () \"The release version of Org.\" %S)\n" (format "(defun org-git-version () \"The truncate git commit hash of Org mode.\" %S)\n" git-version)
version)
(format
"(defun org-git-version () \"The truncate git commit hash of Org mode.\" %S)\n"
git-version)
"(provide 'org-version)\n")))) "(provide 'org-version)\n"))))
:pin nil) :pin nil)
(unpin! org) (unpin! org)