summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-10-16 23:07:11 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-10-16 23:07:11 +0200
commit0364f07e8f2333e3a8c7bc7022aa582321542ca5 (patch)
tree55206f0aed213d288d20e13609c495d86f476a21 /.config
parentaa7996fc98075bb2b9f41eeb782dedb9bfefb9f1 (diff)
emacs: Move Darwin config to mm-darwin.el
Diffstat (limited to '.config')
-rw-r--r--.config/emacs/init.el8
-rw-r--r--.config/emacs/modules/mm-darwin.el8
2 files changed, 8 insertions, 8 deletions
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)