From 1724250a049de86b5464815b0cc1aef1967fec38 Mon Sep 17 00:00:00 2001 From: Random936 Date: Sun, 17 Sep 2023 17:03:11 -0700 Subject: [PATCH] Agenda and perspective changes --- .emacs.d/config.org | 45 +++++++++++++++++++++++++++++++-------------- 1 file changed, 31 insertions(+), 14 deletions(-) diff --git a/.emacs.d/config.org b/.emacs.d/config.org index 287e43f..b51eacb 100644 --- a/.emacs.d/config.org +++ b/.emacs.d/config.org @@ -286,14 +286,12 @@ This adds relative line numbers while excluding certain modes. *Perspective* is a package to help with managing buffers. It allows for multiple /workspaces/ or /perspectives/ which each contain their own sub list of buffers. #+begin_src emacs-lisp - (use-package perspective - :bind - (("C-x b" . persp-ivy-switch-buffer) - ("C-x k" . persp-kill-buffer*)) - :custom - (persp-mode-prefix-key (kbd "C-x w")) - :init - (persp-mode)) +(use-package perspective + :bind (("C-x b" . persp-ivy-switch-buffer) + ("C-x k" . persp-kill-buffer*)) + :custom (persp-mode-prefix-key (kbd "C-x w")) + :init + (persp-mode)) #+end_src * Auto-completion @@ -529,25 +527,44 @@ This installs the org package and creates a setup function to enable/disable cer (use-package org :hook (org-mode . jm/org-mode-setup) :config - (setq org-ellipsis " ▾") - (setq org-hide-emphasis-markers t) - (setq org-src-preserve-indentation t) - (setq org-export-with-toc nil) - (setq org-export-with-section-numbers nil) - (setq org-export-with-sub-superscripts nil)) + (setq org-ellipsis " ▾" + org-hide-emphasis-markers t + org-src-preserve-indentation t + org-export-with-toc nil + org-export-with-section-numbers nil + org-export-with-sub-superscripts nil)) #+end_src ** Org Agenda Org mode by default contains an /agenda/ system which is like a basic calendar that allows you to schedule todo items from org documents. All of the todo items from each org document are stored in a central area to allow for a formation of an /agenda/. +#+begin_src emacs-lisp +(setq org-agenda-start-with-log-mode t) +(setq org-log-done 'time) +(setq org-log-into-drawer t) +#+end_src + +*** Refresh Org Agenda Files + +Creates a function to refresh the ~org-agenda-files~ variable to be set to include all org roam notes files. + #+begin_src emacs-lisp (defun jm/org-roam-refresh-agenda-list () (interactive) (setq org-agenda-files (mapcar #'org-roam-node-file (org-roam-node-list)))) #+end_src +*** Custom States + +Adds custom states to tasks such as ~NEXT~, ~CANCELLED~, etc. + +#+begin_src emacs-lisp +(setq org-todo-keywords '((sequence "TODO(t)" "|" "DONE(d)" "CANCELLED(c)"))) +#+end_src + ** Cosmetics + *** Org-Bullets Org-bullets is a package that adds bullets to each heading instead of asterisks. It just makes org files nicer to look at.