Skip to content

Commit

Permalink
feat: add patched pangu-spacing
Browse files Browse the repository at this point in the history
Create a patched version of pangu-spacing to prevent some annoying byte
compile errors.

See coldnew/pangu-spacing#45 for details.

Signed-off-by: Burgess Chang <[email protected]>
  • Loading branch information
brsvh committed Sep 12, 2024
1 parent ddd8220 commit 453e34c
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nix/my-emacs/overlays/my-emacs/extra-emacs-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ with epkgs;
eglot-booster
form-feed
on
pangu-spacing
sideline-eldoc
])
++ (with melpaPackages; [
Expand Down Expand Up @@ -91,7 +92,9 @@ with epkgs;
org-side-tree
ox-reveal
ox-tufte
pangu-spacing
# REVIEW Use melpa's pangu-spacing once coldnew/pangu-spacing#45 has been
# resolved.
# pangu-spacing
parsebib
pdf-tools
rainbow-delimiters
Expand Down
2 changes: 2 additions & 0 deletions nix/my-emacs/overlays/my-emacs/manual-packages/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,7 @@ in

on = callPackage' ./on;

pangu-spacing = callPackage' ./pangu-spacing;

sideline-eldoc = callPackage' ./sideline-eldoc;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
emacs,
fetchFromGitHub,
lib,
epkgs,
...
}:
let
inherit (epkgs) trivialBuild;

version = "0.4-2024-09-12";

src = fetchFromGitHub {
hash = "sha256-lu23V6GJDhM3ChMo+QGH81fh8JjZFTrf/4LkQxwdeac=";
owner = "nailuoGG";
repo = "pangu-spacing";
rev = "000aa101c1d13db6bb6c04b8962d3c98a8e7b45c";
};

meta = {
inherit (emacs.meta) platforms;

description = "Emacs minor-mode to add space between CJK and English characters";
homepage = "https://github.com/nailuoGG/pangu-spacing";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ brsvh ];
};
in
trivialBuild {
inherit meta src version;

pname = "pangu-spacing";
}

0 comments on commit 453e34c

Please sign in to comment.