about summary refs log tree commit diff
path: root/users/grfn/emacs.d
diff options
context:
space:
mode:
Diffstat (limited to 'users/grfn/emacs.d')
-rw-r--r--users/grfn/emacs.d/config.el28
1 files changed, 0 insertions, 28 deletions
diff --git a/users/grfn/emacs.d/config.el b/users/grfn/emacs.d/config.el
index c06865cd730a..a99c64ba47b7 100644
--- a/users/grfn/emacs.d/config.el
+++ b/users/grfn/emacs.d/config.el
@@ -436,36 +436,8 @@
   (add-hook! json-mode #'prettier-js-mode)
   (add-hook! css-mode  #'prettier-js-mode))
 
-(require 'flycheck-flow)
-(with-eval-after-load 'flycheck
-  (flycheck-add-mode 'javascript-flow 'rjsx-mode)
-  (flycheck-add-mode 'javascript-flow 'flow-minor-mode)
-  (flycheck-add-mode 'javascript-eslint 'flow-minor-mode)
-  (flycheck-add-next-checker 'javascript-flow 'javascript-eslint))
-
-
-(require 'flow-minor-mode)
-
 (remove-hook 'js2-mode-hook 'tide-setup t)
 
-;; (require 'company-flow)
-;; (eval-after-load 'company
-;;   (lambda () (add-to-list 'company-backends 'company-flow)))
-(defun flow/set-flow-executable ()
-  (interactive)
-  (let* ((os (pcase system-type
-               ('darwin "osx")
-               ('gnu/linux "linux64")
-               (_ nil)))
-         (root (locate-dominating-file  buffer-file-name  "node_modules/flow-bin"))
-         (executable (car (file-expand-wildcards
-                           (concat root "node_modules/flow-bin/*" os "*/flow")))))
-    (setq-local company-flow-executable executable)
-    ;; These are not necessary for this package, but a good idea if you use
-    ;; these other packages
-    (setq-local flow-minor-default-binary executable)
-    (setq-local flycheck-javascript-flow-executable executable)))
-
 ;; Set this to the mode you use, I use rjsx-mode
 (add-hook 'rjsx-mode-hook #'flow/set-flow-executable t)