X-Git-Url: http://git.cielonegro.org/gitweb.cgi?a=blobdiff_plain;f=dot-files%2F_emacs_el;h=8bc9e204a81daecf00d95be115c053ac3b12adc2;hb=67cf5d8c6d79e31be1a6d8ea3ce2fc30053620f0;hp=77aa3238dbb9dfe33b0f143ffb5c980661104044;hpb=bb072c693b8c23472090271e296d33072e1cd281;p=sugar.git diff --git a/dot-files/_emacs_el b/dot-files/_emacs_el index 77aa323..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) @@ -700,7 +715,9 @@ Will prompt you shell name when you type `C-u' before this command." t) (quote (("gnu" . "https://elpa.gnu.org/packages/") ("melpa" . "https://melpa.org/packages/")))) - '(package-selected-packages (quote (cargo toml-mode rust-mode))) + '(package-selected-packages + (quote + (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 @@ -725,7 +742,7 @@ Will prompt you shell name when you type `C-u' before this command." t) '(tramp-auto-save-directory "/tmp/tramp-auto-save") '(tramp-completion-reread-directory-timeout 2) '(tramp-default-host "localhost") - '(tramp-default-method "sshx" nil (tramp)) + '(tramp-default-method "sshx") '(uniquify-buffer-name-style (quote forward) nil (uniquify)) '(uniquify-trailing-separator-p t) '(vc-cvs-diff-switches (quote ("-u")))