 (setq erlang-compile-extra-opts '((i . "../include"))
       edts-man-root "/Users/j/.emacs.d/edts/doc/17.5"
       erlang-root-dir edts-man-root)
+
+(add-hook 'erlang-mode-hook
+          (lambda () (setq mode-name "erl")))
+
+;; Restore keys messed up by eproject
+(define-key eproject-mode-map (kbd "C-c b")  nil)
+(global-set-key (kbd "C-c b") 'bury-buffer)
 
 ;; emacs-lisp-mode
 (global-set-key (kbd "C-h C-f") 'find-function)

(define-key global-map (kbd "C-c s") 'desktop-save-in-desktop-dir)

;; Diminish mode
(diminish 'auto-complete-mode)
(diminish 'flyspell-mode)
(diminish 'paredit-mode " φ")
(diminish 'yas-minor-mode)

;; dired-mode

;; ---------
(require 'dired)
(require 'dired-details)
(require 'edts-start)
(require 'flx-ido)
(require 'flyspell)
(require 'ido-vertical-mode)
