all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#29635] [PATCH] gnu: Add emacs-ws-butler.
@ 2017-12-10  3:01 Maxim Cournoyer
  2017-12-11 16:00 ` bug#29635: " Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: Maxim Cournoyer @ 2017-12-10  3:01 UTC (permalink / raw)
  To: 29635


[-- Attachment #1.1: Type: text/plain, Size: 383 bytes --]

Hello Guix!

This adds emacs-ws-butler, which is handy to keep whitespace characters in
check!

To enable it, you can put the following in your .emacs:

--8<---------------cut here---------------start------------->8---
;;; Automatically trim whitespace
(add-hook 'prog-mode-hook #'ws-butler-mode)
--8<---------------cut here---------------end--------------->8---

Thank you,

Maxim


[-- Attachment #1.2: 0001-gnu-Add-emacs-ws-butler.patch --]
[-- Type: text/x-patch, Size: 2199 bytes --]

From 7a70ad4969a0d2a2d21226e734edcd36d0f8a3e1 Mon Sep 17 00:00:00 2001
From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Date: Sat, 9 Dec 2017 18:48:11 -0500
Subject: [PATCH] gnu: Add emacs-ws-butler.

* gnu/packages/emacs.scm (emacs-ws-butler): New variable.
---
 gnu/packages/emacs.scm | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index 77da8f2f2..6dac913af 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -31,6 +31,7 @@
 ;;; Copyright © 2017 Peter Mikkelsen <petermikkelsen10@gmail.com>
 ;;; Copyright © 2017 Tobias Geerinckx-Rice <me@tobias.gr>
 ;;; Copyright © 2017 Mike Gerwitz <mtg@gnu.org>
+;;; Copyright © 2017 Maxim Cournoyer <maxim.cournoyer@gmail.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -5955,6 +5956,35 @@ available key bindings that follow C-x (or as many as space allows given your
 settings).")
     (license license:gpl3+)))
 
+(define-public emacs-ws-butler
+  (package
+    (name "emacs-ws-butler")
+    (version "0.6")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/lewang/ws-butler.git")
+                    (commit "323b651dd70ee40a25accc940b8f80c3a3185205")))
+              (file-name (string-append name "-" version "-checkout"))
+              (sha256
+               (base32
+                "1a4b0lsmwq84qfx51c5xy4fryhb1ysld4fhgw2vr37izf53379sb"))))
+    (build-system emacs-build-system)
+    (native-inputs
+     `(("ert-runner" ,ert-runner)))
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-before 'install 'check
+           (lambda _
+             (zero? (system* "ert-runner" "tests")))))))
+    (home-page "https://github.com/lewang/ws-butler")
+    (synopsis "Trim spaces from end of lines")
+    (description
+     "This Emacs package automatically and unobtrusively trims whitespace
+characters from end of lines.")
+    (license license:gpl3+)))
+
 (define-public emacs-org-edit-latex
   (package
     (name "emacs-org-edit-latex")
-- 
2.14.1


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#29635: [PATCH] gnu: Add emacs-ws-butler.
  2017-12-10  3:01 [bug#29635] [PATCH] gnu: Add emacs-ws-butler Maxim Cournoyer
@ 2017-12-11 16:00 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2017-12-11 16:00 UTC (permalink / raw)
  To: Maxim Cournoyer; +Cc: 29635-done

Maxim Cournoyer <maxim.cournoyer@gmail.com> skribis:

> From 7a70ad4969a0d2a2d21226e734edcd36d0f8a3e1 Mon Sep 17 00:00:00 2001
> From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
> Date: Sat, 9 Dec 2017 18:48:11 -0500
> Subject: [PATCH] gnu: Add emacs-ws-butler.
>
> * gnu/packages/emacs.scm (emacs-ws-butler): New variable.

Applied, thanks!

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-12-11 16:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-10  3:01 [bug#29635] [PATCH] gnu: Add emacs-ws-butler Maxim Cournoyer
2017-12-11 16:00 ` bug#29635: " Ludovic Courtès

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.