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

Skip to content

Fix #353 space between todo and headline. #355

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions dashboard-widgets.el
Original file line number Diff line number Diff line change
Expand Up @@ -1101,15 +1101,12 @@ When the dashboard-agenda is created this format is inserted into
(add-face-text-property 0 (length headline) org-level-face t headline))
(when (null (get-text-property 0 'face todo-state))
(add-face-text-property 0 (length todo-state) (org-get-todo-face todo) t todo-state))
(concat todo-state headline)))
(concat todo-state " " headline)))

(defun dashboard-agenda--formatted-time ()
"Get the scheduled or dead time of an entry.
If no time is found return an empty string to be formatted."
(let* ((schedule-time (org-get-scheduled-time (point)))
(deadline-time (org-get-deadline-time (point)))
(time (or schedule-time deadline-time)))
(if time (format-time-string dashboard-agenda-time-string-format time) " ")))
"Get the scheduled or dead time of an entry. If no time is found return nil."
(if-let ((time (or (org-get-scheduled-time (point)) (org-get-deadline-time (point)))))
(format-time-string dashboard-agenda-time-string-format time)))

(defun dashboard-due-date-for-agenda ()
"Return due-date for agenda period."
Expand Down Expand Up @@ -1147,7 +1144,9 @@ if returns a point."

(defun dashboard-get-agenda ()
"Get agenda items for today or for a week from now."
(add-to-list 'org-agenda-prefix-format (cons 'dashboard-agenda dashboard-agenda-prefix-format))
(if-let ((prefix-format (assoc 'dashboard-agenda org-agenda-prefix-format)))
(setcdr prefix-format dashboard-agenda-prefix-format)
(push (cons 'dashboard-agenda dashboard-agenda-prefix-format) org-agenda-prefix-format))
(org-compile-prefix-format 'dashboard-agenda)
(prog1 (org-map-entries 'dashboard-agenda-entry-format
dashboard-match-agenda-entry
Expand Down