RParadox
RParadox

Reputation: 6851

Emacs Meta-Key in Terminal

I'm trying to configure my Meta-Key, such that I can input {},[], etc. in a terminal emacs (using a German keyboard). I haved tried setting my Meta-Key, but can't get it to work. I want to use Alt+8 for {, Alt+9 for }, Alt-5 for [, Alt-6 for ].

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

See: Unable to type braces and square braces in emacs

Upvotes: 1

Views: 1140

Answers (2)

Damien GOUYETTE
Damien GOUYETTE

Reputation: 497

For macos azerty French keyboard. It's :

(define-key global-map (kbd "M-(") "{")
(define-key global-map (kbd "M-)") "}")

Upvotes: 0

Oleg Pavliv
Oleg Pavliv

Reputation: 21162

Have you tried?

(define-key global-map (kbd "M-8") "{")
(define-key global-map (kbd "M-9") "}")

Upvotes: 3

Related Questions