Entries tagged "OrgMode"

December 19th, 2020
October 24th, 2020

I added this note from org mode

Trying an experiment with setting up a capture template so ox-hugo can add short notes to the site.

I built up the ox-hugo capture sample to get my preferred SECTION/YEAR/MONTH/STUB folder layout.

(defun org-hugo-note-capture-template ()
  "Returns `org-capture' template string for new site note."
  (let* ((title (read-from-minibuffer "Title: "))
         (fname (org-hugo-slug title))
         (year (format-time-string "%Y"))
         (month (format-time-string "%m")))
    (mapconcat #'identity
               `(
                 ,(concat "* TODO " title)
                 ":properties:"
                 ,(concat ":export_hugo_bundle: "
                          (mapconcat #'identity (list year month fname) "/"))
                 ":export_file_name: index"
                 ":end:"
                 "%?\n")
               "\n")))

Then the important bits of my capture template…

(use-package org
  :custom
  (org-capture-templates
   (quote ("s" "Site")
          ("sn" "Note" entry
           (file+olp+datetree bmw/org-site "Notes")
           (function org-hugo-note-capture-template)))))

Eventually I got it right, and C-c c s n brought me to this buffer, where I'm editing a note that's already longer than I usually intend these to be.

* Notes
:properties:
:export_hugo_section: note
:end:
** 2020
*** 2020-10 October
**** 2020-10-24 Saturday
***** TODO I added this note from org mode                        :emacs:
:properties:
:export_hugo_bundle: 2020/10/i-added-this-note-from-org-mode
:export_file_name: index
:end:

Trying an experiment: setting up a [[https://orgmode.org/manual/Capture-templates.html][capture template]] so [[https://ox-hugo.scripter.co/][ox-hugo]] can add short notes to the site.

Still loads to figure out — for example, how will I get cover images working? But at least I proved to myself that it works.

Back to fixing the broken IndieWeb mentions, which is why I opened my editor a couple of hours ago.

July 3rd, 2020

OrgMode-ish VimWiki

I just wanted to see if I can do it without vim-orgmode. I can. Sort of. Using Vimwiki with TaskWiki for Taskwarrior integration. Not appearing in this image: vim-table-mode. Appearing but not relevant to the Org-ish experiment is vim-which-key. Completely missing: any sort of Babel code evaluation/tangling.

That agenda-ish task list is real cool but needs to show more info, like tags.

June 27th, 2020

Ox Hugo for the Orgconfig

Putting a couple how-to details down for easy searching later

November 19th, 2019

Having fun with Emacs

I kind of understand what folks say about Emacs being their operating system.

BTW the theme is the poet package, more or less.

October 21st, 2014

Blog Writing in Org Mode

An experiment with using Org mode to write Jekyll blog posts.

1 of 1 pages (There are 10 items)

Other Links

Liberapay is patronage for the FOSS and CC community.

Become a patron!