diff options
| author | Ravi R Kiran <aine.marina@gmail.com> | 2013-12-03 00:56:47 (GMT) |
|---|---|---|
| committer | Ravikiran Rajagopal <ravi@nero.lan> | 2013-12-03 00:56:47 (GMT) |
| commit | f64f886f7ec5e45717e85ecbfbee05af2deeed04 (patch) | |
| tree | 7d85afd37d191320a0ad69e9b67b596c894c3012 /init.el | |
| parent | dab858a6733d059bc0a3561af2f953e44b23a737 (diff) | |
| download | dotemacs-f64f886f7ec5e45717e85ecbfbee05af2deeed04.zip dotemacs-f64f886f7ec5e45717e85ecbfbee05af2deeed04.tar.gz dotemacs-f64f886f7ec5e45717e85ecbfbee05af2deeed04.tar.bz2 | |
Set font only if found
Diffstat (limited to 'init.el')
| -rw-r--r-- | init.el | 13 |
1 files changed, 6 insertions, 7 deletions
@@ -15,9 +15,8 @@ (defun font-candidate (&rest fonts) "Return existing font which first match." (find-if (lambda (f) (find-font (font-spec :name f))) fonts)) -(set-face-attribute 'default nil :font (font-candidate '"Inconsolata" - "Source Code Pro" - "Anonymous Pro")) +(let ((fontval (font-candidate '"Inconsolata" "Source Code Pro" "Anonymous Pro"))) + (when fontval (set-face-attribute 'default nil :font fontval))) (when window-system (tooltip-mode -1) (tool-bar-mode -1)) @@ -27,10 +26,10 @@ ;; Initialize package handling: currently using only the official repository and MELPA (setq package-archives '(("gnu" . "http://elpa.gnu.org/packages/") - ;("original" . "http://tromey.com/elpa/") - ;("org" . "http://orgmode.org/elpa/") - ;("marmalade" . "http://marmalade-repo.org/packages/") - ("melpa" . "http://melpa.milkbox.net/packages/"))) + ;("original" . "http://tromey.com/elpa/") + ;("org" . "http://orgmode.org/elpa/") + ;("marmalade" . "http://marmalade-repo.org/packages/") + ("melpa" . "http://melpa.milkbox.net/packages/"))) (add-to-list 'load-path ravi/init-dir) (add-to-list 'load-path (ravi/emacs-file "site-lisp/")) (setq autoload-file (concat ravi/init-dir "loaddefs.el")) |
