mirror of
https://github.com/doomemacs/doomemacs
synced 2025-09-06 15:13:33 -05:00
General refactor + cleanup
This commit is contained in:
@@ -21,13 +21,13 @@
|
||||
|
||||
(eldoc-mode +1)
|
||||
(auto-compile-on-save-mode +1)
|
||||
(rainbow-delimiters-mode +1)
|
||||
|
||||
(when (and buffer-file-name
|
||||
(not (file-in-directory-p buffer-file-name doom-emacs-dir)))
|
||||
(flycheck-mode +1))
|
||||
|
||||
;; improve fontification
|
||||
(rainbow-delimiters-mode +1)
|
||||
(highlight-quoted-mode +1)
|
||||
(highlight-numbers-mode +1)
|
||||
(font-lock-add-keywords
|
||||
|
@@ -18,7 +18,7 @@
|
||||
|
||||
;; Favor local eslint over global, if available
|
||||
(defun +javascript|init-flycheck-elint ()
|
||||
(when (derived-mode-p 'js-mode 'js2-mode)
|
||||
(when (derived-mode-p 'js-mode)
|
||||
(when-let ((eslint (expand-file-name "node_modules/eslint/bin/eslint.js" (doom-project-root)))
|
||||
(exists-p (file-exists-p eslint))
|
||||
(executable-p (file-executable-p eslint)))
|
||||
|
Reference in New Issue
Block a user