diff options
author | Kyle Meyer <kyle@kyleam.com> | 2018-08-03 21:45:45 -0400 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2018-08-03 21:45:45 -0400 |
commit | 441ca9662eba57bc8b876b98d285072fe68c771e (patch) | |
tree | 3b818f7700b41045707042f2a0f966d1839c60d3 | |
parent | 47027856ac6d96b693a14a3aee4b1f977442ff97 (diff) | |
download | emacs.d-441ca9662eba57bc8b876b98d285072fe68c771e.tar.gz |
Overload org-agenda-goto-today
...to behave as beginning-of-buffer in non-agenda org-agenda-mode
buffers.
-rw-r--r-- | init.el | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -266,6 +266,12 @@ (org-agenda-overriding-header "Unscheduled TODO entries: "))) ("p" "Past timestamps" tags "TIMESTAMP<=\"<now>\""))) + (advice-add 'org-agenda-goto-today :around + (lambda (fn &rest args) + (if (org-agenda-check-type nil 'agenda) + (apply fn args) + (goto-char (point-min))))) + (bind-keys :map org-agenda-mode-map ;; Bind `org-agenda-follow-mode' to same key as ;; `next-error-follow-minor-mode'. |