Redirecting eshell Output to Another Buffer

This

is kind of cute but, of course, there are more direct ways of getting an external command’s output into an Emacs buffer. Still, one can imagine where something like this might be useful. It shows, once again, how powerful the Emacs environment is and serves as an another example of why many of us never want to leave Emacs.

Posted in General | Tagged | Leave a comment

Setting a Prefix Argument

Here’s a nice quickie from Grant Rettke. You probably won’t need this often but when you do, it’s just what you need.

Posted in General | Tagged | 1 Comment

Merging with smerge

I don’t often have occasion to resolve git merge conflicts so I never remember the details and end up changing things by hand. This tweet

caught my attention so I followed the link and read about smerge. It’s a lighter weight solution than ediff and thus easier to use. I hardly ever use ediff so I always have to figure things out when I do. That’s not really what you want to be doing in the middle of resolving a merge conflict so smerge is perfect for me because there’s not much to remember. All you have to do is press Return while the point is on an unresolved file and you enter smerge-mode.

I really should take the time to get proficient with ediff but until I do, smerge is an easy way to resolve conflicts without invoking the heavy machinery of ediff.

Posted in General | Tagged , | 11 Comments

Emacs 25.2 Coming Soon

One of the things John Wiegley said he’d like to do when he took over leadership of Emacs development was to have more frequent releases. It looks as if things are on track:

Thanks to John and Eli and the other developers for making it happen.

Posted in General | Tagged | Leave a comment

comment-dwim vs. comment-line

A few days ago I wrote about Artur Malabarba’s comment-line. That’s now in Emacs core and very useful. Xah Lee has an excellent post that compares comment-line and comment-dwim. That’s useful because the commands are very similar and it’s nice to have an exposition of how they differ.

Lee also offers a bit of Elisp that merges the two commands so that the resulting command will do what you probably want based on the context. You may or may not want to add his code to your configuration but his comparison is worth reading even if you don’t.

Posted in General | Tagged | 2 Comments

Animation of Using eshell to cd into Another Machine

Last month I wrote about using cd to ssh into a remote machine. Today, I came across this animated Gif from Bodil that shows the process in action

Notice how easy it is to log out: just type cd and you’re back in your home directory on the local machine. Also notice how easy it is to use Magit remotely.

A really nice and informative animation and it takes less than two minutes to watch.

Posted in General | Tagged | 6 Comments

Joel Spolsky on Open Offices

If you’ve been around here for awhile, you know my feelings about open offices: despite the self-serving cant from management, they’re really about saving money. Everyone who does creative work knows how devastating the constant interruptions can be on productivity and focus.

Joel Spolsky—whose company, Fog Creek Software, is famous for providing developers with private offices—has a few words to say about this and the effect Facebook’s infamous 8-acre open office has on productivity. He makes a point that is often not appreciated by management imagining that they will save money by having an open office. Spolsky says that Facebook is paying its engineers 40–50 percent more than other companies and that is usually an indication that people don’t want to work there.

Of course they don’t. Who would? Facebook is doing interesting work and solving serious problems so you’d think it would be a great place to work. That is until they show you your 8-acre office shared by every other engineer in the company. Facebook can talk all it wants about synergy and communication but the fact is no one wants to work in conditions that would make the food court at a typical mall seem appealing. So they don’t. At least not until you bribe them with a salary 50% above normal.

Be sure to read the comments too. Open offices don’t have very many supporters among those who have to work in them.

Posted in General | Tagged , | Leave a comment

Dennis Ritchie

The Internet appears to be on fire with news that Dennis Ritchie has died. Folks, that was 5 years ago. How can you not know this? Ritchie was one our leading lights and his legacy is everywhere within our industry and even our world.

The “news” appears to have been set off when Wired reran a story of his death from 2011. I don’t know if it was meant as a memorial or was just a mistake. Regardless, that’s no excuse for all these people posting about his death as if it just happened. I really don’t understand how some practitioners in our field can be so unaware that one of our leading icons died 5 years ago. Maybe they need to get out into the big blue room a little more.

UPDATE [2016-10-13 Thu 19:01]: C|Net has an article on this. It’s astounding that serious tech figures like Om Malik, Sundar Pichai, and Craig Newmark didn’t know that Ritchie has been dead for 5 years.

Posted in General | Tagged | 2 Comments

Comment Line in Emacs 25

A couple of years ago, I wrote about a nice bit of Elisp from Artur Malabarba that deals with commenting and uncommenting whole line(s). It’s sort of like comment-dwim except that it deals with whole lines. Recently, Malabarba resumed blogging at Endless Parentheses and mentioned that the code in question is part of Emacs 25.

Malabarba describes the code here but you should note that it is now bound to Ctrl+x Ctrl+; instead of Ctrl+;.

Posted in General | Tagged | Leave a comment

How a Non-Developer Uses Emacs

Charles-H. Schulz is not a developer—although he is technically proficient. He describes himself as specializing in literature, history and philosophy. He’s also an Emacs user. I find that interesting because I’m always fascinated with how people who aren’t writing code use Emacs and how they took the unlikely step of getting started.

Schulz has a post in which he describes how he uses Emacs. It’s easy to see him as a power user because he performs many—or even most—of his daily tasks in Emacs. That includes mu4e for email, blogging, IRC, file management, terminal, and, of course, Org mode. Like most of us he prefers to browse with a dedicated browser rather than, say, eww, and he doesn’t like the available Emacs packages for RSS or Twitter. Still, he does an impressive number of his daily chores from within Emacs.

If this sort of thing interests you too, head on over to and take a look at his write-up.

Posted in General | Tagged | 2 Comments