rust: force rustic-mode in emacs >= 26, for older refer to common section

This commit is contained in:
Łukasz Pankowski 2019-12-14 15:23:10 +01:00
parent 3eabfc7d04
commit b8d1be8915

View File

@ -712,10 +712,13 @@ inserted between the braces between the braces."
(use-package rustic
:if (>= emacs-major-version 26)
:demand ; to use rustic-mode even if rust-mode also installed
:hook (rustic-mode . my-rustic-mode-hook-fn))
;;; But if you have Emacs older than 26 than you should install
;;; [racer](https://github.com/racer-rust/racer) and add
;;; [racer](https://github.com/racer-rust/racer) and for **tab
;;; completion** add [my common settings for programming modes] and
;;; then add
(use-package cargo
:if (< emacs-major-version 26)
@ -735,10 +738,6 @@ inserted between the braces between the braces."
(rust-mode . eldoc-mode)))
(use-package company-lsp
:defer)
;;; ### Meson build system ###
(use-package meson-mode