From d5bc284d3d5cf537c4fe277f73feaefc2d4e6705 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Sun, 27 Aug 2023 05:08:21 -0600 Subject: [PATCH] [Emacs] Janky org tweaks for agenda behavior --- dotfiles/emacs.d/README.org | 5 ++--- dotfiles/emacs.d/init.el | 2 +- dotfiles/emacs.d/org-config.org | 4 ++++ 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/dotfiles/emacs.d/README.org b/dotfiles/emacs.d/README.org index 76dea73a..012a4dec 100644 --- a/dotfiles/emacs.d/README.org +++ b/dotfiles/emacs.d/README.org @@ -2237,9 +2237,8 @@ I don't use auto-complete at all, so I have set up a hook to automatically disab (call-interactively 'align-regexp))) (defun imalison:align-whitespace () (interactive) - (align-regexp - (region-beginning) (region-end) - "\\(\\s-+\\)") 0 1 t) + (align-regexp (region-beginning) (region-end) + "\\(\\s-*\\)\\s-" 1 1 t)) (defun imalison:align-to-character (character) (interactive (list (read-string "Character to align to " "="))) diff --git a/dotfiles/emacs.d/init.el b/dotfiles/emacs.d/init.el index 372b1fda..3c90caf3 100644 --- a/dotfiles/emacs.d/init.el +++ b/dotfiles/emacs.d/init.el @@ -58,7 +58,7 @@ (use-package org :straight (org :type git :host github :repo "colonelpanic8/org-mode" :local-repo "org" - :branch "add-org-agenda-transient" + :branch "my-main" :depth full :pre-build (straight-recipes-org-elpa--build) :build (:not autoloads) :files (:defaults "lisp/*.el" ("etc/styles/" "etc/styles/*"))) diff --git a/dotfiles/emacs.d/org-config.org b/dotfiles/emacs.d/org-config.org index 93525bcb..71eccab1 100644 --- a/dotfiles/emacs.d/org-config.org +++ b/dotfiles/emacs.d/org-config.org @@ -128,6 +128,10 @@ We're going to use this to write separate parts of our config to different secti "BACKLOG(b!)" "|" "DONE(d!)" "HANDLED(h!)" "EXPIRED(e!)" "CANCELED(c!)"))) #+end_src +** Skip showing deadline when we are scheduled +#+begin_src emacs-lisp :tangle org-config-custom.el +(org-agenda-skip-deadline-prewarning-if-scheduled t) +#+end_src * Config ** Miscellaneous Functions #+begin_src emacs-lisp :tangle org-config-config.el