gnu: Add emacs-titlecase.

* gnu/packages/emacs-xyz.scm (emacs-titlecase): New variable.

Change-Id: If3762ab3e8b6a5de26969071cb5ee8cb157eee37
Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
This commit is contained in:
Cayetano Santos 2025-07-10 17:30:05 +02:00 committed by Liliana Marie Prikler
parent de0767614f
commit f710e3cd91
No known key found for this signature in database
GPG key ID: 442A84B8C70E2F87

View file

@ -44897,6 +44897,49 @@ categories and highlighting specific modes that many commands use to
accomplish different tasks.")
(license license:asl2.0))))
(define-public emacs-titlecase
(package
(name "emacs-titlecase")
(version "0.4.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/duckwork/titlecase.el/")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32 "0kpg1l0rbbwqcmlj9i8xs2dv9h6yik9wgngik5z6wdgxbkaxjln7"))))
(build-system emacs-build-system)
(arguments
(list
#:phases
#~(modify-phases %standard-phases
;; Disable 3/26 unexpected results.
(add-before 'check 'disable-error-tests
(lambda _
(emacs-batch-edit-file "tests/titlecase-tests.el"
'(progn
(defun remove-test (test-name test-param)
(save-excursion
(re-search-forward
(format "(ert-deftest-%s %s" test-name test-param))
(goto-char (match-beginning 0))
(kill-sexp)))
(remove-test "decl-pair\n" "contractions_1")
(remove-test "decl-geneated-ascii\n" "generated_1_chars")
(remove-test "decl-nop" "nop_1")
(basic-save-buffer))))))
#:test-command #~(list "emacs" "-Q" "--batch"
"-l" "tests/titlecase-tests.el"
"-f" "ert-run-tests-batch-and-exit")))
(home-page "https://github.com/duckwork/titlecase.el/")
(synopsis "Capitalise titles")
(description
"This package provides a best-effort attempt at capitalizing titles, only
in English, with Emacs.")
(license license:gpl3)))
(define-public emacs-x509-mode
(let ((commit "3830cbfdadab4cd68e6f0b6a3a7a4931be8328ea")
(revision "1"))