From 0364f07e8f2333e3a8c7bc7022aa582321542ca5 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Wed, 16 Oct 2024 23:07:11 +0200 Subject: emacs: Move Darwin config to mm-darwin.el --- .config/emacs/init.el | 8 -------- .config/emacs/modules/mm-darwin.el | 8 ++++++++ 2 files changed, 8 insertions(+), 8 deletions(-) (limited to '.config/emacs') diff --git a/.config/emacs/init.el b/.config/emacs/init.el index 778fc82..a1d7312 100644 --- a/.config/emacs/init.el +++ b/.config/emacs/init.el @@ -165,14 +165,6 @@ buffer suppressed." (add-hook 'text-mode-hook #'auto-fill-mode) (prefer-coding-system 'utf-8) - ;; Proper Mac support - (when mm-darwin-p - (setopt - mac-option-key-is-meta nil - mac-command-key-is-meta t - mac-command-modifier 'meta - mac-option-modifier 'none)) - ;; Disabled modes (blink-cursor-mode -1) (line-number-mode -1) diff --git a/.config/emacs/modules/mm-darwin.el b/.config/emacs/modules/mm-darwin.el index 79df610..90dbedd 100644 --- a/.config/emacs/modules/mm-darwin.el +++ b/.config/emacs/modules/mm-darwin.el @@ -19,4 +19,12 @@ (when (display-graphic-p) (mm-ns-raise-emacs)) + +;;; Set Modifier Keys + +(setopt mac-option-key-is-meta nil + mac-command-key-is-meta t) +(setopt mac-option-modifier 'none + mac-command-modifier 'meta) + (provide 'mm-darwin) -- cgit v1.2.3