From 08717a2375b827ce167cc84a76978346dce7b179 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sat, 2 Oct 2021 14:51:44 -0700 Subject: emacs: set variables if they exist --- emacs/custom/fcuny-ui.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'emacs') diff --git a/emacs/custom/fcuny-ui.el b/emacs/custom/fcuny-ui.el index 16990b3..b7b6ccf 100644 --- a/emacs/custom/fcuny-ui.el +++ b/emacs/custom/fcuny-ui.el @@ -45,8 +45,10 @@ (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)) - (setq ns-use-native-fullscreen nil) - (setq mac-allow-anti-aliasing t)) + (when (boundp 'ns-use-native-fullscreen) + (setq ns-use-native-fullscreen nil)) + (when (boundp 'mac-allow-anti-aliasing) + (setq mac-allow-anti-aliasing t))) (when (memq window-system '(x)) (set-frame-font "Source Code Pro-10") ;; this is a fall back in the case we have unicode characeters. -- cgit 1.4.1