 (add-to-list 'vc-handled-backends 'DARCS t)
 (add-hook 'find-file-hooks 'vc-darcs-find-file-hook)
 
-;; (if (file-exists-p "~/wren-mode.el")
-;;     (add-to-list 'load-path "~/wren-mode.el")
-;;   (quelpa '(wren-mode :fetcher github :repo "velkyel/wren-mode.el")))
-;; (require 'wren-mode)
-
 (require 'flycheck)
-
-;; (flycheck-define-checker
-;;  wren-lint
-;;  "Wren syntax checker"
-;;  :command ("wrenlint" source)
-;;  :modes wren-mode
-;;  :error-patterns ((error "WREN_ERROR_COMPILE in " (file-name) ":" line "> " (message) line-end)))
-
-;; (add-hook 'wren-mode-hook (lambda ()
-;;                             (message "activating wren-lint")
-;;                             (flycheck-select-checker 'wren-lint)
-;;                             (flycheck-mode)))
-
-
-;; (quelpa '(completing-read-xref :fetcher github :repo "travitch/completing-read-xref.el"))
-;; (require 'completing-read-xref)
-;; (when (>= emacs-major-version 27)
-;;   (setq xref-show-definitions-function #'completing-read-xref-show-defs))
-;; (setq xref-show-xrefs-function #'completing-read-xref-show-xrefs)
-
-;; (if (file-exists-p "~/pocketlang-mode.el")
-;;     (add-to-list 'load-path "~/pocketlang-mode.el")
-;;   (quelpa '(pocketlang-mode :fetcher github :repo "velkyel/pocketlang-mode.el")))
-;; (require 'pocketlang-mode)
 
 (require 'dumb-jump)
 (setq dumb-jump-selector 'completing-read

(add-hook 'js2-mode-hook 'inf-js-minor-mode)
(js2-imenu-extras-mode 1)

;; (require 'janet-mode)
;; (quelpa '(inf-janet :fetcher github :repo "velkyel/inf-janet"))
;; (require 'inf-janet)
;; (setq inf-janet-program '("192.168.0.220" . 5555))
;; (add-hook 'janet-mode-hook 'inf-janet-minor-mode)

;; (quelpa '(hlsl-mode :fetcher github :repo "darfink/hlsl-mode"))
;; (require 'hlsl-mode)
;; (add-to-list 'auto-mode-alist '("\\.hlsl\\'" . hlsl-mode))

(add-hook 'emacs-lisp-mode-hook 'rainbow-mode)
(add-hook 'js2-mode-hook 'rainbow-mode)
(add-hook 'scheme-mode-hook 'rainbow-mode)
(add-hook 'lua-mode-hook 'rainbow-mode)
(add-hook 'org-mode-hook 'rainbow-mode)

