zzamboni.org
Ideally Blue

zzamboni.org
Ideally Blue

These are the things I have written about

emacs

See all posts on posterous with this tag ยป
Nov 27 / 1:47am

Remapping Mac modifier keys on Emacs 23.3

I just switched from Carbon Emacs (which is old Emacs 22.x) to Emacs for OS X Modified on my Mac (which is a Cocoa app, and Emacs 23.3).

One of the unwelcome changes was that the Emacs 'Meta' modifier is now by default mapped to the Option key and not Command as before. But this gave me the opportunity to learn how to map the Mac keyboard modifier keys arbitrarily. I now have the following in my .emacs:

I'm documenting it here just in case someone (or my future self, when I need to redo my configuration at some point) finds it useful.

Filed under  //  emacs   keyboard   mac  
Aug 17 / 2:36am

Installing AucTeX on EmacsW32 on Win7/64bit

Today I had to install AucTeX to use on my Win7/64 machine under EmacsW32. I found the basic instructions here: http://www.sturmnet.org/blog/2007/09/01/installing-auctex-in-emacsw32, but I had to modify them a bit (in particular, I am using tetex installed from cygwin instead of MiKTeX). Here are the commands I used:

$  mkdir -p /usr/local/share/texmf
$ ./configure --prefix='c:/Program Files (x86)/Emacs/emacs' --with-texmf-dir='/usr/local/share/texmf' --with-lispdir='c:/Program Files (x86)/Emacs/emacs/site-lisp'
$  make
$  make install

I then added the following lines to my C:\Program Files (x86)\Emacs\site-lisp\site-start.el file:

(load "auctex.el" nil t t)
(load "preview-latex.el" nil t t)
(eval-after-load 'info
       '(add-to-list 'Info-directory-list "c:/Program Files/Emacs/share/info"))
(setq TeX-auto-save t)
(setq TeX-parse-self t)

Everything seems to be working properly, even preview-mode.

Filed under  //  emacs   latex   tips   windows