diff options
author | Griffin Smith <grfn@gws.fyi> | 2021-07-15T13·01-0400 |
---|---|---|
committer | grfn <grfn@gws.fyi> | 2021-07-16T13·44+0000 |
commit | 2c6b00330f9e468ad4b2d624818c270f56c01022 (patch) | |
tree | b0821a9731faeeb467ce556af0734d25f2f3ac99 | |
parent | af7d26f08d424bbeaad8819760199e793dc22337 (diff) |
refactor(gs/emacs): Drop flow config r/2692
Change-Id: Ide0f3c4de34e6d9cb90038094407f1aa99ccf96f Reviewed-on: https://cl.tvl.fyi/c/depot/+/3250 Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
-rw-r--r-- | users/grfn/emacs.d/config.el | 28 |
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) |