Skip to content

Commit 858a6df

Browse files
committed
emacs: have same behavior on macos
1 parent 1c51e3b commit 858a6df

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

home/modules/emacs/init.el

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,12 @@
6767
read-file-name-completion-ignore-case t
6868
read-buffer-completion-ignore-case t)
6969

70+
;; set command as meta key on macOS
71+
(if (eq system-type 'darwin)
72+
(setq mac-command-modifier 'meta
73+
mac-option-modifier 'alt
74+
mac-right-option-modifier 'alt))
75+
7076
;; backup and lock files
7177
;; Instead of littering the current project's directory, we can use
7278
;; the xdg variables we defined to improve things up.

0 commit comments

Comments
 (0)