From be3c6c6696bd257a1c5340bac326e5ffc149fe58 Mon Sep 17 00:00:00 2001 From: Derek Taylor Date: Sat, 14 Sep 2024 16:40:22 -0500 Subject: [PATCH] Setting an agenda file in Emacs config. --- .config/emacs/config.el | 4 +++- .config/emacs/config.org | 21 +++++++++++++-------- 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/.config/emacs/config.el b/.config/emacs/config.el index 7361619..71473e5 100644 --- a/.config/emacs/config.el +++ b/.config/emacs/config.el @@ -517,12 +517,14 @@ (make-local-variable 'auto-hscroll-mode) (setq auto-hscroll-mode nil))))) -(eval-after-load 'org-indent '(diminish 'org-indent-mode)) +(setq org-agenda-files '("~/nc/Org/agenda.org")) (add-hook 'org-mode-hook 'org-indent-mode) (use-package org-bullets) (add-hook 'org-mode-hook (lambda () (org-bullets-mode 1))) +(eval-after-load 'org-indent '(diminish 'org-indent-mode)) + (custom-set-faces '(org-level-1 ((t (:inherit outline-1 :height 1.7)))) '(org-level-2 ((t (:inherit outline-2 :height 1.6)))) diff --git a/.config/emacs/config.org b/.config/emacs/config.org index 9770169..9337786 100644 --- a/.config/emacs/config.org +++ b/.config/emacs/config.org @@ -34,8 +34,9 @@ - [[#modeline][MODELINE]] - [[#neotree][NEOTREE]] - [[#org-mode][ORG MODE]] + - [[#agenda][Agenda]] + - [[#bullets][Bullets]] - [[#diminish-org-indent-mode][Diminish Org Indent Mode]] - - [[#org-bullets][Org-Bullets]] - [[#org-level-headers][Org Level Headers]] - [[#org-tempo][Org-Tempo]] - [[#preserve-indentation-on-org-babel-tangle][Preserve Indentation On Org-Babel-Tangle]] @@ -723,16 +724,13 @@ Neotree is a file tree viewer. When you open neotree, it jumps to the current f #+end_src * ORG MODE -** Diminish Org Indent Mode -Removes "Ind" from showing in the modeline. - +** Agenda #+begin_src emacs-lisp -(eval-after-load 'org-indent '(diminish 'org-indent-mode)) - +(setq org-agenda-files '("~/nc/Org/agenda.org")) #+end_src -** Org-Bullets -Org-bullets gives us attractive bullets rather than asterisks. +** Bullets +=Org-bullets= gives us attractive bullets rather than asterisks. #+begin_src emacs-lisp (add-hook 'org-mode-hook 'org-indent-mode) @@ -740,6 +738,13 @@ Org-bullets gives us attractive bullets rather than asterisks. (add-hook 'org-mode-hook (lambda () (org-bullets-mode 1))) #+end_src +** Diminish Org Indent Mode +Removes "Ind" from showing in the modeline. + +#+begin_src emacs-lisp +(eval-after-load 'org-indent '(diminish 'org-indent-mode)) +#+end_src + ** Org Level Headers #+begin_src emacs-lisp (custom-set-faces