Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Don't fail if inconsolata isn't present.

  • Loading branch information...
commit 94f4e73889dfca04d0f997da414f98a26e0797fd 1 parent e781c9c
@catphive authored
Showing with 8 additions and 7 deletions.
  1. +8 −7 init.el
View
15 init.el
@@ -23,15 +23,16 @@
indicate-buffer-boundaries 'left)
;; font.
-(set-face-attribute 'default nil :font "Inconsolata-12")
+(when (member "Inconsolata" (font-family-list))
+ (set-face-attribute 'default nil :font "Inconsolata-12"))
;; clipboard.
-(if (not (eq system-type 'darwin))
- (progn
- ;; stops killing/yanking interacting with primary X11 selection
- (setq x-select-enable-primary nil)
- ;; makes killing/yanking interact with clipboard X11 selection
- (setq x-select-enable-clipboard t)))
+(unless (eq system-type 'darwin)
+ (progn
+ ;; stops killing/yanking interacting with primary X11 selection
+ (setq x-select-enable-primary nil)
+ ;; makes killing/yanking interact with clipboard X11 selection
+ (setq x-select-enable-clipboard t)))
;; title
(setq frame-title-format
Please sign in to comment.
Something went wrong with that request. Please try again.