Home > Programming, Software > Emacs for Mac OS X

Emacs for Mac OS X

When switching from aquamacs to emacs you have to make some adjustments to use it properly under Mac OS X.
One of the adjustments is that you could not simply type in “alt-shift-7” to get the normal backslash “\”.
The solution:
Go to “Emacs” – “Preferences” – “Environment” – “Ns : GNUstep/Mac OS X specific features” and set

  • the “Ns Command Modifier” -> “meta” and
  • the “Ns Alternate Modifier” -> “No modifier“.

Now you can use your alt and meta-keys as usual.

Second I did not remember immediately how to set my previous colors and styles (e.g. the background color or the mouse color) so I will sum up my solution:

  • open your “~/.emacs
  • type in (and replace my colors with your own)
(setq default-frame-alist
    (append default-frame-alist
        '((foreground-color . "LawnGreen")
          (background-color . "Black")
          (cursor-color . "LawnGreen"))))

And of course Emacs is much better than vim!

About these ads
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: