 (require 'crux)
 
 (setenv "PAGER" (executable-find "cat"))
-(global-set-key (kbd "C-c t")
-                (lambda ()
-                  (interactive)
-                  (crux-start-or-switch-to 'shell "*shell*")))
+(bind-key "C-c t" '(lambda ()
+                     (interactive)
+                     (crux-start-or-switch-to 'shell "*shell*")))
 
 (require 'volatile-highlights)
 (volatile-highlights-mode t)

      whitespace-style '(face trailing newline))

(require 'shrink-whitespace)
(global-set-key (kbd "M-\\") 'shrink-whitespace)

(require 'expand-region)
(global-set-key (kbd "C-=") 'er/expand-region)

(require 'visual-regexp)
(global-set-key (kbd "C-c r") 'vr/replace)

(diminish 'eldoc-mode)
(setq eldoc-idle-delay 0.2)

(require 'vc-darcs)
(add-hook 'find-file-hooks 'vc-darcs-find-file-hook)

(require 'dumb-jump)
(setq dumb-jump-selector 'helm
      dumb-jump-prefer-searcher 'ag)    ;; because https://github.com/jacktasia/dumb-jump/issues/129

(require 'js2-mode)
(add-to-list 'auto-mode-alist '("\\.js\\'" . js2-mode))
(setq js-indent-level 2)
(bind-keys :map js2-mode-map
           ("M-." . dumb-jump-go)
           ("M-," . dumb-jump-back)
           ("C-." . imenu))

(quelpa '(inf-js :fetcher github :repo "velkyel/inf-js"))
(require 'inf-js)
