The Computer Oracle

How can I write braces, { and }, in Emacs on Mac OS X with a scandinavian keyboard layout?

--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Future Grid Looping

--

Chapters
00:00 How Can I Write Braces, { And }, In Emacs On Mac Os X With A Scandinavian Keyboard Layout?
00:24 Answer 1 Score 2
00:54 Accepted Answer Score 14
01:10 Answer 3 Score 2
01:22 Answer 4 Score 0
01:30 Thank you

--

Full question
https://superuser.com/questions/240994/h...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#macos #keyboard #emacs #keyboardlayout #latin1

#avk47



ACCEPTED ANSWER

Score 14


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)



ANSWER 2

Score 2


You likely have this problem in all command-line applications and even your shell.

Disable Use Option as Meta key in Terminal » Preferences » Settings » Keyboard.


This might be a problem for you, so other options are key remapping solutions, utility applications like Butler where you can define key sequences and map them on self-defined hotkeys, or changing your keyboard using Ukelele.




ANSWER 3

Score 2


I tried fondling with my keypad and found out that ctrl + alt + 8 or 9 works for curly brackets { or }




ANSWER 4

Score 0


I installed an English keyboard and changed my keyboard to English. Then press shift + Å + ^