From: PHO Date: Sun, 28 Feb 2021 07:19:12 +0000 (+0900) Subject: Auto commit by The Sugar System. X-Git-Url: https://git.cielonegro.org/gitweb.cgi?a=commitdiff_plain;h=67cf5d8c6d79e31be1a6d8ea3ce2fc30053620f0;p=sugar.git Auto commit by The Sugar System. --- diff --git a/dot-files/_emacs_el b/dot-files/_emacs_el index 0e2ec90..8bc9e20 100644 --- a/dot-files/_emacs_el +++ b/dot-files/_emacs_el @@ -155,6 +155,16 @@ ;; ditz (require-if-present 'ditz) +;; flycheck +(require-if-present 'flycheck) +(if (featurep 'flycheck) + (global-flycheck-mode)) + +(require-if-present 'flycheck-inline) +(if (featurep 'flycheck-inline) + (with-eval-after-load 'flycheck + (add-hook 'flycheck-mode-hook #'flycheck-inline-mode))) + ;; flyspell (require-if-present 'flyspell) @@ -177,6 +187,11 @@ (autoload 'rust-mode "rust-mode" nil t) (add-to-list 'auto-mode-alist '("\\.rs\\'" . rust-mode)) +(require-if-present 'flycheck-rust) +(if (featurep 'flycheck-rust) + (with-eval-after-load 'rust-mode + (add-hook 'flycheck-mode-hook #'flycheck-rust-setup))) + ;; session (require-if-present 'session) (if (featurep 'session) @@ -702,7 +717,7 @@ Will prompt you shell name when you type `C-u' before this command." t) ("melpa" . "https://melpa.org/packages/")))) '(package-selected-packages (quote - (undo-tree auto-complete typescript-mode cargo toml-mode rust-mode))) + (flycheck-inline flycheck-rust undo-tree auto-complete typescript-mode cargo toml-mode rust-mode))) '(rcirc-server-alist (quote (("irc1.ymir.jp" :nick "PHO`cons" nil nil)))) '(riece-layout "default") '(riece-layout-alist