diff --git a/.emacs.d/include/ocamlconfig.el b/.emacs.d/include/ocamlconfig.el new file mode 100644 index 0000000..4487543 --- /dev/null +++ b/.emacs.d/include/ocamlconfig.el @@ -0,0 +1,9 @@ +;;; ocamlconfig.el --- Configuration for OCaml and Tuareg +;;; Commentary: +;;; Code: + +(add-hook 'tuareg-mode-hook #'flycheck-ocaml-setup) +(add-hook 'tuareg-mode-hook #'(lambda () (merlin-mode -1))) +(setq utop-command "opam exec -- dune utop . -- -emacs") + +;;; ocamlconfig.el ends here diff --git a/.emacs.d/include/rustconfig.el b/.emacs.d/include/rustconfig.el new file mode 100644 index 0000000..6b6d12f --- /dev/null +++ b/.emacs.d/include/rustconfig.el @@ -0,0 +1,16 @@ +;;; rustconfig.el --- Configuration for Rust. +;;; Commentary: +;; Configuration for Rust; +;;; Code: + +(setq lsp-rust-analyzer-cargo-watch-enable t) +(setq lsp-rust-analyzer-cargo-watch-command "clippy") + +;; Inlay hints +(setq lsp-rust-analyzer-server-display-inlay-hints t) +(setq lsp-rust-analyzer-inlay-hints-mode t) +(setq lsp-rust-analyzer-display-chaining-hints t) +(setq lsp-rust-analyzer-parameter-hints t) +(setq lsp-rust-analyzer-display-closure-return-type-hints t) + +;;; rustconfig.el ends here