Figuring out org mode and styling

This commit is contained in:
2025-11-18 15:35:53 -05:00
parent b087ee6d35
commit 69aeca9282

54
init.el
View File

@@ -12,14 +12,6 @@
(setq display-line-numbers-type 'relative)
(global-display-line-numbers-mode)
;;disable line numbers for modes where it's weird
;(dolist (mode '(org-mode-hook
; term-mode-hook
; shell-mode-hook
; eshell-mode-hook))
; (add-hook mode (lambda () (display-line-numbers-mode 0))))
;;disable file backups
(setq make-backup-files nil)
(setq create-lockfiles nil)
@@ -28,8 +20,6 @@
(setq vc-follows-symlinks t
find-file-visit-truename t)
;; sync clipboard with wayland
;; Package Manager -------------------------------------------------------------
(require 'package)
@@ -126,7 +116,26 @@
(rh/leader-keys
"t" '(:ignore t :which-key "toggles")
"tt" '(consult-theme :which-key "choose theme")))
"tt" '(consult-theme :which-key "choose theme")
"f" '(:ignore t :which-key "files")
"ff" '(find-file :which-key "find file")
"fr" '(consult-recent-file :which-key "recent files")
"fb" '(consult-buffer :which-key "switch buffer")
"o" '(:ignore t :which-key "org")
"oa" '(org-agenda :which-key "agenda")
"oc" '(org-capture :which-key "capture")
"ol" '(org-store-link :which-key "store link")
"oi" '(org-insert-link :which-key "insert link")
"ot" '(org-todo :which-key "cycle todo")
"os" '(org-schedule :which-key "schedule")
"od" '(org-deadline :which-key "deadline")
"oT" '(org-time-stamp :which-key "timestamp")
"op" '(org-priority :which-key "priority")
"ox" '(org-toggle-checkbox :which-key "toggle checkbox")
"o-" '(org-ctrl-c-minus :which-key "insert item/cycle list type")
"or" '(org-refile :which-key "refile")))
(use-package evil
:init
@@ -200,11 +209,7 @@
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(package-selected-packages
'(all-the-icons consult-projectile doom-modeline embark-consult
evil-collection general gruvbox-theme
hydra magit marginalia orderless org-bullets
rainbow-delimiters vertico visual-fill-column)))
'(package-selected-packages nil))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
@@ -216,24 +221,9 @@
(defun rh/org-mode-setup ()
(org-indent-mode)
(variable-pitch-mode 1)
(visual-line-mode 1))
(defun rh/org-font-setup ()
;; Replace list hyphen with dot
(font-lock-add-keywords 'org-mode
'(("^ *\\([-]\\) "
(0 (prog1 () (compose-region (match-beginning 1) (match-end 1) "")))))))
(use-package org
:hook (org-mode . rh/org-mode-setup)
:config
(setq org-ellipsis "")
(rh/org-font-setup))
(use-package org-bullets
:after org
:hook (org-mode . org-bullets-mode)
:custom
(org-bullets-bullet-list '("" "" "" "" "" "" "")))
(setq org-agenda-files (directory-files-recursively "~/org" "\\.org$")))