rust: force rustic-mode in emacs >= 26, for older refer to common section
This commit is contained in:
parent
3eabfc7d04
commit
b8d1be8915
9
init.el
9
init.el
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user