Browse Source

[emacs] Restrict agenda to this year

Colin Powell 4 years ago
parent
commit
c2f2a010b5
2 changed files with 6 additions and 6 deletions
  1. 2 2
      emacs/.doom.d/config.el
  2. 4 4
      emacs/.doom.d/config.org

+ 2 - 2
emacs/.doom.d/config.el

@@ -120,9 +120,9 @@
 
 (add-hook 'org-mode-hook #'doom-disable-line-numbers-h)
 
-(after! org
+ (after! org
   (setq org-directory (expand-file-name "~/var/org/")
-        org-agenda-files (list org-directory)
+        org-agenda-files (file-expand-wildcards "~/var/org/2020-*")
         org-pretty-entities t
         org-agenda-dim-blocked-tasks nil
         org-log-done 'time

+ 4 - 4
emacs/.doom.d/config.org

@@ -25,8 +25,8 @@ for it's retro charm. Nimbus just doesn't look great when I'm tired though.
 #+END_SRC
 ** Borders
 Barring the unfortunate end of X11 development and my eventual transition to
-wayland and sway, you can pry i3wm from my cold, dead hands. One problem,
-however is that when you're trying your best to rice up i3, Emacs needs a padded
+Wayland and sway, you can pry i3wm from my cold, dead hands. One problem, however
+is that when you're trying your best to rice up i3, Emacs needs a padded
 border.
 #+BEGIN_SRC emacs-lisp
 ;; Applies to current frame
@@ -179,9 +179,9 @@ A handful of mods here clean up org mode. Line numbers don’t mean much when yo
 #+BEGIN_SRC emacs-lisp
 (add-hook 'org-mode-hook #'doom-disable-line-numbers-h)
 
-(after! org
+ (after! org
   (setq org-directory (expand-file-name "~/var/org/")
-        org-agenda-files (list org-directory)
+        org-agenda-files (file-expand-wildcards "~/var/org/2020-*")
         org-pretty-entities t
         org-agenda-dim-blocked-tasks nil
         org-log-done 'time