[Emacs] Janky org tweaks for agenda behavior

This commit is contained in:
Ivan Malison 2023-08-27 05:08:21 -06:00
parent 989f9189be
commit d5bc284d3d
3 changed files with 7 additions and 4 deletions

View File

@ -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 " "=")))

View File

@ -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/*")))

View File

@ -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