Agenda and perspective changes

This commit is contained in:
Random936 2023-09-17 17:03:11 -07:00
parent 721261ab1c
commit 1724250a04

View File

@ -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. *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 #+begin_src emacs-lisp
(use-package perspective (use-package perspective
:bind :bind (("C-x b" . persp-ivy-switch-buffer)
(("C-x b" . persp-ivy-switch-buffer) ("C-x k" . persp-kill-buffer*))
("C-x k" . persp-kill-buffer*)) :custom (persp-mode-prefix-key (kbd "C-x w"))
:custom :init
(persp-mode-prefix-key (kbd "C-x w")) (persp-mode))
:init
(persp-mode))
#+end_src #+end_src
* Auto-completion * Auto-completion
@ -529,25 +527,44 @@ This installs the org package and creates a setup function to enable/disable cer
(use-package org (use-package org
:hook (org-mode . jm/org-mode-setup) :hook (org-mode . jm/org-mode-setup)
:config :config
(setq org-ellipsis " ▾") (setq org-ellipsis " ▾"
(setq org-hide-emphasis-markers t) org-hide-emphasis-markers t
(setq org-src-preserve-indentation t) org-src-preserve-indentation t
(setq org-export-with-toc nil) org-export-with-toc nil
(setq org-export-with-section-numbers nil) org-export-with-section-numbers nil
(setq org-export-with-sub-superscripts nil)) org-export-with-sub-superscripts nil))
#+end_src #+end_src
** Org Agenda ** 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/. 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 #+begin_src emacs-lisp
(defun jm/org-roam-refresh-agenda-list () (defun jm/org-roam-refresh-agenda-list ()
(interactive) (interactive)
(setq org-agenda-files (mapcar #'org-roam-node-file (org-roam-node-list)))) (setq org-agenda-files (mapcar #'org-roam-node-file (org-roam-node-list))))
#+end_src #+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 ** Cosmetics
*** Org-Bullets *** 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. Org-bullets is a package that adds bullets to each heading instead of asterisks. It just makes org files nicer to look at.