Browse Source

Update module names

main
parent
commit
569ee1eaf9
  1. 5
      elisp/options.el
  2. 8
      modules/elfeed.org
  3. 36
      modules/hugo.org

5
elisp/options.el

@ -8,13 +8,12 @@
keys evil dired magit keys evil dired magit
shell shell
email email
feeds
elfeed
eshell vterm eshell vterm
passwords pinentry passwords pinentry
desktop desktop
roam agenda spelling grammar roam agenda spelling grammar
reveal
website
reveal hugo
capture capture
projects projects
development development

8
modules/feeds.org → modules/elfeed.org

@ -1,8 +1,8 @@
#+TITLE: Feeds
#+TITLE: Elfeed
#+AUTHOR: Christopher James Hayward #+AUTHOR: Christopher James Hayward
#+EMAIL: chris@chrishayward.xyz #+EMAIL: chris@chrishayward.xyz
#+PROPERTY: header-args:emacs-lisp :tangle feeds.el :comments org
#+PROPERTY: header-args:emacs-lisp :tangle elfeed.el :comments org
#+PROPERTY: header-args:shell :tangle no #+PROPERTY: header-args:shell :tangle no
#+PROPERTY: header-args :results silent :eval no-export :comments org #+PROPERTY: header-args :results silent :eval no-export :comments org
@ -10,7 +10,7 @@ Setup a news feed inside of Emacs using ~elfeed~[fn:1], an Emacs web feeds clien
* Setup * Setup
+ Add the feed for my [[file:website.org][Website]][fn:2] to make sure the RSS feeds are updating correctly
+ Add the feed for my website[fn:2] to make sure the RSS feeds are updating correctly
+ Add some subreddits, mostly about ~linux~, ~emacs~ and ~org-mode~ + Add some subreddits, mostly about ~linux~, ~emacs~ and ~org-mode~
#+begin_src emacs-lisp #+begin_src emacs-lisp
@ -25,7 +25,7 @@ Setup a news feed inside of Emacs using ~elfeed~[fn:1], an Emacs web feeds clien
* Shortcuts * Shortcuts
Configure ~elfeed~ keybindings behind =SPC l=:
Configure ~elfeed~[fn:1] keybindings behind =SPC l=:
+ Open with =l= + Open with =l=
+ Update with =u= + Update with =u=

36
modules/website.org → modules/hugo.org

@ -1,27 +1,39 @@
#+TITLE: Website
#+TITLE: Hugo
#+AUTHOR: Christopher James Hayward #+AUTHOR: Christopher James Hayward
#+EMAIL: chris@chrishayward.xyz #+EMAIL: chris@chrishayward.xyz
#+PROPERTY: header-args:emacs-lisp :tangle website.el :comments org
#+PROPERTY: header-args:emacs-lisp :tangle hugo.el :comments org
#+PROPERTY: header-args :results silent :eval no-export :comments org #+PROPERTY: header-args :results silent :eval no-export :comments org
#+OPTIONS: num:nil toc:nil todo:nil tasks:nil tags:nil #+OPTIONS: num:nil toc:nil todo:nil tasks:nil tags:nil
#+OPTIONS: skip:nil author:nil email:nil creator:nil timestamp:nil #+OPTIONS: skip:nil author:nil email:nil creator:nil timestamp:nil
I use *Hugo*[fn:1] for my *website*[fn:2] which I write in *Org*[fn:3] before compiling to *Hugo markdown*[fn:4].
Create entire websites with Emacs.
* Setup * Setup
Download *Ox-hugo*[fn:4] and configure it for =one-post-for-file= to add support for exporting to *Hugo markdown*[fn:3].
Download and install ~hugo~[fn:1] on your system before loading the module:
#+begin_src shell
RUN apt install -y hugo
#+end_src
* Config
It's possible to export ~org-mode~ into ~hugo~[fn:1] specific markdown[fn:2] using the ~ox-hugo~[fn:3] package. I have my setup configured for one-post-per-file, despite it not being the suggested method. The option will appear in the default export menu inside of an ~org-mode~ buffer, accessible by pressing =C-c C-e=.
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package ox-hugo (use-package ox-hugo
:after ox) :after ox)
#+end_src #+end_src
* Posts
* Shortcuts
Add a capture template for creating new blog posts.
Create capture templates for creating new blog posts, and creating publicly shared notes on various topics, and other peoples published works.
** Posts
I post nonsense on my personal blog, available here[fn:4]. This template makes sure the file ends up going to the right location, with the configuration pre-applied.
#+begin_src emacs-lisp #+begin_src emacs-lisp
(with-eval-after-load 'org-roam (with-eval-after-load 'org-roam
@ -48,9 +60,9 @@ Add a capture template for creating new blog posts.
"))) ")))
#+end_src #+end_src
* Notes
** Notes
Add a capture template for creating blog posts and notes on other peoples content / published works.
Read my notes on various textbooks, artciles, and other un-categorized nonsense here[fn:5]. This template makes sure the file ends up going to the right location, with the configuration pre-applied.
#+begin_src emacs-lisp #+begin_src emacs-lisp
(with-eval-after-load 'org-roam (with-eval-after-load 'org-roam
@ -79,8 +91,10 @@ Add a capture template for creating blog posts and notes on other peoples conten
[fn:1] https://gohugo.io [fn:1] https://gohugo.io
[fn:2] https://chrishayward.xyz
[fn:2] https://markdownguide.org/tools/hugo
[fn:3] https://github.com/kaushalmodi/ox-hugo
[fn:3] https://markdownguide.org/tools/hugo
[fn:4] https://chrishayward.xyz/posts/
[fn:4] https://github.com/kaushalmodi/ox-hugo
[fn:5] https://chrishayward.xyz/notes/
Loading…
Cancel
Save