Add formatter and some other stuff

This commit is contained in:
Maciej 2023-10-17 15:05:40 +03:00
parent 781b4c3095
commit 697984199a
Signed by: maciej
GPG key ID: 41D62D42D3B0D765
11 changed files with 146 additions and 99 deletions

30
lang/lean.el Normal file
View file

@ -0,0 +1,30 @@
;;; lean -- summary -*- lexical-binding: t; -*-
;;; Commentary:
;;; Code:
(require '+custom-pkg-prog-mode "$HOME/.emacs.d/pkg/prog-mode.el")
(require '+custom-pkg-flycheck "$HOME/.emacs.d/pkg/flycheck.el")
(use-package lean4-mode
:straight (lean4-mode
:type git
:host github
:repo "leanprover/lean4-mode"
:files ("*.el" "data"))
:defer t)
(defun activate-lean-mode ()
"All things for Lean mode."
(interactive)
;; Run LSP
(lsp-deferred)
;; Company list override
(add-to-list (make-local-variable 'company-backends)
'(company-capf company-yasnippet)))
(add-hook 'lean4-mode-hook 'activate-lean-mode)
(provide '+custom-lang-lean)
;;; lean.el ends here