mirror of
https://github.com/librephoenix/nixos-config
synced 2025-04-21 01:34:34 +05:30
Improved comment on agenda syncthing fix
This commit is contained in:
parent
e1c7251a70
commit
e811f2582d
|
@ -944,8 +944,9 @@ tasks."
|
||||||
;; Adds hook to org agenda mode, making follow mode active in org agenda
|
;; Adds hook to org agenda mode, making follow mode active in org agenda
|
||||||
(add-hook 'org-agenda-mode-hook 'org-agenda-open-hook)
|
(add-hook 'org-agenda-mode-hook 'org-agenda-open-hook)
|
||||||
|
|
||||||
;; Auto updates agenda on syncthing changes
|
;; Easy refreshes on org agenda for syncthing file changes
|
||||||
;; from https://www.reddit.com/r/orgmode/comments/mu6n5b/org_agenda_auto_updating/
|
;; adapted from https://www.reddit.com/r/orgmode/comments/mu6n5b/org_agenda_auto_updating/
|
||||||
|
;; and https://lists.gnu.org/archive/html/help-gnu-emacs/2008-12/msg00435.html
|
||||||
(defadvice org-agenda-list (before refresh-org-agenda-on-revert activate)
|
(defadvice org-agenda-list (before refresh-org-agenda-on-revert activate)
|
||||||
(mapc (lambda (file)
|
(mapc (lambda (file)
|
||||||
(unless (verify-visited-file-modtime (get-file-buffer file))
|
(unless (verify-visited-file-modtime (get-file-buffer file))
|
||||||
|
|
|
@ -1097,8 +1097,9 @@ On Wayland, EAF doesn't work.
|
||||||
;; Adds hook to org agenda mode, making follow mode active in org agenda
|
;; Adds hook to org agenda mode, making follow mode active in org agenda
|
||||||
(add-hook 'org-agenda-mode-hook 'org-agenda-open-hook)
|
(add-hook 'org-agenda-mode-hook 'org-agenda-open-hook)
|
||||||
|
|
||||||
;; Auto updates agenda on syncthing changes
|
;; Easy refreshes on org agenda for syncthing file changes
|
||||||
;; from https://www.reddit.com/r/orgmode/comments/mu6n5b/org_agenda_auto_updating/
|
;; adapted from https://www.reddit.com/r/orgmode/comments/mu6n5b/org_agenda_auto_updating/
|
||||||
|
;; and https://lists.gnu.org/archive/html/help-gnu-emacs/2008-12/msg00435.html
|
||||||
(defadvice org-agenda-list (before refresh-org-agenda-on-revert activate)
|
(defadvice org-agenda-list (before refresh-org-agenda-on-revert activate)
|
||||||
(mapc (lambda (file)
|
(mapc (lambda (file)
|
||||||
(unless (verify-visited-file-modtime (get-file-buffer file))
|
(unless (verify-visited-file-modtime (get-file-buffer file))
|
||||||
|
|
Loading…
Reference in a new issue