Emacs on Mac OS X – How to Write Braces { and } with Scandinavian Keyboard Layout

emacskeyboardkeyboard-layoutlatin1macos

I can not write { and } in Emacs on my Macbook Air with a Swedish keyboard layout. In all other programs I do this by pressing alt + shift + ( for { and the corresponding keys with ) for }.

How can I type { and } in emacs?

Best Answer

I found the answer on StackOverflow.com:

Unable to type braces and square braces in emacs

(setq mac-option-modifier nil
      mac-command-modifier 'meta
      x-select-enable-clipboard t)