From d9ca60c493863ffa7921ef2b2ad2269eed2aea1c Mon Sep 17 00:00:00 2001 From: JaeYoo-Im Date: Tue, 25 Jan 2022 12:12:37 +0900 Subject: [PATCH] Emacs : Google Calendar (org capture) --- .emacs.d/emacs.org | 21 +++++++++++++++++++++ .ssh/config | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/.emacs.d/emacs.org b/.emacs.d/emacs.org index 7ee04c8..b46af14 100644 --- a/.emacs.d/emacs.org +++ b/.emacs.d/emacs.org @@ -231,6 +231,7 @@ https://nathantypanski.com/blog/2014-08-03-a-vim-like-emacs-config.html (tool-bar-mode -1) ; Disable the toolbar (tooltip-mode -1) ; Disable tooltips (set-fringe-mode 10) ; Give some breathing room + (xterm-mouse-mode) (menu-bar-mode -1) ; Disable the menu bar ;;(setq visible-bell t) @@ -1283,6 +1284,26 @@ https://emacs.stackexchange.com/a/30691 org-gcal-file-alist '(("cpu3792@gmail.com" . "~/Roam/gcal.org")))) (add-hook 'org-agenda-mode-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 * EDiff diff --git a/.ssh/config b/.ssh/config index f7836c8..54499e4 100644 --- a/.ssh/config +++ b/.ssh/config @@ -1,6 +1,6 @@ ################################################################### Host ju-server - User jaeus + User root # NOTE : Do not commit for security Hostname 192.168.0.125 Port 13792