diff options
author | William Carroll <wpcarro@gmail.com> | 2017-06-22T02·58-0400 |
---|---|---|
committer | William Carroll <wpcarro@gmail.com> | 2017-06-22T02·58-0400 |
commit | a349d4ca8c9aa9e8006a07ad61866e1a4d8e3496 (patch) | |
tree | e82cd73a8932b628720be8a799671f0adf64e8f5 /configs | |
parent | 53d106ee888e3291c60c28b54abc22eed3a1efee (diff) |
Conditionally set font and size for Linux and OS X
Diffstat (limited to 'configs')
-rw-r--r-- | configs/.emacs | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/configs/.emacs b/configs/.emacs index 2014ca0bca35..30b4273e29f5 100644 --- a/configs/.emacs +++ b/configs/.emacs @@ -562,21 +562,26 @@ ;; General Settings ;; Hide the menu-bar -(setq ns-auto-hide-menu-bar t) +(if (string-equal system-type "gnu/linux") (menu-bar-mode -1) + (if (string-equal system-type "darwin") (setq ns-auto-hide-menu-bar t))) + ;; Native App Settings (tool-bar-mode -1) ;; Disable GUI scrollbars (when (display-graphic-p) - (scroll-bar-mode -1) - ) + (scroll-bar-mode -1)) ;; Use spaces instead of tabs (setq-default indent-tabs-mode nil) + ;; Change font settings -(add-to-list 'default-frame-alist '(font . "Menlo-12")) +(if (string-equal system-type "gnu/linux") + (add-to-list 'default-frame-alist '(font . "Hack 9")) + (if (string-equal system-type "darwin") + (add-to-list 'default-frame-alist '(font . "Menlo 12")))) ;; Colorscheme |