Skip to content

Commit

Permalink
emacs: use use-package for rust-mode
Browse files Browse the repository at this point in the history
- Add note pertaining to weird behavior with rustc+direnv
  • Loading branch information
evanjs committed Oct 27, 2019
1 parent 9ba434e commit 1175a2a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion config/emacs/modules/rust.nix
Expand Up @@ -23,9 +23,15 @@ with lib;
];

init.rust = ''
(require 'rust-mode)
(use-package rust-mode)
(use-package rustic)
;; TODO direnv keeps complaining about the various temp folders that direnv+cargo seem to create not existing
;; 1) What creates these?
;; 2a) Can we ignore the errors?
;; 2b) Can we ensure these folders are either created normally when editing Rust files in emacs?
;; 2c) Can we prevent these folders from being created, if it doesn't affect my current workflow? (direnv+cargo)
(setq rustic-lsp-client 'eglot)
(setq rustic-lsp-server 'rust-analyzer)
(setq rustic-compile-backtrace 1)
Expand Down

0 comments on commit 1175a2a

Please sign in to comment.