From f0db8bd53eaba7f29ab03eea919d65bd8ae99bc3 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Sat, 3 Sep 2016 16:47:41 -0700 Subject: [PATCH] Handle Source-Code-Pro missing --- dotfiles/emacs.d/README.org | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/dotfiles/emacs.d/README.org b/dotfiles/emacs.d/README.org index 359cb5ae..5a392dda 100644 --- a/dotfiles/emacs.d/README.org +++ b/dotfiles/emacs.d/README.org @@ -3859,14 +3859,16 @@ Set the character used to represent spaces to ยท, and the character used for tab (interactive) (if (display-graphic-p) (progn - (set-face-attribute 'default nil :font "Source Code Pro") + (condition-case _ignored + (set-face-attribute 'default nil :font "Source Code Pro") + ('error nil)) (set-face-attribute 'default nil :weight 'semi-bold) - (set-face-attribute 'default nil :height 135)) - (progn - (load-theme 'source-code-pro t) - (message "not setting font"))) - (load-theme imalison:dark-theme t) - (imalison:remove-fringe-and-hl-line-mode)) + (set-face-attribute 'default nil :height 135) + (progn + (load-theme 'source-code-pro t) + (message "not setting font"))) + (load-theme imalison:dark-theme t) + (imalison:remove-fringe-and-hl-line-mode))) ;; This is needed because you can't set the font or theme at daemon start-up. ;; (when (display-graphic-p) (imalison:appearance))