emacs

Helm-grep project refactoring: search and replace

With this you can readily search an entire project directory for some text, and then make whole-scale changes to any or all files containing that text. I assume you already have helm-projectile installed and you use it; if not, you’re missing out! First, install wgrep and helm-wgrep, for which I use use-package and my emacs.el init file: (use-package wgrep :ensure t :config (use-package wgrep-helm :ensure t)) Then, execute helm-projectile-grep for the text you desire.

Emacs multi-inbox Email Setup

I use the Emacs package Gnus (included in Emacs) to manage my email, and have used it this way for years. There are many reasons for managing your email locally, and even more for managing them in Emacs, but it took me years to make it through the obstacle course of actually figuring out how to do it. It requireed learning many new concepts that our day of webmail and Exchange-programs generally glosses over.

Gnus remove group

After years of using Gnus for my mail I had some anomolous groups like “mail.sent” (later I had reworked this to archive.sent, but couldn’t get rid of mail.sent); I had tried deleting the folder on my hard drive, but this only resulted in errors with trying to enter the group from the group list, but still the group was shown (even with a number of unread messages). Turns out the answer is easy:

Saving Window configs in Emacs (in-session)

Sometimes I end up with complex window configs while working in emacs, as you see in the title image. Using Winner mode you can easily track linearly backward through your screens, “undo” style; but sometimes I have a set up–as when developing a system–that I want to return to frequently. It turns out you have Window Registers for this purpose, and they work well. window-configuration-to-register: C-x r w <key> This saves it for easy reloading with C-x r j <key> and you’re back where you want to be!

Emacs for Study: PDF Conversion and Editing

Sometimes in the process of studying it is desirable to take the papers you are researching, which usually come as PDFs, and to convert them to an editable form. After you’re finished editing the final product could be PDF, Microsoft Word, web HTML, or something else. As this is a process that I’ve required for a number of different reasons, this tutorial covers the tools I use. Unlike other tutorials I’ve done, this process utilizes several tools beyond emacs.

Emacs save custom agenda filter views

If you work much with the Orgmode agenda you soon find that you can have a huge amount of appointments and todo tasks to deal with. You can sort these by putting tags on the, either straight from the agenda view (with :) or in the actual org file (with C-c while point is over a headline). You can then use those tags to filter and search your agenda (from agenda view, with / and \ followed by TAB).

Orgmode Agenda in New Frame Window

If you work much with the Orgmode agenda you soon find that you can have a huge amount of appointments and todo tasks to deal with. You can sort these by putting tags on the, either straight from the agenda view (with :) or in the actual org file (with C-c while point is over a headline). You can then use those tags to filter and search your agenda (from agenda view, with / and \ followed by TAB).

Emacs for Study Part 1: Text (Scripture) Study

At long last I’m producing the next of my “NOn-Programmer’s Emacs” (NOPE) editions. This post is companion to a Youtube video in the NoPE series. We’re looking at using Emacs (and in particular, Orgmode) for studying texts; in this episode of the series, we’ll be using as our example texts the LDS scriptures (official site) and some related texts. I’ve made the base files I use (org and plain-text of the scriptures) available here:

Non-Programmer's Emacs: a First Demo

Emacs isn’t just for programmers; the majority of what I do in emacs is non-programming. This video shows just a few of my most common Emacs tasks. This screencast was made using RecordMyDesktop.

Org Footnotes

A powerful feature of orgmode/emacs is the ability to easily and rapidly insert footnotes1 (See section ) and then easily export them, even as html.2 (See section ) You can learn all about the commands in the official manual entry. Footnotes: ^{1 (See section )} Just like this one, using C-c C-x f ^{2 (See section )} Export as HTML and view in browser using: C-c C-e h o