From 7c5780a719565630f58e7751afa8c7e458c49871 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sat, 6 Apr 2024 11:22:57 -0700 Subject: a org file is definitely not the way for me --- config/init-osx.el | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 config/init-osx.el (limited to 'config/init-osx.el') 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 + +;;; 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 -- cgit 1.4.1