feat(emacs): add rust and ocaml configs
Signed-off-by: Lucas Sta Maria <lucas@priime.dev>
This commit is contained in:
parent
8ac7f4a5ae
commit
1d323ff80c
3 changed files with 22 additions and 17 deletions
|
@ -80,6 +80,15 @@
|
|||
(straight-use-package 'slime)
|
||||
(straight-use-package 'haskell-mode)
|
||||
(straight-use-package 'lsp-haskell)
|
||||
(straight-use-package 'company-coq)
|
||||
(straight-use-package 'proof-general)
|
||||
|
||||
(straight-use-package 'tuareg)
|
||||
(straight-use-package 'utop)
|
||||
(straight-use-package 'dune)
|
||||
(straight-use-package 'flycheck-ocaml)
|
||||
(straight-use-package 'merlin-eldoc)
|
||||
(straight-use-package 'ocamlformat)
|
||||
|
||||
|
||||
;; ====== Custom =============================
|
||||
|
@ -97,6 +106,8 @@
|
|||
(load-library "cppconfig")
|
||||
(load-library "pdfconfig")
|
||||
(load-library "gpgconfig")
|
||||
(load-library "rustconfig")
|
||||
(load-library "ocamlconfig")
|
||||
|
||||
;; ====== Hooks ==============================
|
||||
(add-hook 'after-init-hook 'global-company-mode)
|
||||
|
@ -115,13 +126,16 @@
|
|||
(add-hook 'python-mode-hook #'lsp)
|
||||
(add-hook 'go-mode-hook #'lsp)
|
||||
(add-hook 'tuareg-mode-hook #'lsp)
|
||||
(add-hook 'haskell-mode-hook #'lsp)
|
||||
|
||||
(add-hook 'emacs-lisp-mode-hook #'paredit-mode)
|
||||
(add-hook 'scheme-mode-hook #'paredit-mode)
|
||||
(add-hook 'racket-mode-hook #'paredit-mode)
|
||||
(add-hook 'clojure-mode-hook #'paredit-mode)
|
||||
(add-hook 'lisp-mode-hook #'paredit-mode)
|
||||
(add-hook 'emacs-lisp-mode-hook #'paredit-mode)
|
||||
(add-hook 'scheme-mode-hook #'paredit-mode)
|
||||
(add-hook 'racket-mode-hook #'paredit-mode)
|
||||
(add-hook 'clojure-mode-hook #'paredit-mode)
|
||||
(add-hook 'lisp-mode-hook #'paredit-mode)
|
||||
(add-hook 'racket-repl-mode-hook #'paredit-mode)
|
||||
|
||||
(add-hook 'lsp-mode-hook 'lsp-ui-mode)
|
||||
(add-hook 'lsp-mode-hook 'lsp-inlay-hints-mode)
|
||||
|
||||
(add-hook 'racket-mode-hook 'racket-xp-mode)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue