Devops with Emacs

Alexey Koval has a nice post illustrating some of his devops workflow using Emacs. In a way, devops brings together most of the chores that folks use Emacs for. You edit files on remote machines to adjust configurations, you write scripts and programs, and you write prose in the form of documentation. Emacs, of course, excels in all of these tasks.

Koval embedded some short videos that illustrate these tasks and includes commentary on useful packages that help you get things done. If you’re interested in seeing how Emacs can be used for various tasks, this post is worth checking out.

Oh, and one more thing: Happy New Year from us here at the International Irreal Headquarters

Posted in General | Tagged | Leave a comment

A Paperless Workflow

Aqeel Akber has a nice post up about his recent switch to an almost paperless workflow. Akber is a physicist so he has lots of notes to take on his various projects. Until recently he kept them in separate notebooks for each project or subject area. About 8 months ago he started keeping digital notes in Emacs instead.

He did that by making a (pretty much one-to-one) translation from notebooks to Org files. He used the scheme outlined by Howard Abrams that I wrote about a couple of years ago. The result is that he now has electronic versions of his notebooks that are searchable and easily shareable either in whole or in part.

So far, he doesn’t appear to be make use of the excellent Org Babel functionality to integrate calculations and results into his notes and he doesn’t mention that he is using Org mode to write his papers. Of course with only 8 months in he’s still a relative n00b so I’m sure he’ll start making use of these facilities if he isn’t already. On the other hand, he’s discovered something that I didn’t know about Org mode. You can encrypt individual headlines in an Org file simply by adding a :crypt: tag to it. You need a bit configuration in your init.el file that Akber shows in his post.

I always learn something useful from posts like his so I recommend that you take a look. You may or may not want to adopt his exact methods but you’re sure to learn some useful ideas.

Posted in General | Tagged , | Leave a comment

Elisp Symbols Tutorial

Four years ago, I wrote about Xah Lee’s Elisp symbols tutorial. It’s a excellent tutorial that helps n00bs understand symbols and distinguish them from their close cousins, variables, found in other languages.

I noticed today that Lee has updated the tutorial. I don’t remember the details of the previous version so I don’t know how much it’s changed but it’s an excellent tutorial and well worth another look. If you haven’t seen it before and ever work with Elisp, it’s a must-read.

More generally, if you’re just getting started with Elisp, Lee’s tutorials are an excellent resource. As with other Lisps, the syntax of Elisp is really easy to learn. It’s the library and idioms that make it hard and Lee’s tutorials really help with those.

Posted in General | Tagged , | Leave a comment

Who Would Have Thought?

Via Matthew Green about this story:

Who indeed? It’s almost like they’ve never heard of the iron law of data collection.

Of course the chance of any of us being involved in a murder is vanishingly small but do you like the idea of the police being able to hear what you were saying in your home? Or do you have nothing to hide?

Posted in General | Tagged | Leave a comment

Emacs Sales Pitch

Via Wilfred Hughes, here’s a pithy sales pitch for Emacs

Posted in General | Tagged | Leave a comment

Setting Org Mode Properties

Karl Voit has a nice bit of Elisp that makes it easy for him to set Org mode properties. He maintains his contacts in an Org file that (presumably) has the contact names in the headings and details, such as phone numbers, as Org properties associated with each heading. When a phone number changes, he makes note of that in the heading but also wants to update the phone number property.

He does that by highlighting the phone number on the headline and calling his code, which asks him which property he wants to change. He gets a list from which he can select and the highlighted region is set to the value of that property.

If you have a use case similar to Voit’s, take a look at his code. It may make your workflow easier.

Posted in General | Tagged , | 2 Comments

Zamansky 25: Tramp

Mike Zamansky has Video #25 in his Using Emacs series up. This time it’s about how to use tramp. Strictly speaking, you could do what tramp does by using scp to bring the remote file to your local machine, edit it with Emacs, and then scp it back. No one’s going to do that of course, so tramp is really useful if you frequently have to edit files remotely.

As Zamansky explains, you can also use tramp to edit files on the local machine with sudo. You can even edit remote files with sudo using tramp but the method’s not obvious. Check out the video for the details. If you need to edit remote root files a lot, you may find the method I detail here useful.

If, like me, you’re an eshell user, you can simply cd to the remote machine from eshell. That method uses tramp under the covers. Here’s an animated GIF from Bodil that shows the process in action.

Posted in General | Tagged | Leave a comment

Org Mode 9.0.3

A Christmas present from Bastien

Posted in General | Tagged , | Leave a comment

A Workflow with Org Mode

Rainer König has the latest video up in his OrgMode tutorial series. This time he discusses his personal Org mode file structure and workflow. I always find it interesting to see how others do these sorts of thing so I really enjoyed his video.

The video is about 21 and a half minutes so you may have to schedule some time to watch it.

Posted in General | Tagged , | Leave a comment

Org Mode Speed Keys

John Kitchin has a nice post that illustrates how to install context sensitive speed keys for Org mode headings. I didn’t know a framework for this existed so I found his article interesting and informative.

The particular problem he is solving is extracting an email address from an Org file of contacts and opening an email buffer so that he can send an email to the contact. He also has keys for copying the address to clipboard in various ways. That’s interesting and many will find it useful for their own work but the real value, I think, is explaining how you go about installing speed keys for Org mode.

Take a look at his code for the details. It’s pretty simple if you know a bit of Elisp. He also shows how to retrieve a property from an Org mode entry so there’s a lot to learn from his code.

Posted in General | Tagged , | Leave a comment