Org-anki tricks

How to generate a new deck anywhere? Write any headline. M-x org-anki-sync-entry Save file M-x org-anki-sync-entry What’s the pre-condition for setting a new deck? (customize-set-variable 'org-anki-default-deck "org-anki-test-deck") What you will see when successful import a card to anki? `org-anki: note succesfully updated:` What is anki’s server ip address? localhost:8765

ox-hugo automation: adding :EXPORT_FILE_NAME: automatically

In Org-roam, there is a function to slug a string that may contain blank characters. Previously, I have to manually add :EXPORT_FILE_NAME: file_name to the subtree’s properties to let hugo index the file correctly. Now, before the push the blog, this tiny function can do the automation. 1 2 3 (org-set-property "EXPORT_FILE_NAME" (org-hugo-slug (nth 4 (org-heading-components))))

A work flow to blog

When I write a blog, it could be anywhere in my Zettelkästen, so it is better for me to write it first then decide to publish. Then writing a blog is just another sets of training for me to gain more mental strength. After I have written a piece of post, I will refile the subtree to the blog file, and let the automation do the job to publish it on the internet.

What is this website?

Hi, there! My name is Ran, a professional student at the University of life. The graduation date is unknown because I don’t know when I die. It could be the next second. This blog is a disssertation for myself. It’s never going to be finished and it is not designed to be that way. Welcome to my journey.

Hugo basics

Installation Download and install - The Go Programming Language https://gohugo.io/installation/windows/ Org-hugo related Yes, it’s about tinkering Emacs. Org Hugo Section: Directory: post org-hugo-auto-set-lastmod: t You can use SCHEDULED to explicitly set the date for creating the blog entry How it works? write in org-mode export blog by: export only the subtree: C-c C-e H H (most frequently used) export all subtree C-c C-e H A push to Github remote repos Make sure, todo state is not set to be “todo” small modfication: C-c C-e H H to replace old post big modfication: leave a comment in the main blog post