20. März 2020
On my swiss keyboard I manage to type backslash, pipe and so on as shown in table below.
| Symbol | Keys |
|---|---|
| Backslash (\) | Option + Shift + 7 |
| Brackets ([ ]) | Option + 5 / Option + 6 |
| Curly Brackets ({ }) | Option + 8 / Option + 9 |
| Pipe (|) | Option + 7 |
| Tilde (~) | Option + n |
foo() |
(let ()
(global-set-key "\M-g" '(lambda () (interactive) (insert "@")))
(global-set-key "\M-5" '(lambda () (interactive) (insert "[")))
(global-set-key "\M-6" '(lambda () (interactive) (insert "]")))
(global-set-key "\M-7" '(lambda () (interactive) (insert "|")))
(global-set-key "\M-8" '(lambda () (interactive) (insert "{")))
(global-set-key "\M-9" '(lambda () (interactive) (insert "}")))
(global-set-key "\M-n" '(lambda () (interactive) (insert "~")))
)
Source: Emacs on German Mac