This repository has been archived on 2024-03-23. You can view files and clone it, but cannot push or open issues or pull requests.
dianciemacs/lisp/languages.el

29 lines
575 B
EmacsLisp
Raw Normal View History

2022-11-13 18:41:10 +00:00
;; This file contains configuration for languages
;; Markdown
(use-package markdown-mode)
2022-11-14 21:24:46 +00:00
;; Diagnostics
(use-package flycheck)
2022-11-13 18:41:10 +00:00
;; eglot - Language Server Protocol ingegration
(use-package eglot)
;; Go
(use-package go-mode
:config
(add-hook 'before-save-hook 'gofmt-before-save) ; Format on save
:hook
(go-mode . flycheck-mode)) ; Enable flycheck-mode by default
2022-11-13 18:41:10 +00:00
2022-11-15 22:02:39 +00:00
;; Rust
(use-package rustic
:custom
(rustic-lsp-client 'eglot)) ; Make eglot the default LSP client
;; Lua
(use-package lua-mode)
;; Autobrackets
2022-11-13 18:41:10 +00:00
(add-hook 'prog-mode-hook 'electric-pair-mode)