Installing the Emacs Ado-mode

Basic Installation Instructions

Emacs is getting more user-friendly all the time (especially Aquamacs Emacs on the Mac), but it still has some unixy ways of doing things which allow great freedom at the price of obscure installation instructions.

  1. Download the current zip file from http://stata.com/users/brising/ado-mode-1.10.1.2.zip, and unzip it.
  2. Put the ado-mode-1.x.x.x folder in a place where Emacs will find it.
  3. This ado-mode is very customizable—it is made to automatically store new ado-files in a special directory designated by you, put your name and affiliation at the end of any help files you write, and the like. It also needs to be able to find its templates for do-files, ado-files and help files. You can set all these from within Emacs by using M-x customize-group RET ado, and pay close attention to the group called Ado Essentials.
  4. If you would rather work with customization files directly, there are three files in the ado-mode folder called site_scrap.el, personal_scrap.el, and hacker_scrap.el It might be worth peeking at these so that you can see what is set.

Changing appearance

You will likely want to change the default colors for the font highlighting. Here is a screen-shot of the highlighting I use, and which I find quite readable:

highlighing example

The font-locking can be changed either by customizing the ado-mode faces directly using M-x customize-group ado-font-lock, or by changing the font-lock faces which are inherited by the ado-mode via M-x customize-group font-lock-highlighting-faces. I prefer the latter. In any case, here are the actual colors from the above screen-shot:

Note that specifiying the font is system specific. I use the apple-dejavu sans mono font, because I like it. Others like other fonts. You should set the font from within emacs by using M-x customize, and then clicking the Faces, Basic Faces, and then click the show button next to Default face. This will avoid all the platform specific methods for referring to fonts.

Troubleshooting

If you run into trouble, because you keep getting Symbol's function definition is void: line-number-at-pos errors, put the following into your .emacs file: (require 'ado-hacks). This should cause the proper function get loaded without having it interfere with future updates. (This problem seems to happen for emacs 21.something and earlier.)

If you have any trouble with the installation instructions, drop me a line so that I can fix them.

If you'd like to be notified when the package gets updated, click here to send an email to me. Please don't change the subject. Privacy? You bet. When the advertising trolls come around, I'll give them everybody's name except yours. Seriously: I won't use it for anything but notifications of new ado modes.


Send Bill comments about this page or go to his main home page

Last Updated Wednesday, June 17, 2009, 12:14