                 (bind-keys :map js-mode-map
                            ("C-c d" . js-doc-insert-file-doc)
                            ("C-c f" . js-doc-insert-function-doc-snippet)))
+
+              (use-package nodejs-repl
+                :config
+                (bind-keys :map js-mode-map
+                           ("C-x C-e" . nodejs-repl-send-last-expression)
+                           ("C-c C-j" . nodejs-repl-send-line)
+                           ("C-c r"   . nodejs-repl-send-region)
+                           ("C-c l"   . nodejs-repl-load-file)
+                           ("C-c z"   . nodejs-repl-switch-to-repl)))
 
               (define-key js-mode-map [menu-bar] nil)))
 

  :init
  (defun inflect-string ()
    (interactive)
    (cond ((memq major-mode '(java-mode js-mode js2-mode typescript-mode))
           (string-inflection-java-style-cycle))
          ((memq major-mode '(python-mode ruby-mode))
           (string-inflection-ruby-style-cycle))

               ([remap next-line]                . next-logical-line)
               ([remap previous-line]            . previous-logical-line))))

;; Sets $MANPATH, $PATH and exec-path from your shell, but only on OS X and Linux.
(use-package exec-path-from-shell
  :config
  (when (memq window-system '(mac ns x))
