   (add-to-list 'auto-mode-alist '("\\.P\\'" . erlang-mode))
   (add-to-list 'auto-mode-alist '("\\.E\\'" . erlang-mode))
   (add-to-list 'auto-mode-alist '("\\.S\\'" . erlang-mode))
-  :config
-  (bind-key "C-c l" 'magit-log-head  erlang-mode-map)
+  :bind (:map erlang-mode-map ("C-c l" . magit-log-head))
+  :config
   (add-hook 'erlang-mode-hook
             (lambda ()
               (setq mode-name "erl"

  (setq ahs-default-range 'ahs-range-whole-buffer))

(use-package bookmark
  :bind ("C-x r" . bookmark-map))

(use-package delsel
  :config

              (use-package eproject-extras
                :demand t
                :diminish eproject-mode
                :bind (:map eproject-mode-map ("C-c b" . bury-buffer))))))

(use-package emacs-lisp-mode
  :bind (("M-." . find-function-at-point)
