diff options
Diffstat (limited to 'emacs.d/init.el')
-rw-r--r-- | emacs.d/init.el | 33 |
1 files changed, 30 insertions, 3 deletions
diff --git a/emacs.d/init.el b/emacs.d/init.el index e5aba48..55479d9 100644 --- a/emacs.d/init.el +++ b/emacs.d/init.el @@ -50,15 +50,22 @@ (add-to-list 'auto-mode-alist '("README" . markdown-mode)) (add-to-list 'auto-mode-alist '("\\.mdwn\\'" . markdown-mode))) -(use-package flycheck - :init (global-flycheck-mode)) - (use-package modus-operandi-theme :config (setq modus-operandi-theme-slanted-constructs t) (setq modus-operandi-theme-bold-constructs t) (load-theme 'modus-operandi t)) +(use-package flycheck) + +(use-package flycheck-rust) +(with-eval-after-load 'rust-mode + (add-hook 'flycheck-mode-hook #'flycheck-rust-setup)) + +(use-package flycheck-color-mode-line) +(eval-after-load 'flycheck + '(add-hook 'flycheck-mode-hook 'flycheck-color-mode-line-mode)) + ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; @@ -136,6 +143,26 @@ :foreground "#ff0000") +;; Turn on flycheck mode for program code. +(require 'flycheck) +(add-hook 'prog-mode-hook 'flycheck-mode) +(setq flycheck-idle-delay 0.25) +(setq flycheck-check-syntax-automatically + '(save idle-change new-line idle-buffer-switch mode-enabled)) +(set-face-attribute 'flycheck-error nil + :weight 'bold + :underline "#ff0000" + :foreground "#ff0000") + +;;(require 'flymake) +;;(add-hook 'prog-mode-hook 'flymake-mode) +;;(add-hook 'prog-mode-hook 'flymake-mode) +;;(set-face-attribute 'flymake-error nil +;; :underline "#ff0000" +;; :foreground "#ff0000") + + + ;; Show matching parens. (add-hook 'text-mode-hook 'show-paren-mode) (add-hook 'prog-mode-hook 'show-paren-mode) |