Commit fe565234 authored by David Sveningsson's avatar David Sveningsson
Browse files

emacs: flycheck

parent 951164df
......@@ -9,7 +9,6 @@
;; misc
company
evil-numbers
flycheck
string-inflection
;; modes
......
......@@ -159,6 +159,22 @@
(use-package editorconfig
:ensure t)
#+END_SRC
* Flycheck
Syntax checking. https://www.flycheck.org/en/latest/
#+BEGIN_SRC emacs-lisp
(use-package flycheck
:ensure t
:diminish flycheck-mode
:hook (after-init . global-flycheck-mode)
:config
(setq-default flycheck-disabled-checkers '(javascript-standard)))
#+END_SRC
Jump to errors with ~avy~. ~C-c ! g~.
#+BEGIN_SRC emacs-lisp
(use-package avy-flycheck
:ensure t
:hook (global-flycheck-mode . avy-flycheck-setup))
#+END_SRC
* Javascript
** add-node-modules-path
Adds the ~node_modules/.bin~ directory to exec_path.
......@@ -493,24 +509,7 @@ Default configuration.
:ensure t)
(use-package all-the-icons
:ensure t)
(use-package flycheck
:ensure t
:diminish flycheck-mode
:hook (after-init . global-flycheck-mode)
:config
(setq flycheck-indication-mode 'right-fringe)
(setq flycheck-emacs-lisp-load-path 'inherit)
;; Jump to and fix syntax errors via `avy'
(use-package avy-flycheck
:ensure t
:hook (global-flycheck-mode . avy-flycheck-setup)))
(use-package flycheck-color-mode-line
:ensure t
:config
(eval-after-load "flycheck"
'(add-hook 'flycheck-mode-hook 'flycheck-color-mode-line-mode)))
(provide 'init-flycheck)
;(provide 'init-flycheck)
(use-package rainbow-delimiters
:ensure t
:config
......@@ -527,7 +526,6 @@ Default configuration.
(use-package webkit-color-picker
:ensure t
:bind (("C-c C-p" . webkit-color-picker-show)))
(use-package emmet-mode
:ensure t)
(add-hook 'web-mode-hook 'emmet-mode) ;; Auto-start on any markup modes
......
......@@ -127,11 +127,6 @@
(setq-default tab-width 2) ; or any other preferred value
;; flycheck
(when (require 'flycheck nil :noerror)
(add-hook 'after-init-hook #'global-flycheck-mode)
(setq-default flycheck-disabled-checkers '(javascript-standard)))
;; company
(when (require 'company nil :noerror)
(add-hook 'after-init-hook 'global-company-mode)
......@@ -152,4 +147,3 @@
;; orgmode
(setq org-clock-persist 'history)
(org-clock-persistence-insinuate)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment