From 79fbd5e371782d924758b97db3a83b8c2ba2cb3b Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Sun, 2 Feb 2020 03:22:04 +0000 Subject: [PATCH] chore(core): Improve macOS setup --- core/siren-core-init.el | 4 ++-- core/{siren-core-osx.el => siren-core-macos.el} | 15 +++++++++------ 2 files changed, 11 insertions(+), 8 deletions(-) rename core/{siren-core-osx.el => siren-core-macos.el} (52%) diff --git a/core/siren-core-init.el b/core/siren-core-init.el index 64393d6..5b6bd3d 100644 --- a/core/siren-core-init.el +++ b/core/siren-core-init.el @@ -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) diff --git a/core/siren-core-osx.el b/core/siren-core-macos.el similarity index 52% rename from core/siren-core-osx.el rename to core/siren-core-macos.el index b22f6c6..16b7782 100644 --- a/core/siren-core-osx.el +++ b/core/siren-core-macos.el @@ -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-") '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