summary refs log tree commit diff
path: root/emacs/custom
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2021-10-02 14:51:44 -0700
committerFranck Cuny <franck@fcuny.net>2021-10-02 14:51:44 -0700
commit08717a2375b827ce167cc84a76978346dce7b179 (patch)
treeb870036b0102265c9885d53e963d995fdab27b10 /emacs/custom
parentemacs: switch back to white for the background (diff)
downloademacs.d-08717a2375b827ce167cc84a76978346dce7b179.tar.gz
emacs: set variables if they exist
Diffstat (limited to 'emacs/custom')
-rw-r--r--emacs/custom/fcuny-ui.el6
1 files changed, 4 insertions, 2 deletions
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.