You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

22 line
719 B

  1. ;;-*-mode: emacs-lisp; coding: utf-8;-*-
  2. (when window-system
  3. (require 'cl)
  4. (defun font-candidate (&rest fonts)
  5. "Return first font that matches list of provided fonts."
  6. (find-if (lambda (f) (find-font (font-spec :name f))) fonts))
  7. ;; Try out these fonts in order of preference depending on install status.
  8. (set-face-attribute 'default nil :font
  9. (font-candidate '"Source Code Pro-14:weight=normal"
  10. "Menlo-12:weight=normal"
  11. "Monaco-12:weight=normal"))
  12. (cond (linux-p
  13. (setq interprogram-paste-function 'x-cut-buffer-or-selection-value)
  14. (setq x-select-enable-clipboard t)
  15. )
  16. )
  17. )