Browse Source

Add journal (WIP)

main
parent
commit
41dd09049f
  1. 42
      README.org
  2. 2
      daily/20210201
  3. 14
      init.el
  4. 16
      modules/writing.el

42
README.org

@ -696,6 +696,28 @@ Open an agenda buffer with =SPC a=.
"a" '(org-agenda :which-key "Agenda")) "a" '(org-agenda :which-key "Agenda"))
#+end_src #+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 *** 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. 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/")) :custom (org-reveal-root "https://cdn.jsdelivr.net/reveal.js/3.9.2/"))
#+end_src #+end_src
** Projects ** Projects
:PROPERTIES: :PROPERTIES:
:header-args: :tangle ~/.local/source/dotfiles/modules/projects.el :results silent :header-args: :tangle ~/.local/source/dotfiles/modules/projects.el :results silent
@ -829,13 +852,7 @@ Support for individual languages are implemented here.
**** C/C++ **** 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 #+begin_src emacs-lisp
(use-package ccls (use-package ccls
@ -845,18 +862,13 @@ Install the =ccls= language server.
**** Python **** Python
Full *IDE* experience for Python within Emacs.
+ Completion, jumps via =lsp-mode=
+ Debugging via =dap-mode=
Install the =pyls= language server. Install the =pyls= language server.
#+begin_src shell :tangle no #+begin_src shell :tangle no
pip install --user "python-language-server[all]" pip install --user "python-language-server[all]"
#+end_src #+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 #+begin_src emacs-lisp
(use-package python-mode (use-package python-mode
@ -869,10 +881,6 @@ https://www.emacswiki.org/emacs/PythonProgrammingInEmacs
**** Go **** Go
Full *IDE* experience for Rust within Emacs.
+ Completion via =lsp-mode=
+ Debugging via =dap-mode=
Install the =gopls= language server. Install the =gopls= language server.
#+begin_src sh :tangle no #+begin_src sh :tangle no

2
daily/20210201

@ -0,0 +1,2 @@
* Monday, 02/01/21
** 00:39 Finished journal implementation:w

14
init.el

@ -6,3 +6,17 @@
(let ((mod-file (concat dotfiles/home "/modules/" (symbol-name m) ".el"))) (let ((mod-file (concat dotfiles/home "/modules/" (symbol-name m) ".el")))
(when (file-exists-p mod-file) (when (file-exists-p mod-file)
(load-file 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.
)

16
modules/writing.el

@ -47,6 +47,22 @@
(dotfiles/leader (dotfiles/leader
"a" '(org-agenda :which-key "Agenda")) "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 (use-package ox-hugo
:after ox) :after ox)

Loading…
Cancel
Save