]> gitweb @ CieloNegro.org - sugar.git/commitdiff
Auto commit by The Sugar System.
authorPHO <pho@cielonegro.org>
Sun, 28 Feb 2021 07:19:12 +0000 (16:19 +0900)
committerPHO <pho@cielonegro.org>
Sun, 28 Feb 2021 07:19:12 +0000 (16:19 +0900)
dot-files/_emacs_el

index 0e2ec904e0a2b42e69b8c673c35dc239cdc1b8d0..8bc9e204a81daecf00d95be115c053ac3b12adc2 100644 (file)
 ;; 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)
 
 (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