1Installation
First you need to install emacs. I encourage you use the enhanced carbon emacs that you’ll found here (I do confirm it works with OS X Panther).
After an update to Tiger (10.4) this version seems not to be compatible. However, I found two good alternatives:
- AquaMacs that I would not personaly recommend because it tends to open too much (more than one) window for my taste,
- YACED that seems to be the perfect replacement for me.
This version has a lot of benefices: it comes with a full featured pack for laTeX that is well interfaced with the osX tools (preview, etc...) and I personally find better than TeXShop (wich is still cool)
2Use
Well, this emacs is similar to any emacs, so you won’t have any difficulty to use it. However, remember to copy the provided dot-emacs in your .emacs file.
Cursor bug
there is one bug with the display: the block cursor disappear in some cases. A workaround is to use a bar cursor. You just have to put this in you .emacs file:
(setq initial-frame-alist
(cons '(cursor-type . bar)
(copy-alist initial-frame-alist)
)
)
(setq default-frame-alist
(cons '(cursor-type . bar)
(copy-alist default-frame-alist)
)
)
Delete Key
For those who want to use the delete button as in every other osX applications (del remove the next character), put this in your .emacs file:
(global-set-key [(kp-delete)] 'delete-char)
that should do it.
Opening links in Safari
I adapted some code (found here) to open and give focus to Safari [1].
(setq browse-url-browser-function
(lambda (url &optional new-window)
(message url)
(do-applescript (concat "tell application \"Safari\" \n activate \n open location \"" url "\" \n end tell"))))




