From 41dd09049f4e32196150c8461eece9593dfd3fab Mon Sep 17 00:00:00 2001 From: Christopher James Hayward Date: Mon, 1 Feb 2021 00:40:14 -0500 Subject: [PATCH] Add journal (WIP) --- README.org | 44 ++++++++++++++++++++++++++------------------ daily/20210201 | 2 ++ init.el | 14 ++++++++++++++ modules/core.el | 2 +- modules/writing.el | 16 ++++++++++++++++ 5 files changed, 59 insertions(+), 19 deletions(-) create mode 100644 daily/20210201 diff --git a/README.org b/README.org index 555c850..fcff5db 100644 --- a/README.org +++ b/README.org @@ -292,7 +292,7 @@ After a few hour with =vim= I knew it was game over, I cannot even think of anot #+begin_src emacs-lisp (use-package evil :init (setq evil-want-integration t - evil-want-keybinding nil) + evil-want-keybinding nil) :config (evil-mode 1)) #+end_src @@ -696,6 +696,28 @@ Open an agenda buffer with =SPC a=. "a" '(org-agenda :which-key "Agenda")) #+end_src +*** Journal + +#+begin_src emacs-lisp +(use-package org-journal + :config + (setq org-journal-dir (concat dotfiles/home "/daily/") + org-journal-file-type 'daily + org-journal-enable-agenda-integration t + org-icalendar-store-UID t + org-icalendar-include-todo "all" + org-icalendar-combined-agenda-file (concat dotfiles/home "calender.ics"))) +#+end_src + +#+begin_src emacs-lisp +(dotfiles/leader + "f" '(:ignore t :which-key "Journal") + "ff" '(org-journal-new-entry :which-key "New") + "fs" '(org-journal-search :which-key "Search") + "fl" '(org-journal-open-next-entry :which-key "Next") + "fh" '(org-journal-open-previous-entry :which-key "Previous")) +#+end_src + *** Blogging I use [[https://gohugo.io][Hugo]] for my personal [[https://chrishayward.xyz][website]], which I write in =Org-mode= before compiling to =hugo-markdown=. [[https://github.com/kaushalmodi/ox-hugo][Ox-hugo]], configured for =one-post-per-file= is my technique for managing my blog. @@ -742,6 +764,7 @@ Produce high quality presentations that work anywhere with =HTML/JS= and the [[h :custom (org-reveal-root "https://cdn.jsdelivr.net/reveal.js/3.9.2/")) #+end_src + ** Projects :PROPERTIES: :header-args: :tangle ~/.local/source/dotfiles/modules/projects.el :results silent @@ -829,13 +852,7 @@ Support for individual languages are implemented here. **** C/C++ -Full *IDE* experience for Python within Emacs. - -+ Completion, jumps via =lsp-mode= -+ Debugging via =dap-mode= - -Install the =ccls= language server. -+ https://github.com/MaskRay/ccls +Install the [[https://github.com/MaskRay/ccls][ccls]] language server. #+begin_src emacs-lisp (use-package ccls @@ -845,18 +862,13 @@ Install the =ccls= language server. **** Python -Full *IDE* experience for Python within Emacs. -+ Completion, jumps via =lsp-mode= -+ Debugging via =dap-mode= - Install the =pyls= language server. #+begin_src shell :tangle no pip install --user "python-language-server[all]" #+end_src -https://www.emacswiki.org/emacs/PythonProgrammingInEmacs -+ Built in mode +[[https://www.emacswiki.org/emacs/PythonProgrammingInEmacs][python-mode]] is an Emacs built in mode. #+begin_src emacs-lisp (use-package python-mode @@ -868,10 +880,6 @@ https://www.emacswiki.org/emacs/PythonProgrammingInEmacs #+end_src **** Go - -Full *IDE* experience for Rust within Emacs. -+ Completion via =lsp-mode= -+ Debugging via =dap-mode= Install the =gopls= language server. diff --git a/daily/20210201 b/daily/20210201 new file mode 100644 index 0000000..988b038 --- /dev/null +++ b/daily/20210201 @@ -0,0 +1,2 @@ +* Monday, 02/01/21 +** 00:39 Finished journal implementation:w diff --git a/init.el b/init.el index c75706d..f8743b7 100644 --- a/init.el +++ b/init.el @@ -6,3 +6,17 @@ (let ((mod-file (concat dotfiles/home "/modules/" (symbol-name m) ".el"))) (when (file-exists-p mod-file) (load-file mod-file)))) +(custom-set-variables + ;; custom-set-variables was added by Custom. + ;; If you edit it by hand, you could mess it up, so be careful. + ;; Your init file should contain only one such instance. + ;; If there is more than one, they won't work right. + '(org-agenda-files + (quote + ("/home/chris/.local/source/secrets/org/birthdays.org" "/home/chris/.local/source/secrets/org/courses.org" "/home/chris/.local/source/secrets/org/holidays.org" "/home/chris/.local/source/dotfiles/daily/20210201")))) +(custom-set-faces + ;; custom-set-faces was added by Custom. + ;; If you edit it by hand, you could mess it up, so be careful. + ;; Your init file should contain only one such instance. + ;; If there is more than one, they won't work right. + ) diff --git a/modules/core.el b/modules/core.el index 19725d4..9df9095 100644 --- a/modules/core.el +++ b/modules/core.el @@ -83,7 +83,7 @@ (use-package evil :init (setq evil-want-integration t - evil-want-keybinding nil) + evil-want-keybinding nil) :config (evil-mode 1)) (use-package evil-collection diff --git a/modules/writing.el b/modules/writing.el index 3c77181..f397b8c 100644 --- a/modules/writing.el +++ b/modules/writing.el @@ -47,6 +47,22 @@ (dotfiles/leader "a" '(org-agenda :which-key "Agenda")) +(use-package org-journal + :config + (setq org-journal-dir (concat dotfiles/home "/daily/") + org-journal-file-type 'daily + org-journal-enable-agenda-integration t + org-icalendar-store-UID t + org-icalendar-include-todo "all" + org-icalendar-combined-agenda-file (concat dotfiles/home "calender.ics"))) + +(dotfiles/leader + "f" '(:ignore t :which-key "Journal") + "ff" '(org-journal-new-entry :which-key "New") + "fs" '(org-journal-search :which-key "Search") + "fl" '(org-journal-open-next-entry :which-key "Next") + "fh" '(org-journal-open-previous-entry :which-key "Previous")) + (use-package ox-hugo :after ox)