       tramp-default-method "scp")
 
 ;; web-beautify mode
-(if (eq system-type 'darwin)
-    (setenv "PATH" (concat "/usr/local/bin:" (getenv "PATH"))))
+(when (eq system-type 'darwin)
+  (setenv "PATH" (concat "/usr/local/bin:" (getenv "PATH"))))
 (eval-after-load 'js2-mode
   '(define-key js2-mode-map (kbd "C-c w") 'web-beautify-js))
 (eval-after-load 'json-mode

(require 'yasnippet)
(require 'zone)

(if window-system (require 'centered-cursor-mode))

;; -----------------
;; General settings


;; smex-mode
;; bind Caps-Lock to smex
(when (eq window-system 'x)
    (shell-command "xmodmap -e 'clear Lock' -e 'keycode 66 = F13'"))
(global-set-key [f13] 'smex)
(global-set-key (kbd "M-x") 'smex)
