diff options
author | Franck Cuny <franck@fcuny.net> | 2021-10-02 14:51:44 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2021-10-02 14:51:44 -0700 |
commit | 08717a2375b827ce167cc84a76978346dce7b179 (patch) | |
tree | b870036b0102265c9885d53e963d995fdab27b10 /emacs/custom | |
parent | emacs: switch back to white for the background (diff) | |
download | emacs.d-08717a2375b827ce167cc84a76978346dce7b179.tar.gz |
emacs: set variables if they exist
Diffstat (limited to 'emacs/custom')
-rw-r--r-- | emacs/custom/fcuny-ui.el | 6 |
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. |