mirror of
https://github.com/ellmau/nixos.git
synced 2025-12-19 09:29:36 +01:00
add lean 4 mode to emacs
This commit is contained in:
parent
ec760d7a44
commit
e00a945ae2
@ -640,6 +640,12 @@
|
|||||||
:init
|
:init
|
||||||
(apheleia-global-mode t))
|
(apheleia-global-mode t))
|
||||||
|
|
||||||
|
;; lean4-mode
|
||||||
|
(use-package lean4-mode
|
||||||
|
:defer t
|
||||||
|
:mode "\\.lean\\'"
|
||||||
|
:commands lean4-mode)
|
||||||
|
|
||||||
(custom-set-faces
|
(custom-set-faces
|
||||||
;; custom-set-faces was added by Custom.
|
;; custom-set-faces was added by Custom.
|
||||||
;; If you edit it by hand, you could mess it up, so be careful.
|
;; If you edit it by hand, you could mess it up, so be careful.
|
||||||
|
|||||||
@ -95,7 +95,7 @@ with lib; let
|
|||||||
yasnippet
|
yasnippet
|
||||||
#zenburn-theme
|
#zenburn-theme
|
||||||
]
|
]
|
||||||
++ (with lpkgs; [org-roam-ui ligatures])));
|
++ (with lpkgs; [org-roam-ui ligatures] lean4-mode)));
|
||||||
in {
|
in {
|
||||||
options.elss.programs.emacs.enable =
|
options.elss.programs.emacs.enable =
|
||||||
mkEnableOption "Setup emacs package and install it";
|
mkEnableOption "Setup emacs package and install it";
|
||||||
|
|||||||
@ -32,4 +32,25 @@ in
|
|||||||
sha256 = "baFDkfQLM2MYW2QhMpPnOMSfsLlcp9fO5xfyioZzOqg=";
|
sha256 = "baFDkfQLM2MYW2QhMpPnOMSfsLlcp9fO5xfyioZzOqg=";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
lean4-mode = trivialBuild {
|
||||||
|
pname = "lean4-mode";
|
||||||
|
version = "unstable-2023-07-14";
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "leanprover";
|
||||||
|
repo = "lean4-mode";
|
||||||
|
rev = "d1c936409ade7d93e67107243cbc0aa55cda7fd5";
|
||||||
|
sha256 = "tD5Ysa24fMIS6ipFc50OjabZEUge4riSb7p4BR05ReQ=";
|
||||||
|
};
|
||||||
|
packageRequires = with epkgs.melpaPackages; [
|
||||||
|
dash
|
||||||
|
f
|
||||||
|
flycheck
|
||||||
|
lsp-mode
|
||||||
|
magit
|
||||||
|
];
|
||||||
|
postInstall = ''
|
||||||
|
install -m=755 -D $src/data/abbreviations.json $out/share/emacs/site-lisp/data/abbreviations.json
|
||||||
|
'';
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user