Org Mode: Prompt for a heading and then refile it to point

| org

I sometimes want the inverse of org-refile when I create a subtree and think of things that should probably go into it. This function prompts for a heading that matches org-refile-targets and then moves it to the current location.

(defun my-org-refile-to-point (refloc)
  "Prompt for a heading and refile it to point."
  (interactive (list (org-refile-get-location "Heading: ")))
  (let* ((file (nth 1 refloc))
         (pos (nth 3 refloc)))
    (save-excursion
      (with-current-buffer (find-file-noselect file 'noward)
        (save-excursion
          (save-restriction
            (widen)
            (goto-char pos)
            (org-copy-subtree 1 t))))
      (org-paste-subtree nil nil nil t))))
View org source for this post

Wednesday weblog: Toots ending 2024-10-23

| review, weblog
View org source for this post

Embracing the shallows

| parenting, productivity

[2024-10-30 Wed]: Added more notes from my experiment with semi-retirement.

I'm sitting in the same room as A+ as she attends virtual grade 3. She uses the computer speakers instead of her headphones. I feel there's a part of my mind that I can't access with stuff going on in the background, but I don't mind so much. Listening in is a good way for me to keep up with what she's learning in class. (Sometimes there are moments of unexpected hilarity.) I used to go off to a different room, but A+ likes to have me around. Might be like the body doubling that many people find helpful. In a little less than an hour, we'll have recess, so that's another constraint on how deeply I can get into a task or an idea.

Right now I feel like writing about a thought that I've been picking up and putting down over the past few days/years: embracing the shallowness of my attention at the moment.

The shallows aren't bad; they're just part of life

Most of the books I've read about productivity or writing treat distraction as a bad thing. Juxtaposing The Shallows: What the Internet Is Doing to Our Brains (Nicholas Carr), Deep Work: Rules for Focused Success in a Distracted World (Cal Newport), and Four Thousand Weeks: Time Management for Mortals (Oliver Burkeman), I find myself leaning more towards Burkeman's acceptance of limits and lack of control. I'd rather figure out how to embrace these shallows than to write off large portions of my life: parenting a young child with all the attendant interruptions (which I am learning to welcome) and preparing for eventual old age. I'd rather be here so that the kiddo can send me notes by post owl (paper airplane) than go behind a door that I can shut. I love that she wants to show me book passages that she found funny and that she wants to ask me what-if questions about Harry Potter and that she wants to snuggle.

The people I hear from reassure me that this splitting my attention because of parenting is okay; it's because I'm choosing something that's higher priority for me at the moment; it's temporary; it's worthwhile. As the kiddo often reminds me (because I often say it out loud to her, with love and affirmation): I signed up for this, I only get so many years of this.

If we're lucky, we get old. Some don't. Some people stay sharp, like the way Leslie Lamport's still writing in his 80s. (Writings) My mom struggles with energy and forgetfulness and physical decline, so that might be closer to my experience; I can be pleasantly surprised otherwise.

Things I've been learning about the shallows over time

Things I can do in the shallows

So, accepting that this is what I've got, what do I want to do with it?

I can take it all in. It's okay to just be.

When I want to do things, there are plenty of things I can do from here.

One of the things I've learned while doing Emacs News is that even things I can do in the shallows can be useful. Organizing information and passing it along does not require deep reflection or a quiet mind.

I can read in short bursts here and there, take notes, and share them. How to Take Smart Notes (Sönke Ahrens; my notes) reassures me that I can take short notes as I read, and those notes can build up into something useful.

Most of my Emacs tweaks are short. They also accumulate. More things become easier and easier.

I've been tweaking my drawing workflow to be comfortable with parts of pages instead of feeling like I need to fill in the whole thing. I used to draw on a Nintendo DS, index cards, and a Samsung Note 8. A small canvas makes it easier to feel like a thought is complete, but I can do the same even with the A5 size of my Supernote. I just have to give myself permission to stop.

Now I am learning to write small thoughts. They aren't amazing insights, but they're enough for me, and sometimes they resonate with other people.

Tweaking my idea flow

I wonder about the different kinds of shallows I find myself in:

  • I can be on my computer; there's stuff going on in the background; I might be interrupted, and I'll need to wind up soon anyway
    • Writing: could get better at:
      • Collecting links and resources
      • Listing thoughts for further development, collecting snippets
    • Coding: could get better at:
      • Keeping it small
      • Adding tests
      • Sharing notes
      • Checking for previous implementations or related stuff
    • Correspondence: could get better at:
      • Keeping track of things
  • I can draw.
    • Untangle my thoughts: pretty easy to think of a question to ask myself; try using my tosketch tag
    • Read a book and take a few more notes
      • Maybe share more granular notes?
  • I can read or write on my phone while I'm waiting for someone.
    • Tends to be dominated by current questions; could get better at reviewing things that I've added to my to-read list.
  • I can talk out loud because I'm doing a chore or errand by myself and no one else is around. Audio braindump workflow - could get better at:
    • Quickly reviewing a list of questions (:todump: tag)
    • Getting ideas of out of the transcripts
  • I can listen to something while I do chores or errands. Could get better at:
    • Skipping podcast episodes I'm not that interested in
    • Finding podcasts I like
    • Making and storing notes
  • I can't be on my phone, but I can think about things.
    • Nice to have a background question I can return to in those moments, and then I can capture a note or post a toot that I can flesh out eventually.

Related: My toot on 2024-10-30T00:24:48.668Z about the shallows

View org source for this post

Yay Emacs 7: Rewriting and copying custom Org Mode links

| yay-emacs, emacs, org

I use org-link-set-parameters to define a lot of custom links in Org Mode for things like my blog or my Emacs config. Then I can code how I want to complete, open, and export those links. These links don't make sense to other people, of course. I want to be able to quickly copy or replace my custom links with regular web links, like the ones I use when I export to HTML.

My shortcut for this is C-. u to copy the exported URL and C-. r to rewrite a link. These stand for my-embark-org-copy-exported-url and my-embark-replace-link-with-exported-url respectively.

You can watch this short on YouTube, download the video, or download the audio.

View org source for this post

How to Take Smart Notes - Sonke Ahrens (2017)

| visual-book-notes, writing, pkm, productivity, learning

I want to get better at making sense of things and sharing what I'm learning. Nudged by Chris Maiorana's post on Second Brain, Second Nature, I borrowed How to Take Smart Notes by Sönke Ahrens (2017). Here are my notes.

Text from sketch

How to Take Smart Notes - Sönke Ahrens. 2017 - sketched by Sacha Chua 2024-10-26-01

  • Niklas Luhmann: everything - writing; slipbox, Zettelkasten
  • Instead of: brainstorm (blank paper), then research (wrong topic? wrong understanding?), then write
  • Try a loop of:
    • Read with a pen in hand: short notes, your own understanding
    • Refine and connect your notes: elaborate.
    • Notice clusters
    • Develop into topics, write about them
    • reading ⇒ thinking ⇒writing
  • Types of notes
    • Fleeting: try to review within a day
    • Permanent: complete sentences, makes sense at a glance
    • Literature: short; use own words
    • Project: can be archived after
  • Work on multiple projects so you can switch between them and they can feed each other.
  • Things to think about.
    • Why is this interesting?
    • Why is this relevant?
    • How does this relate to other things?
    • What's not mentioned?
  • Numbering, physical references: let ideas mingle
    • 22, 22a, 22a1, 22b, 23, …
  • Retrieval cues
  • Saving cut pieces = easier editing
  • Verbund: by-products = resources
  • Writing → break it up!
    • reading, understanding, reflecting, getting ideas, connecting, distinguishing, rewording, structuring, organizing, editing, rewriting
  • Positive feedback loop: reading with pen, writing permanent notes, writing arguments…

The book goes into detail about Niklas Luhmann's Zettelkasten or slipbox system. Lots of people have written about Zettelkasten and various implementations. There's even a whole micro-industry around Notion templates. So I won't spend a lot of time right now describing what it is or what the key aspects are. I can focus instead on what that means to me and what I want to do with it.

Writing

By doing everything with the clear purpose of writing about it, you will do what you do deliberately.

I like chapter 5's focus on keeping writing in mind. I want to push most things towards writing and drawing (posts, code, whatever; public as much as possible) because it's a good way for me to remember and to learn from others. It's a reminder to not try speeding through my to-do list; it's good to slow down and write about stuff.

Following the work

I only do what is easy. I only write when I immediately know how to do it. If I falter for a moment, I put the matter aside and do something else.

I always work on different manuscripts at the same time. With this method, to work on different things simultaneously, I never encounter any mental blockages.

During my discretionary time, I usually follow the butterflies of my interest: working on what I feel like working on, moving on to something else when I get stuck. Sometimes I will work on something I have to do because it's got to be done, but those moments are rarer. Amidst all those productivity books that exhort you to focus on a limited number of things, it was nice to know that Luhmann also jumped from interest to interest, that the process of accumulating these notes builds things up into clusters with critical mass, and that these good habits build themselves up through positive feedback loops.

Different types of notes

I do all right capturing fleeting notes on my phone, but I want to get better at turning my fleeting notes into literature notes and permanent notes. I'd like to review them more frequently and spend some more time fleshing them out, with the goal of eventually turning more of those things into blog posts and code that I can share as I learn out loud.

I also don't really have a good way of putting topics "near" other topics yet. Categories are a little coarse, but maybe topic maps are a good starting point. It would be nice to have a quick way to put something before/after something else, though.

Different types of tasks

Writing a paper involves much more than just typing on the keyboard. It also means reading, understanding, reflecting, getting ideas, making connections, distinguishing terms, finding the right words, structuring, organizing, editing, correcting and rewriting.

I wonder if making these distinctions between the subtasks of writing will make it easier for me to break writing down into tiny tasks that can be completed and gotten out of my brain.

Thinking about connections, thinking about what's missing

I want to get better at connecting ideas to other things I've thought about by linking to blog posts or notes. That might also help me build up thoughts out of smaller chunks, which would be helpful when it comes to working with fragmented thoughts.

Thinking about what's not in the picture is hard, and that kind of critical thinking is something I want to practise more. I can pay attention to the follow-up questions I have so that I can get a sense of where to look for more insights or what to experiment with. Questioning the way something is framed is also good and something I don't do often enough.

For example, I wanted to dig into this quote:

Luhmann’s only real help was a housekeeper who cooked for him and his children during the week, not that extraordinary considering he had to raise three children on his own after his wife died early.

I ended up doing a tiny bit of research on my phone and putting it into Niklas Luhmann's Zettelkasten and life with kids (the kids were in their teens at the time, so they were probably a lot more independent than A+ is at the moment).

Related

View org source for this post

Thinking about how I can use large language models

| ai, geek

I wanted to follow up on my post on large language models and me from January and do some more thinking/learning out loud.

Data

I have >= 8000 posts in my blog, almost 4000 sketches (mostly public, many with OCR results), and lots of text notes in my Org Mode files, many of which are in a hierarchy and many of which are just a random list of entries.

There's also the episodic memory aspect of things, trying to remember using different cues. Might be fun to figure out what I can do with >= 16,000 text journal entries (usually a sentence, sometimes longer).

Vector/approximate search

I like the idea of being able to search my notes with both exact and approximate matches. Semantic Search for Org roam | lgmoneda might be a good starting point. Khoj has a free self-hosted option that can be configured to use offline models and some support for Org Mode, but it might be too big for me to wrap my head around at this point. I'll probably write my own thing so that I can understand it and so that I can tailor it to the structure (or lack thereof) of what I've got.

I don't mind starting with just the retrieval aspect, since text generation is still a little iffy. I'd rather be able to flip through the titles and jump to the source information for now.

I'm partly looking for the modern equivalent of the Remembrance Agent, which I enjoyed using in Emacs before. It used a bag-of-words approach to look at a few hundred words around your cursor and suggest files/emails/etc. that were relevant in another window.

Episodic search

Slightly more far-off: it might be nice to be able to find something based on more retrieval cues and episodic memory, and to enrich memory.

Someday it would be pretty cool to have something help me remember where I left something. Video (SpotEM, Episodic Memory Question Answering) might be excessive, but maybe I could get into the habit of audio notes?

Transcript correction

It would be good to have more conveniences for fixing commonly-misrecognized words, although that might also be handled with simple regex-based replacements (maybe like mbork's mrr-replace-mode).

Topic identification and segmentation

It would be nice to automatically break up transcripts of braindumps or web conferences into topics. I currently do a bit of light structuring via keywords in my audio braindumps, but topic segmentation is a well-established area, so I should be able to figure this out once I set aside time for it.

Question-answering: not so much yet

I thought it was a little interesting how Dan Shipper used 10 years of journal data for retrieval-augmented text generation and question-answering (source) and how AI can make analyzing your thoughts and actions feel more like a conversation, but I don't think this is quite useful for me yet.

Question-asking might be more useful

When I'm writing, my challenge is usually resisting going down the rabbit hole of more tweaks and instead reining things in so that I can finish the post. But if I do find myself wanting to write more, I think it might potentially be interesting to ask what kinds of follow-up questions people might ask about something, and then add links or more explanations.

View org source for this post

2024-10-28 Emacs news

| emacs, emacs-news

UPDATE: I'm moving Emacs News to the info-gnu-emacs mailing list instead of emacs-tangents. If you're subscribed to Emacs News through emacs-tangents, you may want to switch your subscriptions. Emacs News will also continue to be available on the web and through RSS. I'll post to both info-gnu-emacs and emacs-tangents for a little while.

Links from reddit.com/r/emacs, r/orgmode, r/spacemacs, r/planetemacs, Mastodon #emacs, Hacker News, lobste.rs, programming.dev, lemmy.world, lemmy.ml, communick.news, planet.emacslife.com, YouTube, the Emacs NEWS file, Emacs Calendar, and emacs-devel. Thanks to Andrés Ramírez for emacs-devel links. Do you have an Emacs-related link or announcement? Please e-mail me at sacha@sachachua.com. Thank you!

View org source for this post