Emacs config optimizations

This commit is contained in:
Emmet 2024-01-01 21:54:01 -06:00
parent 5d4f2d6536
commit 4eb54c3fe6
2 changed files with 3 additions and 7 deletions

View file

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

View file

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