From 4eb54c3fe6b52a7b3f1ad9773b4f9ab2e42d1058 Mon Sep 17 00:00:00 2001 From: Emmet Date: Mon, 1 Jan 2024 21:54:01 -0600 Subject: [PATCH] Emacs config optimizations --- user/app/doom-emacs/config.el | 2 -- user/app/doom-emacs/doom.org | 8 +++----- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/user/app/doom-emacs/config.el b/user/app/doom-emacs/config.el index ccc8da0..1e87fcd 100644 --- a/user/app/doom-emacs/config.el +++ b/user/app/doom-emacs/config.el @@ -903,7 +903,6 @@ tasks." "V" 'kill-org-roam-ui) ;;;------ Org agenda configuration ------;;; - ;; Set span for agenda to be just daily (setq org-agenda-span 1 org-agenda-start-day "+0d" @@ -922,7 +921,6 @@ tasks." '(org-super-agenda-header :inherit custom-button :weight bold :height 1.05) ) - ;; Toggle completed entries function (defun org-agenda-toggle-completed () (interactive) diff --git a/user/app/doom-emacs/doom.org b/user/app/doom-emacs/doom.org index 7411cb4..959938e 100644 --- a/user/app/doom-emacs/doom.org +++ b/user/app/doom-emacs/doom.org @@ -1061,7 +1061,6 @@ On Wayland, EAF doesn't work. *** Standard Org Agenda Configuration #+BEGIN_SRC emacs-lisp :tangle config.el ;;;------ Org agenda configuration ------;;; - ;; Set span for agenda to be just daily (setq org-agenda-span 1 org-agenda-start-day "+0d" @@ -1080,7 +1079,6 @@ On Wayland, EAF doesn't work. '(org-super-agenda-header :inherit custom-button :weight bold :height 1.05) ) - ;; Toggle completed entries function (defun org-agenda-toggle-completed () (interactive) @@ -1118,6 +1116,9 @@ On Wayland, EAF doesn't work. ("Personal.p" ,(list (all-the-icons-material "person" :height 0.9)) nil nil :ascent center) )) +#+END_SRC +*** Org Agenda Convenience Functions +#+BEGIN_SRC emacs-lisp :tangle config.el (defun org-categorize-by-roam-db-on-save () (interactive) (when (string= (message "%s" major-mode) "org-mode") @@ -1166,9 +1167,6 @@ On Wayland, EAF doesn't work. (revert-buffer nil 'noconfirm))))) (org-agenda-files))) -#+END_SRC -*** Org Agenda Convenience Functions -#+BEGIN_SRC emacs-lisp :tangle config.el ;; Function to list all my available org agenda files and switch to them (defun list-and-switch-to-agenda-file () "Lists all available agenda files and switches to desired one"