From e3c481ac899857a90a516323cf6293465a2d8f2f Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Thu, 16 Mar 2023 11:51:57 +0100 Subject: Use org-modern. This allows me to remove lots of custom face attributes and org-bullets. Remove org-indent because it collides with org-modern. --- init.org | 86 ++++++++++++++++++++++------------------------------------------ 1 file changed, 29 insertions(+), 57 deletions(-) diff --git a/init.org b/init.org index f0e5f1c..242b29a 100644 --- a/init.org +++ b/init.org @@ -320,7 +320,6 @@ Since Emacs 25 there is a new face for quoted expressions in Info manuals. By d This is my org mode configuration. Much of it is in one big blob and I haven’t yet taken the time to document it. #+BEGIN_SRC elisp -(require 'org-indent) (setq org-ellipsis "⤵") (setq org-src-fontify-natively t) @@ -349,17 +348,37 @@ This is my org mode configuration. Much of it is in one big blob and I haven’ (setq org-fontify-done-headline t) -(require 'org-bullets) -(setq org-bullets-bullet-list '("◉" "○" "◇" "◇")) -(add-hook 'org-mode-hook - (lambda () - (org-bullets-mode 1) - (variable-pitch-mode 1) - (visual-line-mode 1))) (defun gtd () (interactive) (find-file (concat org-directory "/master.org"))) +(use-package org-modern + :after org + :init + (set-face-background 'org-block-begin-line (face-attribute 'default :background)) + (setq + ;; Edit settings + org-auto-align-tags nil + org-tags-column 0 + org-fold-catch-invisible-edits 'show-and-error + org-special-ctrl-a/e t + org-insert-heading-respect-content t + + ;; Org styling, hide markup etc. + org-hide-emphasis-markers t + org-pretty-entities t + org-ellipsis "…" + + ;; Agenda styling + org-agenda-tags-column 0 + org-agenda-block-separator ?─ + org-agenda-time-grid + '((daily today require-timed) + (800 1000 1200 1400 1600 1800 2000) + " ┄┄┄┄┄ " "┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄") + org-agenda-current-time-string + "⭠ now ─────────────────────────────────────────────────") + (global-org-modern-mode)) #+END_SRC I can never remember the syntax for babel blocks. With =org-tempo= I can type =