From 961ac654834f4c7096a56abd537dc23bb3831a57 Mon Sep 17 00:00:00 2001 From: Klotz Date: Wed, 3 Sep 2025 10:19:23 +0200 Subject: [PATCH] Added meta key handling for macos --- emacs/init.el | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/emacs/init.el b/emacs/init.el index 21b246a..6a84609 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -18,10 +18,14 @@ (cond ((eq system-type 'darwin) - (set-face-attribute 'default nil :font "Fira Code" :height 165)) + ;; macOS-specific settings + (set-face-attribute 'default nil :font "Fira Code" :height 165) + (setq ns-alternate-modifier 'alt + ns-command-modifier 'meta + ns-function-modifier 'hyper + ns-right-alternate-modifier nil)) ;; Act as AltGR, for "|" ((eq system-type 'gnu/linux) - -(set-face-attribute 'default nil :font "JetBrains Mono" :height 130))) + (set-face-attribute 'default nil :font "JetBrains Mono" :height 130))) (global-set-key (kbd "") 'keyboard-escape-quit)