6V8 - Production of my Mind

Home page > For your Computer > Emacs and OS X

Emacs and OS X

 

When you switch from linux to apple OS X because everybody around you says its *nix and beautiful, you know they are right but you still want to use Emacs. Why?

because it’s Emacs!clin d'oeuil

3 January 2004, by Mortimer

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"))))
Date of online publication: 3 January 2004
last-update: 23 September 2005
All the versions of this article:
Forum messages 1
visits:
2495

Creative Commons Attribution NonCommercial ShareAlike 2.5  License

notes

[1] Code to open in other browsers exists in browse-url.el if you are interested

 

P.S.

if you are looking for a microsoft Windows version of emacs, try at this page: ntemacs

Reply to this article

1 Message

 

The most read articles

 
©
Pierre Andrews
York, uk
| Site Map | Site created with SPIP 1.9.2c [10268] | RSS | template by IZO, Mortimer. | clicky stats
before dessert debate there and
before dessert debate there and
before dessert debate there and
before dessert debate there and
before dessert debate there and