tags:

views:

52

answers:

3

I'm running Mac OS X and GNU Emacs 22.3.1. I use a swedish keyboard. I am unable to type braces {}, [] in emacs. When trying to type braces I get parenthesis. Since I'm quite new to Mac and emacs I need a little help on configuring emacs to get this right.

TIA

Niclas

A: 

I would try a Cocoa based emacs ie version 23. For a mac integrated emacs I would try Aquamacs

Mark
+1  A: 
(setq mac-option-modifier nil
      mac-command-modifier 'meta
      x-select-enable-clipboard t)

This is what I use for my swedish keyboard. It even works with svorak A5, if you use it :)

monotux
A: 

I'm assuming that you're using a graphical emacs, and not just using the OS X bundled version from within Terminal.

To ensure that Emacs responds to keystrokes in the same way as other OS X apps, try the following:

(setq default-input-method "MacOSX")

And in particular, if you want to use the Option key to enter extended characters not on your keyboard (e.g. "Option-c c" => "ç"), use these settings:

(setq mac-command-modifier 'meta)
(setq mac-option-modifier 'none)

(Put these commands in your ~/.emacs or ~/.emacs.d/init.el emacs startup file, and restart Emacs, or just "M-x eval-buffer" while editing the file.)

sanityinc