简体   繁体   中英

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

Have you tried?

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

For macos azerty French keyboard. It's :

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM