Org: Show first agenda in switcher

master
Pierre Neidhardt 2019-03-08 09:48:13 +01:00
parent 36fa9eb3e2
commit ab00dfab98
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@
(lambda (b)
(when (buffer-file-name b)
(member (file-truename (buffer-file-name b)) (mapcar #'file-truename org-agenda-files))))
(lambda () (find-file-noselect (car org-agenda-files)))
(lambda () (find-file (car org-agenda-files)))
nil
(helm-make-source "Org agenda files" 'helm-source-ffiles
;; Unclear why, but if we don't copy the list, the last element gets removed.