 (setq erlang-electric-commands nil)
 
 ;; EQC Emacs Mode -- Configuration Start
-(add-to-list 'load-path (erlang-get-current-version erlang-home "eqc-*/emacs"))
-(autoload 'eqc-erlang-mode-hook "eqc-ext" "EQC Mode" t)
-(add-hook 'erlang-mode-hook 'eqc-erlang-mode-hook)
-(setq eqc-max-menu-length 30)
-(setq eqc-root-dir (erlang-get-current-version erlang-home "eqc-*"))
+(setq eqc-installed nil)
+(when eqc-installed
+  (add-to-list 'load-path (erlang-get-current-version erlang-home "eqc-*/emacs"))
+  (autoload 'eqc-erlang-mode-hook "eqc-ext" "EQC Mode" t)
+  (add-hook 'erlang-mode-hook 'eqc-erlang-mode-hook)
+  (setq eqc-max-menu-length 30)
+  (setq eqc-root-dir (erlang-get-current-version erlang-home "eqc-*")))
 
 ;; Erlang hooks
 (add-hook 'erlang-mode-hook 'erlang-key-bindings)


(defun eww-other-window (url)
  (save-excursion
    (split-window-vertically)
    (other-window 1)
    (eww url)
    (other-window 1)))

(defun to-file-url (path)
 (format "file://%s" path))

  (car (file-expand-wildcards
        (format "%slib/%s" erlang-home lib))))

(setq erlang-version  "21.3.8.4")
(setq erlang-home (format "/Users/%s/erlang/%s/" (user-real-login-name) erlang-version))
(setq erlang-root-dir erlang-home)

