Files
.emacs.d/core/siren-core-macos.el
Jim Myhrberg 4b599de686 chore(macos): No longer trigger fullscreen on startup
Recent Emacs 27 builds use the native macOS fullscreen for the first
10-20 seconds after startup when `ns-use-native-fullscreen` is set to
nil during startup.

So instead of forcing emacs into fullscreen, just force maximize the
window on startup instead.
2020-02-22 23:48:35 +00:00

36 lines
933 B
EmacsLisp

;;; siren-core-macos.el --- jimeh's Emacs Siren: macOS specific settings.
;;; Commentary:
;; macOS specific settings and tweaks for Siren.
;;; Code:
;; Enable transparent titlebar
(use-package ns-auto-titlebar
:config
(ns-auto-titlebar-mode))
;; Set default font
(if window-system
(set-face-attribute 'default nil :family "Monaco" :height 120))
;; macOS Fullscreen (requires Emacs 24.4 or later)
(global-set-key (kbd "s-<return>") 'toggle-frame-fullscreen)
;; modifier keys
;; (setq mac-command-modifier 'super)
;; (setq mac-option-modifier 'meta)
;; (setq ns-alternate-modifier 'meta)
;; (setq ns-command-modifier 'super)
(setq ns-function-modifier 'hyper)
;; Don't use macOS' Native fullscreen mode.
(setq ns-use-native-fullscreen nil)
;; Set initial frame to fullscreen when Emacs starts.
(add-to-list 'initial-frame-alist '(fullscreen . maximized))
(provide 'siren-core-macos)
;;; siren-core-macos.el ends here