Tag Archives: emacs

computing

Computing Round-up

For today’s computing round-up, I have a few tips that came in handy.

  • The LaTeX algorithmic and algorithm environments make nicely formatted pseudocode for describing algorithms. See the link above for details on usage
  • To recover an auto-saved file from Emacs, use the command “M-x recover-file”. That was a life-saver today when my internet connection decided to crap out. One of the perils of doing all my work remotely through SSH, I suppose.
  • Use Emacs Org mode to organize projects and to-do lists. I’m just starting to get my bearings, but I can already see how it is going to be phenomenally useful for larger projects. Some helpful links: official website; quick tutorial.
  • Unfortunately Org mode has some conflicts with yasnippet (another Emacs tool that I am quite fond of). Here is a link to some documentation on how to fix it.
computing

Emacs: My favorite text editor

Emacs Screenshot
For most of my text editing needs, I use Emacs. Emacs is an open source text editor freely available for most Unix-like operating systems (including Mac OS X). It is extremely powerful and infinitely customizable. One of the overriding philosophies of Emacs is that one should not need to ever use the mouse when editing a text file. Using only the keyboard feels a bit cumbersome at first, but once you have a few keystroke patterns in you muscle memory, it seems much more efficient that using the mouse.

Emacs has a thriving community of people devoted to extending Emacs and supporting other Emacs users. Thus there are tweaks and modifications that allow you to do almost anything you can imagine doing with a text editor (even browsing the web — text only). To get started with Emacs, there is a very well laid out EmacsWiki.

Here are a couple of plugins that I have gotten a lot of use from recently:

  • Color theme allows you to change the colors Emacs uses when writing code. Here is a gallery of some of the preset color themes. I’m a fan of “Blue Mood.”
  • Yasnippet allows you to create and use keyboard shortcuts (specifically tab triggers) when using Emacs. Before switching primarily to Emacs, I used TextMate for OS X. TextMate is strongly influenced by Emacs, but also includes tab triggers to run macros. A few Emacs people like this feature so much the implemented the same functionality in Emacs, resulting in Yasnippet.

I haven’t gotten too much into doing my own customization of Emacs, but I very much like the idea that I can modify however I want. It even comes with its own programming language!