Multiple Help Buffers

Marcin Borkowski (mbork) posted a potentially helpful tip on multiple help buffers. I say “potentially helpful” because his use case is pretty niche and it’s hard to think of others that are essentially different. Regardless, If you need multiple help buffers, mbork shows you how.

His particular need was to compare the doc strings of two functions. If I had that need, I would probably have followed the help buffer to the source of the first function and then brought up the help for the second function. The source of the first function contains the doc string, of course, so I could compare them with a single help buffer. Mbork’s solution is arguably simpler. Take a look at his post to see how he did it.

I often comment on Borkowski’s posts but I don’t mention all of them. If you’re interested in honing your Emacs skills, his blog is a good one to follow. It’s low volume—a post every week or two—so you won’t be overwhelmed. If, like me, you have an RSS feed, you should consider adding his blog to it.

Posted in General | Tagged | Leave a comment

The Open Office Is Dead

Open offices are dead. At least that’s what the sociopaths who foisted them off on protesting office workers—but never their bosses for some reason—say. An article in Fast Company says that the architects who have been pushing the open office concept on their customers have changed their minds.

Sort of. First of all they ignore the most salient fact about open offices: they are germ exchanges that COVID-19 have rendered no longer feasible. Increased employee illness was always a problem with open offices but it was largely ignored by employers seduced by the cheaper buildout they offered. That’s no longer possible and probably won’t be for some time.

Secondly, they haven’t really repudiated their past designs; they’ve just changed them a bit. Take a look at the Fast Company article or these concept sketches from one of the architectural firms. They all look like open offices to me but with cute names like “The Library,” “The Plaza,” and “The Avenue.” The Library, for instance, is claimed to solve the noise and disruption problem by having a “no talking” policy as if no one has ever thought of that before.

It remains to be seen if employees will tolerate this nonsense after experiencing the comfort of distraction free working from home. I get that not everyone likes working from home and that—for some reason—some folks even like open offices. But most people don’t and are apt to object on the grounds that these open spaces are dangerous and inefficient.

I’ll be a lot less cynical about open offices in general and these “new” designs in particular when I see the bosses using them and taking advantage of all the things they offer their employees. I’m not holding my breath though.

Posted in General | Tagged | Leave a comment

Native Compilation Will Probably Be Merged This Weekend

Eli Zaretskii writes that absent the discovery of any last minute blockers, native compilation will be merged into master this weekend. A problem with symlinks prevented the merging last weekend. At this point there are no more issues known so the merge can proceed.

On the one hand, it seems like it’s been a long slog. On the other, it’s amazing how fast things have come together. Once it’s widely available, this feature will make all our lives better and easier. Many many thanks to Andrea, Eli, and everyone else who’s worked on this.

Posted in General | Tagged | Leave a comment

Fifteen Days with Dired

Ramit Mittal is a new Spacemacs user who decided that for 15 days he would use Dired for all his file operations. That’s not hard to do. I don’t always use Dired but it’s usually easier than bringing up or switching to a terminal to do it by hand. Especially since if I need to do a file operation, I am almost certainly in Emacs anyway.

For most operations, Dired provides the advantages of doing an ls followed by whatever file operation you need. In fact, it’s better because you can search for the file you want to operate on by typing the first few letters.

Mittal’s post demonstrates some of the ways he learned to use Dired to make his workflow easier. He mentions, for example, that when you open a terminal while in a Dired buffer, the terminal will open in the same directory as the buffer.

He also mentions using xdg-open to open a file in its default application. That works in Linux; for macOS, you would use open. Although he doesn’t mention it, you can also map xdg-open or open to the be the default action for the ! and & commands.

I don’t know for sure but my impression is that Dired is an underused feature of Emacs. It’s really powerful and useful and very much worth taking a bit of times to learn. It also helps to bookmark its refcard so you can bring it up if you forget one of its many commands. In any event, Mittal’s post is short and worth spending a couple of minutes to read.

Posted in General | Tagged | Leave a comment

Law Enforcement Pirates

If you’re an American, the government can’t take your stuff without a legal finding of wrongdoing on your part. That’s what most Americans believe but they’re wrong. The government can, and does, confiscate citizens’ property without legal proceedings or even an allegation of wrongdoing.

I wrote about this a couple of weeks ago in my The TSA: Keeping Us Safe From Cash post. This sort of thing even has a name: asset forfeiture. A better, more accurate name, is piracy. You’d think it would be rare but according to the Washington Post it’s anything but:

Just think about that. The government is stealing more from Americans than burglars do.
The original intent was to prevent criminals from profiting from their crimes but has since morphed into a way for law enforcement agencies to fund their operations. The situation is so out of control that many states are passing legislation outlawing the practice and groups like the Institute for Justice have filed (and won) several cases on behalf of the victims. Real justice would be seizing the budgets of those agencies as the proceeds of criminal activity. That won’t happen, of course, but at least we can hope that state legislators and the courts will put an end to this reprehensible practice.

Posted in General | Tagged | Leave a comment

Switching to Emacs

Protesilaos Stavrou has an interesting video that boils down to a lecture on the morality of free software in general and Emacs in particular. He frames the lecture in terms of his journey from a complete computer neophyte to the accomplished programmer and user that he is today (although he modestly resists that label).

The whole video is worthwhile but the part I want to write about is his thoughts about Emacs and what he learned when he switched to it from proprietary software. The first thing he learned is that Emacs will not magically make you more productive. You have to commit to learning it and put in the time to master it. As Stavrou puts it, you can’t be an Emacs tourist. You won’t learn Emacs in a weekend, a month, or, as some of have discovered, even years. It’s a long term commitment. That doesn’t mean that it will be years before you can be productive; only that mastery takes more than a weekend.

Part of that commitment to learning Emacs involves reading the documentation. Stavrou claims that there’s no substitute. No blog post or quick video is going to tell you everything you need to know. You must read the documentation.

All of this was interesting to me because I believe—and have written—the same thing. The usual reaction is “That’s why Emacs is doomed and deserves to be.” Sorry, but I’m unrepentant: Like anything else worthwhile, mastering Emacs takes effort and commitment. Don’t expect to be up and running in a couple of days.

Posted in General | Tagged | Leave a comment

Useful Emacs and Org-mode Features

Karl Voit gave an excellent talk at Grazer Linuxtage 2021 on some Org Mode features that you may not know. The talk also covered some Emacs features that he uses to enhance his workflow. He has an outline of the talk on his website so you needn’t worry about trying to take notes or writing down any shortcuts that you don’t already know.

Experienced Emacsers probably already know a lot of the things he covers but I learned a couple of new things so it’s definitely worth watching. The first new—or perhaps, forgotten—thing that I learned about was scroll-lock-mode. It’s not something I would use everyday, but sometime it’s just what I want. It’s an easy way to read a document without have a scroll page by page. Voit maps it to the scroll lock key which, if you have one, is a handy way of activating it.

Sort of related to scroll-lock-mode is view-mode, which makes the buffer read only and lets you scroll up and down by the page or half page using Space, Delete, d, and u. You can also search with s.

Next, he demonstrates various ways of entering and changing time stamps including using the relative timer for note taking during a meeting or video. He also discusses using the :crypt: tags to encrypt a node in an Org tree and doing a regex search using sparse trees.

The final part of the talk are some customizations mostly using packages. These include his really powerful use of hydras and his use of the eyebrowse package to organize his Emacs work spaces.

The talk is just short of 41 minutes but it moves quickly and is very enjoyable. Highly recommended.

Posted in General | Tagged , | Leave a comment

Writing Technical Documents with Org Mode

alpha2phi has a nice post on writing documentation with Emacs and Org-mode. The post is reminiscent of Mike Hamrick’s video on keeping technical documents consistent and uses some of the same techniques.

Alpha2phi starts with importing Fabrice Niessen’s excellent ReadTheOrg theme for exporting (to HTML) Org documents. Like Hamrick, he imports a separate file with useful utility functions, including an initialization function that is called from the document’s header.

Finally, he shows how you can call a function to interpolate a value or some text in the body of the document.

This post is a nice complement to Hamrick’s video. If you prefer to read the material rather than watch a video of it, take a look at this post. The material is very useful for anyone writing documentation.

Posted in General | Tagged , | Leave a comment

Walmart and Apple Pay: What COVID-19 Taught Me

Everyday, I check the status of two items:

  1. Has the State of Florida finally rolled out their promised digital driver license program?
  2. Has Walmart finally accepted the inevitable and started accepting Apple Pay?

So far, no joy but the two items aren’t really the same. Florida has committed to digital driver’s licenses and although they’re proceding slower than I’d like, I’m sure they’re working through the problems to get to program running.

Walmart is just being stubborn. For years they used their commitment and obligations to the still-born CurrentC consortium as the reason they couldn’t accept Apple Pay. With the disintegration of CurrentC (in 2016) that excuse evaporated but Walmart still won’t enable Apple Pay. The reason, of course, is what it always was: Walmart wants to harvest their customers’ data for targeted advertising and Apple Pay specifically prevents that.

Before the pandemic, I frequently shopped at Walmart because they were convenient and had very competitive prices. When COVID-19 took hold, I started avoiding going into crowded, closed spaces like Walmart stores but I still needed the supplies I used to get there. What I discovered is that Amazon will happily deliver all the things I used to get at Walmart to my door for comparable prices. Really, there’s no reason to go to Walmart during or after the pandemic.

So here’s the deal Walmart: start putting your customers first by—among other things—enabling Apple Pay or lose at least one customer for good. I know you won’t miss me but what if there are others like me out there?

Posted in General | Tagged | Leave a comment

Red Meat Friday: Journalists (Again)

Okay, one more swipe at journalists and then Red Meat Friday will move on. Unless, of course, the Minions force my hand.

From time to time I’ve had some harsh words about the moral and work ethic failings of journalists but perhaps they can’t help it:

As amusing as this is, it probably falls into the category of what journalists call “too good to check.” You can see the details in the Insider Article but the whole thing strikes me as less than rigorous. Still, read it and make up your own mind. In the mean time, enjoy this Friday’s red meat.

Posted in General | Tagged | Leave a comment