Emacs, Three and a Half Years On

If someone had told me three and a half years ago, that I would: Use Emacs as my primary editor nearly everywhere. Not just as an editor. In fact, I would stop thinking of it as an editor and come to see it for what it really is. A whole computer with an editor bolted on. Use Emacs not just for writing, but also have it serve as the cornerstone for two other extremely important activities in my life, organising my life (with Org Mode) and tending to my commonplace book (with Org Roam) Come so far as to scrape a web page, set it up as a connected node in my Zettelkasten, strip close to fifty superfluous lines, edit the rest to my liking, change the title to title case, and then file it way within minutes, and learn do all this by osmosis and research over the years, just by using it daily and being curious1 Have a kind community support all my crazy attempts to bend Emacs to my will I would have told you, you were off your rocker. But I do, do these things (which, I’m ridiculously pleased with) and have this wonderful community (which, I am earnestly grateful for). Here’s to three and a half decades! ...

December 30, 2023 · Mario Jason Braganza

Weirdly Placed Emacs Org Branches Are Only Cosmetic

Every evening, after my shutdown ritual, I move my current day’s branch to the bottom of my Org Mode file, so I begin the next day at the same fixed place, at line 36.1 The day is done; moving it to the bottom of the pile ...

November 27, 2023 · Mario Jason Braganza

Org Mode Subtree Expansion With the Mouse

When I wrote about, ticking off checkboxes in Org Mode, I’d linked to line 101 of org-mouse.el. While I’d read the main summary, I somehow missed line 30 … ;; * subtree expansion/collapse (org-cycle) with the left mouse button Which I accidentally triggered today … After an (accidental) click opens up to … Org Mode continues to delight! Hurrah! ...

February 22, 2023 · Mario Jason Braganza

What I Learned Today (11th of February, 2023)

Rest day! Not doing much! Emacs It works! Yesterday’s little hack, to clock in and out when I change state works well! It doesn’t seem to have broken anything. Also I added a WORKING state, and tagged my function to that. The clock in and out happen when I switch in an out of the WORKING state. Because I want my parent task to show IN_PROGRESS and the current subtask to be what I am working on. Like so … ...

February 11, 2023 · Mario Jason Braganza

What I Learned Today (10th of February, 2023)

Decided to play hooky today, because I got up reallly late and then I got stuff at home to do. Emacs Since I was playing hooky with my time and attention anyway, I decided to see, if I could tackle this little thing, I wanted to happen with my Org Mode. Everytime I move my TODO status for a task to IN_PROGRESS, I want Org to automatically clock in for me. And everytime I move out of the IN_PROGRESS state, I wanted it to clock out. This is because I want a one step process. I don’t want to change state and then clock in too. And I want it this way, because changing states and telling my program, that I’m going to work on this, here, task now is more natural to me, than clocking in and out. A whole day of reading and searching later, I stumbled across this gem on the Emacs StackExchange site which did exactly what I was looking to do. I stole it, twiddled a bit with the variable and function names and added it to the file that handles my Org config. This is it, in its entirety (add-hook 'org-after-todo-state-change-hook 'mjb/org-clock-todo-change) (defun mjb/org-clock-todo-change () (if (string= org-state "IN_PROGRESS") (org-clock-in) (org-clock-out-if-current))) And this works! For now. If something comes up, I’ll figure it out. Which brings me to the figuring out part. Doing this today has left me conflicted. In the old life, this is exactly how I’d do it. But ever since I’ve been learning to write code, I feel like this is something I should be able to do. But there’s only so much life and so much I want. I want the results today, and learning and writing Lisp is not going to happen in a jiffy. Right now my priorities are Devops related tasks. So I’ve just taken the pragmatic way out for now, and used code I found. Urdu Learnt about the “suaad” group. And also learnt that Urdu is just as crazy as English. There are three, count ’em, three ways of making the S sound and no particular rhyme or reason to them, save history :) ...

February 10, 2023 · Mario Jason Braganza

Ticking Off Checkboxes With the Mouse in Org Mode

While I mostly use the keyboard when doing everything Org related, there are a few times in the day, when I cannot. These are mostly mornings and evenings when I bustle about home, doing this thing and that. Things that are part of my routine. Things that are checkboxes in my routine.org file. It helps me get through the day without thinking of whether, I gave the better half her meds or whether I remembered to call my mum or if I drank enough water by the end of the day or whether my stretches for the day are done or if the plan for the next day is made. ...

October 7, 2022 · Mario Jason Braganza