From 220ad644dd31cdeb7017a16286f5f95c7063e26c Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Fri, 18 Oct 2019 11:16:08 -0700 Subject: [PATCH] Set org-list-description-max-indent It's always bothered me that a description list in org-mode might be indented quite a bit if the terms aren't long enough. With this change they'll always indent the same way, using 5 spaces. --- oni-org/oni-org.el | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/oni-org/oni-org.el b/oni-org/oni-org.el index 5757e9c..b39f167 100644 --- a/oni-org/oni-org.el +++ b/oni-org/oni-org.el @@ -4,7 +4,7 @@ ;; Author: Tom Willemse ;; Keywords: local -;; Version: 2019.0916.204933 +;; Version: 2019.1018.111142 ;; Package-Requires: (oni-yasnippet org-plus-contrib org-bullets hydra org-wild-notifier) ;; This program is free software; you can redistribute it and/or modify @@ -140,6 +140,7 @@ After running it once remove it from `org-capture-after-finalize-hook'." (setq org-default-notes-file (oni-org-expand-to-home "documents/gtd/inbox.org")) + (setq org-src-fontify-natively t) (setq org-return-follows-link t) (setq org-fontify-whole-heading-line t) @@ -151,6 +152,12 @@ After running it once remove it from `org-capture-after-finalize-hook'." (setq org-agenda-skip-function-global #'oni-org-skip-tasks) (setq org-clock-in-switch-to-state #'oni-org-maybe-change-todo-state) +;;; Set the maximum indentation level for description lists to 5 (which is the +;;; seemingly hardcoded value of the indentation it gets when it goes over +;;; ‘org-list-description-max-indent’) so that I don’t get dangling descriptions +;;; when my term is 19 characters long. +(setq org-list-description-max-indent 5) + (setq org-agenda-custom-commands '(("c" "Today's (Current) tasks" tags "SCHEDULED=\"\"")))