[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))) (call-interactively 'align-regexp)))
(defun imalison:align-whitespace () (defun imalison:align-whitespace ()
(interactive) (interactive)
(align-regexp (align-regexp (region-beginning) (region-end)
(region-beginning) (region-end) "\\(\\s-*\\)\\s-" 1 1 t))
"\\(\\s-+\\)") 0 1 t)
(defun imalison:align-to-character (character) (defun imalison:align-to-character (character)
(interactive (interactive
(list (read-string "Character to align to " "="))) (list (read-string "Character to align to " "=")))

View File

@ -58,7 +58,7 @@
(use-package org (use-package org
:straight :straight
(org :type git :host github :repo "colonelpanic8/org-mode" :local-repo "org" (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 :depth full :pre-build (straight-recipes-org-elpa--build) :build
(:not autoloads) :files (:not autoloads) :files
(:defaults "lisp/*.el" ("etc/styles/" "etc/styles/*"))) (: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!)" "BACKLOG(b!)" "|" "DONE(d!)" "HANDLED(h!)" "EXPIRED(e!)"
"CANCELED(c!)"))) "CANCELED(c!)")))
#+end_src #+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 * Config
** Miscellaneous Functions ** Miscellaneous Functions
#+begin_src emacs-lisp :tangle org-config-config.el #+begin_src emacs-lisp :tangle org-config-config.el