fix(emacs): call sync script from pull-diary
Signed-off-by: Lucas Sta Maria <lucas@priime.dev>
This commit is contained in:
parent
45770f7451
commit
6d6f55e3c8
1 changed files with 5 additions and 1 deletions
|
@ -67,8 +67,12 @@
|
|||
|
||||
;; Diary-syncing functionality
|
||||
(defun pull-diary ()
|
||||
"MUST sync the calendars prior to running this command"
|
||||
"Syncs the calendars directory and imports the calendars into the diary."
|
||||
(interactive)
|
||||
;; Sync the calendars directory
|
||||
(let ((default-directory (expand-file-name "~/.calendars/")))
|
||||
(shell-command "./sync" "*scratch*"))
|
||||
;; Import the calendars into the diary
|
||||
(let* ((diary-file-name (expand-file-name "~/.emacs.d/diary"))
|
||||
(calendar-dir (expand-file-name "~/.calendars/"))
|
||||
(calendar-file-suffix ".ics")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue