diff options
Diffstat (limited to '')
-rw-r--r-- | config/init-osx.el | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/config/init-osx.el b/config/init-osx.el new file mode 100644 index 0000000..a9fe148 --- /dev/null +++ b/config/init-osx.el @@ -0,0 +1,28 @@ +;;; init-osx.el --- configure osx -*- lexical-binding: t -*- +;; Author: Franck Cuny <franck@fcuny.net> + +;;; Commentary: + +;; configure osx + +;;; Code: + +(when (memq window-system '(mac ns)) + (add-to-list 'default-frame-alist '(fullscreen . maximized)) + (add-to-list 'default-frame-alist '(ns-appearance . nil)) + (add-to-list 'default-frame-alist '(ns-transparent-titlebar . nil)) + (when (boundp 'ns-use-native-fullscreen) + (setq ns-use-native-fullscreen nil)) + (when (boundp 'mac-allow-anti-aliasing) + (setq mac-allow-anti-aliasing t))) + +(use-package exec-path-from-shell + :ensure t + :demand t + :if (memq window-system '(mac ns)) + :config + (exec-path-from-shell-initialize)) + +(provide 'init-osx) + +;;; init-osx.el ends here |