From c79a6ede22d4b2c4efda40f0096c3ab7cc13d1bd Mon Sep 17 00:00:00 2001 From: James Patrick Date: Mon, 5 Feb 2024 09:59:38 -0500 Subject: [PATCH] Formatting --- emacs/+orgmode.el | 20 +++++++++----------- emacs/config.org | 20 +++++++++----------- 2 files changed, 18 insertions(+), 22 deletions(-) diff --git a/emacs/+orgmode.el b/emacs/+orgmode.el index b88d51c..8f04bc4 100644 --- a/emacs/+orgmode.el +++ b/emacs/+orgmode.el @@ -6,16 +6,14 @@ (custom-set-variables '(org-directory "~/org/")) -(setq - org-download-image-dir (concat org-directory ".attach/")) +(setq org-download-image-dir (concat org-directory ".attach/")) -(setq - org-roam-directory (concat org-directory "Roam/")) +(setq org-roam-directory (concat org-directory "Roam/")) (setq org-agenda-files (list (concat org-directory "Todos/" ))) (defvar-local +org-capture-work-todo-file - (expand-file-name "Work/todo.org" org-directory)) + (expand-file-name "Work/todo.org" org-directory)) (add-to-list 'org-capture-templates '("w" "Work Todo" entry (file+headline +org-capture-work-todo-file "Inbox") @@ -32,12 +30,12 @@ (0.0 . org-upcoming-distant-deadline))) (add-hook 'org-mode-hook (lambda () - "Beautify Org Checkbox Symbol"` - (push '("[ ]" . "☐") prettify-symbols-alist) - (push '("[_]" . "☐") prettify-symbols-alist) - (push '("[X]" . "☑" ) prettify-symbols-alist) - (push '("[-]" . "⊟" ) prettify-symbols-alist) - (prettify-symbols-mode))) + "Beautify Org Checkbox Symbol"` + (push '("[ ]" . "☐") prettify-symbols-alist) + (push '("[_]" . "☐") prettify-symbols-alist) + (push '("[X]" . "☑" ) prettify-symbols-alist) + (push '("[-]" . "⊟" ) prettify-symbols-alist) + (prettify-symbols-mode))) (setq prettify-symbols-unprettify-at-point 'right-edge) diff --git a/emacs/config.org b/emacs/config.org index 05c5b4f..65f5079 100644 --- a/emacs/config.org +++ b/emacs/config.org @@ -645,8 +645,7 @@ Where old files go. See =org-archive-subtree= for more. Stuff that is not an orgmode document. #+begin_src emacs-lisp :tangle "+orgmode.el" :noweb no-export :comments no -(setq - org-download-image-dir (concat org-directory ".attach/")) +(setq org-download-image-dir (concat org-directory ".attach/")) #+end_src *** =Projects= @@ -655,8 +654,7 @@ I keep a =todo.org= at the root of each project. These are symlinked into the Pr *** =Roam= All roam docs go here. This is my default note taking system. #+begin_src emacs-lisp :tangle "+orgmode.el" :noweb no-export :comments no -(setq - org-roam-directory (concat org-directory "Roam/")) +(setq org-roam-directory (concat org-directory "Roam/")) #+end_src *** =Todo= Another symlink dir. This is used to populate org agenda files. @@ -675,7 +673,7 @@ I still want to capture work related notes where ever I am though. #+begin_src emacs-lisp :tangle "+orgmode.el" :noweb no-export :comments no (defvar-local +org-capture-work-todo-file - (expand-file-name "Work/todo.org" org-directory)) + (expand-file-name "Work/todo.org" org-directory)) (add-to-list 'org-capture-templates '("w" "Work Todo" entry (file+headline +org-capture-work-todo-file "Inbox") @@ -706,12 +704,12 @@ This uses =doom-variable-pitch-font= as defined in the font section. There is a few of these built into the =orgmode='s =+pretty= module. Checkboxes are not included so lets include it. #+begin_src emacs-lisp :tangle "+orgmode.el" :noweb no-export :comments no (add-hook 'org-mode-hook (lambda () - "Beautify Org Checkbox Symbol"` - (push '("[ ]" . "☐") prettify-symbols-alist) - (push '("[_]" . "☐") prettify-symbols-alist) - (push '("[X]" . "☑" ) prettify-symbols-alist) - (push '("[-]" . "⊟" ) prettify-symbols-alist) - (prettify-symbols-mode))) + "Beautify Org Checkbox Symbol"` + (push '("[ ]" . "☐") prettify-symbols-alist) + (push '("[_]" . "☐") prettify-symbols-alist) + (push '("[X]" . "☑" ) prettify-symbols-alist) + (push '("[-]" . "⊟" ) prettify-symbols-alist) + (prettify-symbols-mode))) #+end_src And when you hover over it, disable it.