~ruther/guix-local

f710e3cd9110a66d2bb2291e796d0ddd177ba2cd — Cayetano Santos 1 year, 3 months ago de07676
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>
1 files changed, 43 insertions(+), 0 deletions(-)

M gnu/packages/emacs-xyz.scm
M gnu/packages/emacs-xyz.scm => gnu/packages/emacs-xyz.scm +43 -0
@@ 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"))