Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c36cf31

Browse files
committed
Added: filtering by category for org mode
1 parent ec084f6 commit c36cf31

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

README.org

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,12 @@ To show agenda for the upcoming seven days set the variable ~show-week-agenda-p~
166166

167167
Note that setting list-size for the agenda list is intentionally ignored; all agenda items for the current day will be displayed.
168168

169+
To customize which categories from the agenda items should be visible in the dashboard set the ~dashboard-org-agenda-categories~ to the list of categories you need.
170+
171+
#+BEGIN_SRC elisp
172+
(setq dashboard-org-agenda-categories '("Tasks" "Appointments"))
173+
#+END_SRC
174+
169175
** Faces
170176

171177
It is possible to customize Dashboard's appearance using the following faces:

dashboard-widgets.el

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,13 @@ to the specified width, with aspect ratio preserved."
7373
:type 'boolean
7474
:group 'dashboard)
7575

76+
(defcustom dashboard-org-agenda-categories nil
77+
"Specify the Categories to consider when using agenda in dashboard.
78+
Example:
79+
'(\"Tasks\" \"Habits\")"
80+
:type 'list
81+
:group 'dashboard)
82+
7683
(defconst dashboard-banners-directory
7784
(concat (file-name-directory
7885
(locate-library "dashboard"))
@@ -99,11 +106,6 @@ The format is: 'icon title help action face prefix suffix'.
99106
Example:
100107
'((\"\" \"Star\" \"Show stars\" (lambda (&rest _) (show-stars)) 'warning \"[\" \"]\"))")
101108

102-
(defvar dashboard-org-agenda-categories nil
103-
"Specify the Categories to consider when using agenda in dashboard.
104-
Example:
105-
'(\"Tasks\" \"Habits\")")
106-
107109

108110

109111
(defvar dashboard-init-info

0 commit comments

Comments
 (0)