chore(core): Improve macOS setup

This commit is contained in:
2020-02-02 03:22:04 +00:00
parent 7d0cdb6e78
commit 79fbd5e371
2 changed files with 11 additions and 8 deletions

View File

@@ -43,9 +43,9 @@
(require 'siren-core-ui)
(require 'siren-core-editor)
;; OSX specific
;; macOS specific
(when (eq system-type 'darwin)
(require 'siren-core-osx))
(require 'siren-core-macos))
;; Linux specific
(when (eq system-type 'gnu/linux)

View File

@@ -1,8 +1,8 @@
;;; siren-core-osx.el --- jimeh's Emacs Siren: OS X specific settings.
;;; siren-core-macos.el --- jimeh's Emacs Siren: macOS specific settings.
;;; Commentary:
;; OS X specific settings and tweaks for Siren.
;; macOS specific settings and tweaks for Siren.
;;; Code:
@@ -10,7 +10,7 @@
(if window-system
(set-face-attribute 'default nil :family "Monaco" :height 120))
;; Mac OS X Fullscreen (requires Emacs 24.4 or later)
;; macOS Fullscreen (requires Emacs 24.4 or later)
(global-set-key (kbd "s-<return>") 'toggle-frame-fullscreen)
;; modifier keys
@@ -20,8 +20,11 @@
;; (setq ns-command-modifier 'super)
(setq ns-function-modifier 'hyper)
;; Don't use OSX Native fullscreen mode
;; Don't use macOS' Native fullscreen mode.
(setq ns-use-native-fullscreen nil)
(provide 'siren-core-osx)
;;; siren-core-osx.el ends here
;; Set initial frame to fullscreen when Emacs starts.
(add-to-list 'initial-frame-alist '(fullscreen . fullboth))
(provide 'siren-core-macos)
;;; siren-core-macos.el ends here