EWW As The Default Buffer

As most of you know, I’m one of those people striving to move as much as possible into Emacs. I’ve mostly succeeded in that except for the usual sticking point: the browser. No modern browser will run in Emacs and I’m not sure that we’d want one to. Still, it would be nice to be able to do all or most of our browsing tasks from with Emacs.

There is, of course, EWW. It does a pretty good job of displaying text and images but has no JavaScript support. Some of us consider that a feature. It turns out that most of what JavaScript does isn’t really necessary and merely gets in the way.

Joshua Blais has taken using EWW a step further and made EWW his default browswer. That means that whenever he clicks on a URL and certain other links, the link is opened in EWW or—for special links—in another application that runs in Emacs. The point is, all browser activity starts in Emacs, usually in EWW.

Of course, Emacs can’t handle every browsing task so Blais uses the & key in EWW to escape to a “normal” browser. Blais says that EWW suffices for 85–90 percent of his use cases. He has some functions to kick off Emacs apps for MP4, PDF, and other specialized links. Everything else goes to EWW. He’s added a couple of custom bindings for EWW functions he uses a lot but it’s mostly a normal EWW instance.

Blais’ experiment shows that it is possible to almost browse from within Emacs. Sites that rely on JavaScript in an essential way are not going to work of course, and there are still a lot sites that insist on JavaScript so they can enforce the delivery of ads or implement a pay wall. Blais’ method gives us a chance to consider if those sites are worth viewing.

Posted in General | Tagged | Leave a comment

Vim To Emacs

Over at the Emacs subreddit, Sahkopi4 recounts his journey from Vim to Emacs. Actually, his journey was from Nano to Emacs by way of Vim. When he first started using Linux, Nano was the default editor and he began with that. Eventually he wanted more power and because Vim seemed more popular in the forums he inhabited, he learned Vim. He really like it and the power that it brought him was an eyeopener.

He experimented with other Vim-like implementations but they didn’t work for him so he stuck with Vim. Eventually he tried Emacs and almost immediately became a convert. Like me, he jumped right in and didn’t try to use Evil or some other Vim emulation. Like many of us, he loved the experience and now wants to do as much as he can in Emacs.

As always, a lot of the action is in the comments. Many said that immigrants from Vim should use Evil because it gives you the best of both worlds: the modal, composable editing commands of Vim and the power and flexibility of Emacs. Others said that Evil induces a sort of cognitive dissonance where neither system is fully in control.

There is, of course, the occasional post proclaiming loudly that Emacs is no good because it uses Lisp with all those parentheses. The ankle biting aside, the comments offer an intelligent and useful commentary on Sahkopi4’s journey.

Posted in General | Tagged , | Leave a comment

Setting The Timezone In Emacs

Charles Choi has a nice hint for those of you who travel and phone home with Emacs. Here’s the situation: you are travelling and log into your home server with SSH and emacsclient. It’s wonderful. Just like being at home except the date/time stamp is wrong. The time and date are whatever your home server thinks they are but you want them to be local time.

The answer is simple. You simply need to change the TZ (timezone) environment variable to reflect your current location. For example, if you’ve travelled to New York (in the US) you would set TZ to “America/New_York”. Emacs, of course, provides a command to do this: (setenv "TZ" "America/New_York").

The zone codes can be a bit opaque so Choi has added a command to the latest Casual suite to set the TZ variable complete with completion. Take a look at his post if you’re interested.

Posted in General | Tagged | Leave a comment

AI Use At Irreal: There Isn’t Any

Some people say there isn’t intelligence of any sort in use. I don’t know about that but I do know that AI isn’t used by Irreal in any way.

Despite my promiscuous use of em-dashes and refusal to believe that Irreal readers can’t read above the sixth grade level, every single word that appears on Irreal is written by me (except quotes, of course). The same goes for editing. My style is my own and I can’t imagine letting some program—not even a “grammar checker”—tell me to change it.

So, warts and all, there’s nobody to blame for what you see here but me. And that’s not going to change, no matter how good and capable AI gets. I suppose I could get so old and infirm that I have to dictate my posts to some speech recognition app running in Emacs but that’s not really AI. In any event, that day is not yet here so we needed worry about it.

Posted in General | Tagged | Leave a comment

Let Over Lambda Is Free To Read

Doug Hoyte writes to say that’s he’s making his excellent book Let over Lambda available on line and as a PDF. I’ve written about the book several times most importantly here and here but you can search Irreal for “let over lambda” for the the others.

I can’t overemphasize the effect this book had on me. I learned a lot about Lisp and even programming from it. Some people complained that they didn’t like his approach to structuring his Lisp but I never had a problem with it.

The book is about Lisp Macros and the tremendous powers they provide. As an example, Hoyte gives a macro implementation of the Scheme named let construct. There are a lot more things like that in the book.

Let Over Lambda is about Common Lisp but a large portion of it applies to Elisp too. If you’d like to become really good at Elisp, Let Over Lambda is a good resource. As I said, it’s mostly about Common Lisp but a surprising amount carries over to Elisp.

In any event, you can check out the book for free and if you like what you see, you can read the entire book. It is, believe me, well worth your while.

Posted in General, Programming | Tagged , , | Leave a comment

Journelly 1.5

Álvaro Ramírez just announced the release of Journelly 1.5. It’s the formal release of the beta version that I recently wrote about. I can’t say enough about this release. As I’ve said before, my Journelly database is over 4 thousand entries long and before this release Journelly was getting laggy and hard to use but this release resolved all those problems. Now Journelly is as snappy as it was when I had only a few entries and everything about it seems faster and easier.

But wait. There’s more. Ramírez has added an “on this day” feature as well as adding features that make searching for entries by date easier.

If you use Journelly as a journal, you may be interested in the new “on this day” feature. There’s a new button that will show you entries happening on the same day from other years. My particular use case for Journelly is as a memo book so I have no use for this feature. Fortunately, the new Journelly makes it easy to toggle it off if you don’t want it.

The other new significant feature is enhanced searching by date. In the search function you can use on: keyword with several different date formats to search for entries with a particular date. There’s also a calendar button that lets you choose the date from a calendar presentation if you prefer.

You may wonder why I have this entry tagged emacs. I consider Journelly intrinsically linked with Emacs because Journelly keeps its database in an Org file and that means that I can use Emacs and Org mode to search and edit that database. That doesn’t seem like much but I find myself doing it all the time. Journelly has become integrated into my Emacs workflow and become an important part of it.

In the mean time, those of you not in the Journelly beta program now have access to these updates. I can’t speak for Ramírez, of course, but if you’d like to be in the beta program, email Ramírez. He’ll probably be glad to add you.

Posted in General | Tagged | Leave a comment

Burnish

If you do a lot of exporting from Org Mode and hate all the rigmarole involved, Charles Choi may have precisely what you need. He’s just released Burnish, an app that largely automates the Org export process. The TL;DR is that when burnish-mode is active and a properly marked Org file is saved, the file is automatically exported and a preview is generated.

By default, the app supports exporting to:

  • HTML
  • md
  • odt
  • info
  • LaTeX-PDF

but the app is highly configurable and you can add your own export types and export functions. The app comes with a user manual that explains how to do all this.

If you only occasionally export Org files, Burnish may be more than you need but if you export a lot of Org files, it may save you some time and effort.

Posted in General | Tagged | Leave a comment

Emacs 31.1.90 Pretest

More good news on the Emacs front. Sean Whitton writes to say that the Emacs 31.1.90 pretest is available. The Emacs point releases are generally to fix bugs and maybe refine an existing functionality but you shouldn’t expect any major new features. That will have to wait for Emacs 32. As always, the developers are asking for our help to test the release and let them know if we encounter any problems building or using it.

Be aware that there are some typos in Whitton’s post. In the first place, the pretest will eventually become Emacs 31.2 (not 31.1). More importantly, there are also typos in the URLs for the release. The correct URL is https://alpha.gnu.org/gnu/emacs/pretest/emacs-31.1.90.tar.xz and similarly for the signature file.

My usual thanks to the Emacs developers who work so hard for us and give us so much. As I always say, if one of us finds ourselves in the same bar as one of the devs, we’re buying.

Posted in General | Tagged | Leave a comment

Terry Pratchett’s Study

Today’s topic is a little outside the usual Irreal fare; I don’t even have an appropriate tag for it. It’s about a post concerning Terry Pratchett’s study. Not his actual study but a scale model of it built by hand by a Pratchett fan for his son.

So far, that seems pretty boring but take a look at the post and the pictures in it. When I saw the first picture, I thought it was a picture of the actual study but it was really the model. The attention to detail is amazing. For example, each of the books in the bookcase have accurate replicas of the actual book covers even though most of each cover isn’t visible when it’s in the bookshelf.

Similarly, the contents of the chest are an accurate rendition of what’s actually in the chest including a manuscript containing the remaining pages of The Colour of Magic, some newspaper pages concerning Pratchett and other matters, a map, and some other items all painfully reproduced from the originals.

To me, the most amazing picture is of the final model on his son’s bookshelf. You can see how small the whole thing actually is.

You don’t have to be into model building—I’m certainly not—to appreciate this creation. In a way it reflects the master programmer’s mindset: attention to every tiny detail to make sure the whole is the best product possible.

Posted in General | Leave a comment

BYOK

My ex-colleague and old friend Watts Martin has an interesting post about BYOK. BYOK is a “writer deck”, a device exclusively for writing that has no distracting apps or even a connection to the Internet. The idea is that writers can’t get distracted when they reach a temporary block by escaping to social media or something similar; they have to push through the block and get on with their writing.

According to Martin, BYOK is better than most devices in its class but there are still problems. He doesn’t like the available fonts and the screen—as you can see from the picture in his post—is pretty small, about 6 lines depending on the font. That seems to me to amount to a rather uncomfortable working environment. Fortunately, I don’t usually find myself distracted when I’m writing.

Then there’s the matter of research. Very often you need to look something up when you’re writing and you can’t do that with something like BYOK so you need to switch devices, pulling you even further out of the flow. And as Martin observes, it’s not easy to integrate your notes either.

The deal buster for me, though, is the builtin editor. It’s not Emacs based and doesn’t even support Emacs keybindings for navigation. As I’ve repeatedly said—as recently as yesterday—I simply can’t comfortably write outside of Emacs anymore. Martin is a relative newcomer to Emacs but he’s already feeling the discomfort. Once the Emacs way sets in, he’ll be just like me and won’t consider doing serious writing outside of Emacs.

Even if I were subject to being distracted by the greater Internet, I would simply turn off my WiFi to produce what is effectively an Emacs based writer deck. One thing for sure, I’m not giving up Emacs and suffering a second rate writing environment.

Posted in General | Tagged , | Leave a comment