 'interprogram-cut-function'"
   ;; http://www.emacswiki.org/emacs/ExecuteExternalCommand
   (start-process "copy-to-clipboard" "*Messages*" "~/bin/copy.sh" text))
-(setq interprogram-cut-function 'pipe-to-pbcopy)
 
 (defun get-pbpaste ()
   "Execute `pbpaste`.  This function is meant to be assigned to 'interprogram-paste-function'."
   (shell-command-to-string "pbpaste"))
-(setq interprogram-paste-function 'get-pbpaste)
+
+(if (eq system-type 'darwin)
+  (setq interprogram-cut-function 'pipe-to-pbcopy)
+  (setq interprogram-paste-function 'get-pbpaste))
 
 ;;; .emacs.el ends here

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

;; https://github.com/sellout/emacs-color-theme-solarized/issues/141#issuecomment-71862293
(add-to-list 'custom-theme-load-path "/usr/local/share/emacs/site-lisp/solarized")
;; `t` is important: http://stackoverflow.com/a/8547861
(load-theme 'solarized t)
(setq solarized-termcolors 256)

(add-to-list 'auto-mode-alist '("\\.mustache\\'" . web-mode))
(add-to-list 'auto-mode-alist '("\\.djhtml\\'" . web-mode))

(require 'company-emoji)
(add-hook 'markdown-mode-hook 'company-mode)
(add-hook 'mail-mode-hook 'company-mode)
