macros

Using Macros to Help Code Debugging

Using Macros to Help Code Debugging

James Dyer
Often I find myself requiring the most rudimentary of methods of debugging and that is to push text to standard output from within a running executable to indicate the logical structure of a program. This situation may come about if I can’t debug a dll or generally actually stopping a program to debug creates an “observer effect” Sometimes the logical structure can be somewhat complex consisting of a plethora of if statements and nested for loops, e.
Merging org files for Hugo static site

Merging org files for Hugo static site

James Dyer
I have just started the process of reducing the number of org files I maintain for my web site. I now have a greater understanding of how Hugo handles these files and I think can both simplify and make them more flexible. Hugo is my static site generator of choice and although it supports org files directly I prefer to generate to a markdown file as an intermediate step using a file by file evaluation of org-hugo-auto-export-mode.
Dired going Up Directories

Dired going Up Directories

James Dyer
Now dired is becoming more ingrained into my muscle memory, navigating efficiently through the folder structure is becoming more prominent in my mind and it still doesn’t feel natural enough. I now don’t even think about using C-x d and the Enter key is fine for either opening a file or traversing into a directory. But what about moving up a directory!, also a very common action. The default defined key is ^ and actually isn’t too bad and almost feels quite natural, almost…
Trimming Text With Macros

Trimming Text With Macros

James Dyer
I am having a bet!, it is one of my few vices, and it shall be on the horses. I don’t often have a bet and in fact I generally only ever have a bet on a special occasion, like the grand national or a random parallel bet with my dad. Today is a parallel bet, yesterday my dad won over £650 and I have decided to leverage his expert equine knowledge to have a little flutter.