emacs.scm (7809B)
1 (define-module (epistemia packages emacs) 2 #:use-module (guix packages) 3 #:use-module (guix download) 4 #:use-module (guix git-download) 5 #:use-module (guix build-system emacs) 6 #:use-module ((guix licenses) :prefix license:) 7 #:use-module (gnu packages emacs-build) 8 #:use-module (gnu packages emacs-xyz) 9 #:use-module (gnu packages golang-crypto)) 10 11 (define-public emacs-kaolin-themes 12 (package 13 (name "emacs-kaolin-themes") 14 (version "1.7.4") 15 (source 16 (origin 17 (method git-fetch) 18 (uri (git-reference 19 (url "https://github.com/ogdenwebb/emacs-kaolin-themes") 20 (commit (string-append "v" version)))) 21 (file-name (git-file-name name version)) 22 (sha256 23 (base32 "1lbqvs2jqvs6x8gj7bali24mw2fl6gk184zln6avy6wmam7n8dqi")))) 24 (build-system emacs-build-system) 25 (propagated-inputs (list emacs-autothemer)) 26 (arguments 27 '(#:include '("^[^/]*.el$" "^[^/]*.el.in$" 28 "^dir$" 29 "^[^/]*.info$" 30 "^[^/]*.texi$" 31 "^[^/]*.texinfo$" 32 "^doc/dir$" 33 "^doc/[^/]*.info$" 34 "^doc/[^/]*.texi$" 35 "^doc/[^/]*.texinfo$" 36 "^themes/[^/]*.el$") 37 #:exclude '("^.dir-locals.el$" "^test.el$" "^tests.el$" 38 "^[^/]*-test.el$" "^[^/]*-tests.el$"))) 39 (home-page "https://github.com/ogdenwebb/emacs-kaolin-themes") 40 (synopsis "A set of eye pleasing themes") 41 (description 42 "Kaolin is a set of eye pleasing themes for GNU Emacs With support a large number 43 of modes and external packages. Kaolin themes are based on the pallete that was 44 originally inspired by Sierra.vim with adding some extra colors. ------- This 45 package includes the following themes ------- * kaolin-dark - a dark jade 46 variant inspired by Sierra.vim. * kaolin-light - light variant of the original 47 kaolin-dark. * kaolin-aurora - Kaolin meets polar lights. * kaolin-bubblegum - 48 Kaolin colorful theme with dark blue background. * kaolin-eclipse - a dark 49 purple variant. * kaolin-galaxy - bright theme based on one of the Sebastian 50 Andaur arts. * kaolin-mono-dark - almost monochrome dark green Kaolin theme. * 51 kaolin-mono-light - light variant of monochrome theme. * kaolin-ocean - dark 52 blue variant. * kaolin-shiva - theme with autumn colors and melanzane 53 background. * kaolin-temple - dark brown background with syntax highlighting 54 based on orange and cyan shades. * kaolin-valley-dark - colorful Kaolin theme 55 with brown background. * kaolin-valley-light - light version of 56 kaolin-valley-dark theme. ------- Configuration example ------- (require 57 kaolin-themes) (load-theme kaolin-dark t) ;; Apply treemacs customization for 58 Kaolin themes, requires the all-the-icons package. (kaolin-treemacs-theme) ;; Or 59 if you have use-package installed (use-package kaolin-themes :config (load-theme 60 kaolin-dark t) (kaolin-treemacs-theme)) ;; Custom theme settings ;; The 61 following set to t by default (setq kaolin-themes-bold t ; If nil, disable the 62 bold style. kaolin-themes-italic t ; If nil, disable the italic style. 63 kaolin-themes-underline t) ; If nil, disable the underline style. ------- Some 64 extra theme features, disabled by default ------- ;; If t, use the wave 65 underline style instead of regular underline. (setq kaolin-themes-underline-wave 66 t) ;; When t, will display colored hl-line style (setq 67 kaolin-themes-hl-line-colored t).") 68 (license license:gpl3))) 69 70 (define-public emacs-kasi 71 (package 72 (name "emacs-kasi") 73 (version "1.2") 74 (source 75 (origin 76 (method git-fetch) 77 (uri (git-reference 78 (url "ssh://anongit@vineetk.net/kasi.el") 79 (commit (string-append "v" version)))) 80 (file-name (git-file-name name version)) 81 (sha256 82 (base32 "1fkwq6rg24f5rjbmpyq095msxphb9mkmxg8sh15vr3l50qckvdq5")))) 83 (build-system emacs-build-system) 84 (propagated-inputs (list age)) 85 (arguments 86 '(#:include '("^[^/]*.el$") 87 #:exclude '("^[^/]*.sh$"))) 88 (home-page "https://git.vineetk.net/kasi.el") 89 (synopsis "cryptography-agnostic emacs secrets manager") 90 (description "This package provides an easy way to manage secrets via M-x kasi.") 91 (license license:gpl3))) 92 93 (define-public emacs-llm-tools 94 (package 95 (name "emacs-llm-tools") 96 (version "1.1") 97 (source 98 (origin 99 (method git-fetch) 100 (uri (git-reference 101 (url "ssh://anongit@vineetk.net/llm-tools.el") 102 (commit (string-append "v" version)))) 103 (file-name (git-file-name name version)) 104 (sha256 105 (base32 "0zsbrq5syqr35xnlpk6wddjvhy6kcrhdzn67xnba5m3h73zydznx")))) 106 (build-system emacs-build-system) 107 (inputs (list emacs-gptel 108 emacs-magit)) 109 (arguments 110 '(#:include '("^[^/]*.el$") 111 #:exclude '("^[^/]*.sh$"))) 112 (home-page "https://git.vineetk.net/llm-tools.el") 113 (synopsis "cryptography-agnostic emacs secrets manager") 114 (description "This package provides an easy way to manage secrets via M-x kasi.") 115 (license license:gpl3))) 116 117 (define-public emacs-pulpie-eww 118 (package 119 (name "emacs-pulpie-eww") 120 (version "1.0") 121 (source 122 (origin 123 (method git-fetch) 124 (uri (git-reference 125 (url "ssh://anongit@vineetk.net/pulpie-eww.el") 126 (commit (string-append "v" version)))) 127 (file-name (git-file-name name version)) 128 (sha256 129 (base32 "0jwk4lx17330ckhnky7npkwp6xcwv37bv72jajnnabmvhs99s365")))) 130 (build-system emacs-build-system) 131 (arguments 132 '(#:include '("^[^/]*.el$"))) 133 (home-page "https://git.vineetk.net/pulpie-eww.el") 134 (synopsis "replacing eww-readable with pulpie-orange-small") 135 (description "Replacement function for the heuristics-based eww-readable-dom with 136 https://huggingface.co/feyninc/pulpie-orange-small, a EuroBERT-based 137 210M-parameter classifier that extracts the main content from HTML.") 138 (license license:gpl3))) 139 140 (define-public emacs-anubis-solver 141 (package 142 (name "emacs-anubis-solver") 143 (version "1.0") 144 (source 145 (origin 146 (method git-fetch) 147 (uri (git-reference 148 (url "ssh://anongit@vineetk.net/anubis-solver") 149 (commit (string-append "v" version)))) 150 (file-name (git-file-name name version)) 151 (sha256 152 (base32 "0ii13rsx22wy6ibz9gj8syd7araqrqdc7milccq48jrm63r6y0j4")))) 153 (build-system emacs-build-system) 154 (arguments 155 '(#:include '("^[^/]*.el$"))) 156 (home-page "https://git.vineetk.net/anubis-solver") 157 (synopsis "pass techarohq anubis challenges with elisp in eww") 158 (description "\ 159 Anubis (https://github.com/techarohq/anubis) answers a request it dislikes 160 with a page whose <head> contains the challenge parameters in plaintext: 161 162 <script id='anubis_challenge' type='application/json'> 163 {'rules':{'algorithm':'fast','difficulty':4}, 164 'challenge':{'randomData':'...','id':'...','issuedAt':'...'}} 165 </script> 166 167 The answer is a proof of work, which doesn't require js. This file 168 fetches the challenge page, extracts the challenge itself, solves it, 169 redeems, and saves the cookie. 170 171 A challenge can only be told from the response, so the advice runs 172 around `url-retrieve-synchronously' and `eww-retrieve' instead of 173 replacing them: the caller's request goes out unchanged and the 174 response is searched for `anubis--marker-re'. 175 176 The jackal girl will no longer hold my emacs browser hostage with js.") 177 (license license:gpl3))) 178 179 (define-public emacs-org-dev 180 (package 181 (inherit emacs-org) 182 (name "emacs-org-dev") 183 (version "c0ed3248e9b1ff1310d0fa3d9f022208bebfcd7e") 184 (source 185 (origin 186 (method git-fetch) 187 (uri (git-reference 188 (url "https://git.sr.ht/~bzg/org-mode") 189 (commit version))) 190 (file-name (git-file-name name version)) 191 (sha256 192 (base32 "1vyd8wa1iwkfzspnmp4k156hgfn6kvr6mzf6gx7ha47ff6dhc4qs"))))))