feat(org): Add org-modern-indent and enhance org configuration

- Add org-modern-indent package for improved visual indentation
- Enable org-indent-mode hook for org-mode Change org-modules from
- setq to add-to-list for org-habit Add custom TODO keywords
- sequence with IN-PROGRESS state Comment out browse-kill-ring
- package configuration
This commit is contained in:
Zelong Kuang
2025-12-15 20:12:23 +11:00
parent ddfbc45d94
commit 919a73e896
3 changed files with 14 additions and 7 deletions

View File

@@ -38,10 +38,10 @@
([remap mark-sexp] . easy-mark)))
;; Interactively insert and edit items from kill-ring
(use-package browse-kill-ring
:hook (elpaca-after-init . browse-kill-ring-default-keybindings)
:init (setq browse-kill-ring-separator "────────────────"
browse-kill-ring-separator-face 'shadow))
;; (use-package browse-kill-ring
;; :hook (elpaca-after-init . browse-kill-ring-default-keybindings)
;; :init (setq browse-kill-ring-separator "────────────────"
;; browse-kill-ring-separator-face 'shadow))
(use-package exec-path-from-shell
:init

View File

@@ -9,17 +9,18 @@
:defer
:ensure `(org :repo "https://code.tecosaur.net/tec/org-mode.git/"
:branch "dev")
;; :hook (org-mode . org-indent-mode)
:hook (org-mode . org-indent-mode)
:config
;; (org-capture-init)
(setq org-modules '(org-habit))
(add-to-list 'org-modules 'org-habit)
(setq org-directory "~/org/")
(add-to-list 'org-agenda-files "~/org")
(setq org-highlight-latex-and-related '(native latex entities))
(setq org-pretty-entities t)
(setq org-pretty-entities-include-sub-superscripts nil)
)
(setq org-todo-keywords
'((sequence "TODO(t)" "IN-PROGRESS(i)" "|" "DONE(d)" "NO(n)"))))
(use-package org-contrib)
@@ -35,6 +36,12 @@
org-pretty-entities t))
:config
(setq org-modern-table nil))
(use-package org-modern-indent
:ensure (org-modern-indent :type git :host github :repo "jdtsmith/org-modern-indent")
:config ; add late to hook
(add-hook 'org-mode-hook #'org-modern-indent-mode 90))
(use-package org-appear
:defer)