An Emacs/Org-mode Setup for Writing

Bhalla Kunal over at expLog has an interesting post on his writing setup. It’s Emacs and Org-mode based but, interestingly, he says that the thing that helped his workflow the most was rotating his monitor so that he had more lines on the screen. That means, of course, that he doesn’t have as much horizontal real estate but Kunal likes to keep his lines at 80 characters or less so it works out well for him.

He does, of course, use Olivetti but that’s not too surprising. Mostly he configures Emacs and Org-mode the way you’d expect someone would for a writing environment but he does have a few customizations worth mentioning.

He’s very dedicated to keeping his lines less than 80 characters so he didn’t like the indentation for subheadings in Org-mode. He modified that by setting the indentation to a single space. That helped him keep each line on the screen. Likewise, he inhibited the indentation of the text under each headline for the same reason. He’s also set the text to be in variable pitch font. This is a popular tweak but I’ve never been a fan. I tend to think in “markup” so ASCII input text seems natural to me.

His final tweak is to enable org-hide-emphasis-markers. That means that Org will hide the markup used for bold, Italics, underline, and so on. This is exactly the sort of change that would drive me crazy but I understand how some might prefer it. I probably don’t like it for the same reason I prefer ASCII text for input.

You can get all the details in Kunal’s post so head on over there if you’d like to try some or all of his workflow.

Posted in General | Tagged , | Leave a comment

The Right Dictionary and How to Get It

Yesterday, I saw a tweet in which someone referred to Marcin Borkowski’s 2017 post on using the Webster 1923 dictionary in Emacs. Why would you want to do that? The answer to that is given in James Somers’ 2014 post, You’re Probably Using the Wrong Dictionary that I wrote about in 2015.

Since I wrote about it, I’ve been using the Webster dictionary to help me find just the right word. At first, I just used the Web site as Borkowski did but when that disappeared, I followed Borkowski’s simple instructions and installed it locally. Using sdcv-mode, it’s available directly from Emacs. If you write at all and would like to do a better job of it, you should consider installing it too. I can’t overemphasize what a great resource it is.

If this is the first time you’ve come across the Webster 1923 dictionary, do yourself a favor and read Somer’s post. It’s beautifully written and makes a strong case for using the dictionary. Integrating it into Emacs is easy and even if you’re not an Emacs user, you can still use it from the command line. If you’re a Mac user, you can install sdcv from Homebrew.

Posted in General | Tagged | Leave a comment

Strong Opinions Loosely Held

The other day in this Daring Fireball post about the demise of the Apple G4 Cube, Gruber describes Steve Jobs as having “strong opinions loosely held.” He says it was one of Job’s truly extraordinary powers. It’s hard to argue with that.

But this isn’t about Jobs hagiography. Rather, it’s about the idea of having strong opinions loosely held. It is, it seems to me, a goal towards which we should all strive. On the one hand, you don’t want to be a namby pamby cipher with no convictions at all. On the other hand you don’t want to be one of those annoying people who won’t change their mind no matter the evidence.

The idea is to be strong in your opinions and to believe in them up until the moment you receive better information. That’s what Jobs did with the G4. He absolutely believed in it. sung its praises, and believed that Apple would sell millions of them. Then it became clear that the G4 wasn’t getting any traction and Jobs was able to pivot, admit he was wrong—at least about how popular it would be—and abandon the product.

I don’t know about the rest of you but I could use some of that myself. It can be really hard to abandon an opinion to which you’ve become attached but it’s worth cultivating the ability to do so. Too bad it’s not New Years; I could use it as my resolution.

Posted in General | Leave a comment

A Paper-Like Emacs Writing Configuration

Manuel Uberti enjoys writing his journal entries with pen and paper. Lots of people do although I’m not one of them. The fact, as I’m sure I’ve mentioned before, that I have terrible handwriting no doubt has something to do with that. Still, I do understand the urge.

Uberti likes the pen and paper experience so much that he’s tried to recreate it for writing his blog entries. He’s got a post that describes his Emacs configuration to recapitulate the pen and paper experience. This means he uses the aggressively light theme Modus Operandi with a variable pitch font. As you’d expect, he uses Olivetti to further enhance the illusion of writing on a sheet of paper.

Finally, he uses freeze-it so that he can work only on the current paragraph. The idea is to inhibit the natural urge to edit what you’ve written before. I’m not sure what this has to do with recapitulating a bullet journal but I do know that it would drive me crazy. Perhaps that’s an indication I should be using it.

If this sort of thing appeals to you, you can get all the details from Uberti’s post. I’m perfectly happy to write in a normal Org-mode buffer but lots of folks like the feeling of working on a blank page when they write. As usual, Emacs has got you covered.

Posted in General | Tagged | Leave a comment

The Withering of Office Space

As we’re learning, COVID-19 is causing profound changes in the way we live and causing us to question many long-held assumptions about how things work, indeed, how they must work. I’ve written about some of those things previously.

Today’s example is one I’ve mention before: office space. For as long as any of us have been alive, offices have been a ubiquitous presence and most of us can’t imagine the modern world without them. Even those of us embracing remote work—in all its guises—have assumed that most people would have to remain stuck in an office. No alternatives seemed reasonable.

COVID-19 has turned those assumptions upside down. It turns out that many people can work effectively and efficiently outside the office. The micromanagers hate this, of course, but COVID-19 has left them no choice. Along with the micromanagers, one of the big losers in this is the office space market.

Reuters says that corporate America is downsizing it’s real estate footprint. Office space vacancy rates in New York City are already 8.7% and are expected to increase to 10–12% in two to five years. This is a win for most corporations because they’ll save significant money on the hideously expensive office rents in the major cities such as New York and San Francisco.

Of course, things could return to normal after COVID-19 subsides but that strikes me as unlikely. Many workers have found they like working from home and are loathe to return to the office and attendant commutes. Technology will get better and sanding down the rough edges with remote work and, of course, there’s those savings on office rent. I’m guessing that office space rentals is going to be one of the casualties of COVID-19.

Posted in General | Tagged | Leave a comment

Quit Processes on Exit from Emacs

Yesterday, I wrote about fixing a small annoyance on my MacBook. Here’s a quickie from Bozhidar Batsov that fixes another small annoyance. This time the annoyance is with Emacs, although as Batsov explains, it’s particularly annoying on macOS.

The problem is that Emacs wants you to confirm that it’s okay to kill any running processes when you exit Emacs. Until Emacs 26 there was no way to prevent that but now, as Batsov explains, it’s simple. You merely set confirm-kill-processes to nil and Emacs will exit without worrying about any processes that are still running.

I can sort of see why asking about the processes before exiting is a good idea—you don’t want to interrupt some important long running process—but I can’t ever remember answering anything but y to the prompt so, at least for me, turning off the prompt makes sense. If you feel the same—particularly if you’re running macOS—you might want to consider turning it off too.

Posted in General | Tagged | Leave a comment

Inserting Newlines in the Mac’s Messages App

On the heels of yesterday’s semi-Mac-specific post, here’s one that’s entirely Mac specific. If you’re a Linux or Windows user, there won’t be anything very interesting for you in this offering.

John Gruber over at Daring Fireball, provoked by a New York Times crossword clue, notes that the Enter and Return keys are not the same even though they most often perform the same function. If you didn’t already know this, the piece provides an interesting bit of information.

What was really interesting for me, though, was the footnote. One of the annoying things about the Apple Messages app is that pressing the Return key sends the message—unlike the iOS versions that have a separate Send button—so that it didn’t seem possible to format the message with separate lines. Gruber has the answer: pressing ⌥ Opt+Return will insert a newline without sending the message.

This isn’t worth declaring a national holiday over, of course, but it does resolve one more small annoyance so it’s been a good day.

Posted in General | Tagged , | Leave a comment

A Shortcut Manager for My Emacs-centric Workstation

At first glance, this post might appear to be of interest only to Mac users but most of the ideas also apply to other systems. As I’ve written many times, Emacs is at the center of my computing workflow. Almost everything I do, I do in Emacs. The only major exception is browsing for which I use Safari. Of course, other things are always going on—my continual Backblaze backup, for example—but I don’t normally interact with those.

Because I run Emacs and Safari in full screen on their own pages, it’s important that I have a quick and easy way of switching between them. I also want to bring up an Org capture buffer from anywhere in the system. I do all these things by assigning systemwide function keys to the desired action. Thus F6 switches to Emacs and F7 to Safari.

I used to do all that through Quicksilver but it’s really more heavy duty than I need since all I’m interested in is mapping shortcuts to actions. I’ve long considered getting one of the key mappers available for the Mac but as I mentioned in my Emacsclient and macOS post, I recently learned about iCanHazShortcut, which does just what I need. I specify a key combination and the desired operation and iCanHazShortcut takes care of the rest.

One of the tricky things on a Mac is telling the system to switch to an app—Emacs, say—rather than starting a new instance. It turns out that the proper command line invocation is open -a emacs. Now I have a simple and lightweight way of switching between Emacs and Safari.

That leaves only invoking a capture buffer from outside Emacs. This is the thing I’ve had the most trouble with historically. I used to use a bit of applescript to do it but it didn’t always work and other methods I tried worked even less well. Then I found Alphapappa’s yequake. It does just what I need and I can easily invoke it with iCanHazShortcut: I have it mapped to F9.

Finally, I had to deal with the touch strip on my MacBook. It likes to present different “buttons” depending on what app has focus but you can set it to always display the function keys and bring up the other buttons with the fn key.

Naturally, most of this will work on any system. You’ll have to find a key mapper appropriate to your OS but other than that, the ideas in this post should travel well.

Posted in General | Tagged | Leave a comment

Emacs for Everything

Alex Schroeder is an Emacs user who, like me, does as much as he can in Emacs. Also like me, he spends most of his tube time in Emacs or a browser. Unlike me, he uses EWW for a good part of his browsing. I’ve tried to do that too but could never make it stick. Something always seems to go wrong.

Schroeder has an interesting post in which he documents some of his configuration. Especially interesting is his Dired configurations. He use Dired as his file manager so it gets a lot of use and he has some tweaks that you might not know about. If you’re an EMMS user, you might be interested in how he uses Dired as his play list.

If you’re looking for ways to subsume more of your tasks under Emacs, Schroeder’s post may have some ideas you can use. Take a look; if nothing else you’ll enjoy his rant about open plan offices.

Posted in General | Tagged | Leave a comment

Emacs Keybindings on macOS Redux

I just saw this tweet from Vivek Haldar

and thought that it’s probably time for Irreal’s semiperiodic reminder that the reality is actually much better than a few default Emacs keybindings.

As I wrote back in 2011, you can customize the keybindings for many of macOS’s editing commands. It’s really easy to setup. You just download a file, rename it, stash it in your ~/Library/KeyBindings folder, and enjoy Emacs editing keybindings across your entire system. Even if we can’t stay in Emacs all the time, at least we can take our muscle memory with us when we’re forced to leave. All the details are in the 2011 post, so take a look at that if you’re interested.

By the way, I checked the links and they’re all still good even after the 14 years since Rus originally wrote about this.

Posted in General | Tagged | Leave a comment