Emacs : Google Calendar (org capture)

This commit is contained in:
2022-01-25 12:12:37 +09:00
parent 8fb00d16bd
commit d9ca60c493
2 changed files with 22 additions and 1 deletions

View File

@ -231,6 +231,7 @@ https://nathantypanski.com/blog/2014-08-03-a-vim-like-emacs-config.html
(tool-bar-mode -1) ; Disable the toolbar (tool-bar-mode -1) ; Disable the toolbar
(tooltip-mode -1) ; Disable tooltips (tooltip-mode -1) ; Disable tooltips
(set-fringe-mode 10) ; Give some breathing room (set-fringe-mode 10) ; Give some breathing room
(xterm-mouse-mode)
(menu-bar-mode -1) ; Disable the menu bar (menu-bar-mode -1) ; Disable the menu bar
;;(setq visible-bell t) ;;(setq visible-bell t)
@ -1283,6 +1284,26 @@ https://emacs.stackexchange.com/a/30691
org-gcal-file-alist '(("cpu3792@gmail.com" . "~/Roam/gcal.org")))) org-gcal-file-alist '(("cpu3792@gmail.com" . "~/Roam/gcal.org"))))
(add-hook 'org-agenda-mode-hook (lambda () (org-gcal-sync) )) (add-hook 'org-agenda-mode-hook (lambda () (org-gcal-sync) ))
(add-hook 'org-capture-after-finalize-hook (lambda () (org-gcal-sync) )) (add-hook 'org-capture-after-finalize-hook (lambda () (org-gcal-sync) ))
(add-to-list 'org-agenda-files "~/Roam/Agenda/gcal.org")
;;(add-to-list 'org-agenda-files "~/Roam/Agenda/links.org")
;;(add-to-list 'org-agenda-files "~/Roam/Agenda/i.org")
(setq org-capture-templates
'(("a" "Appointment" entry (file "~/Roam/Agenda/gcal.org" )
"* %?\n\n%^T\n\n:PROPERTIES:\n\n:END:\n\n")
("l" "Link" entry (file+headline "~/Roam/Agenda/links.org" "Links")
"* %? %^L %^g \n%T" :prepend t)
("b" "Blog idea" entry (file+headline "~/Roam/Agenda/i.org" "Blog Topics:")
"* %?\n%T" :prepend t)
("t" "To Do Item" entry (file+headline "~/Roam/Agenda/i.org" "To Do")
"* TODO %?\n%u" :prepend t)
("n" "Note" entry (file+headline "~/Roam/Agenda/i.org" "Note space")
"* %?\n%u" :prepend t)
("j" "Journal" entry (file+datetree "~/Roam/Agenda/journal.org")
"* %?\nEntered on %U\n %i\n %a")
("s" "Screencast" entry (file "~/Roam/Agenda/screencastnotes.org")
"* %?\n%i\n")))
#+end_src #+end_src
* EDiff * EDiff

View File

@ -1,6 +1,6 @@
################################################################### ###################################################################
Host ju-server Host ju-server
User jaeus User root
# NOTE : Do not commit for security # NOTE : Do not commit for security
Hostname 192.168.0.125 Hostname 192.168.0.125
Port 13792 Port 13792