* bug#27082: [PATCH] gnu: Add emacs-disable-mouse.
@ 2017-05-26 10:35 Jan Nieuwenhuizen
2017-05-26 12:53 ` Marius Bakke
0 siblings, 1 reply; 3+ messages in thread
From: Jan Nieuwenhuizen @ 2017-05-26 10:35 UTC (permalink / raw)
To: 27082
* gnu/packages/emacs.scm (emacs-disable-mouse): New variable.
---
gnu/packages/emacs.scm | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index 1d537532b..09a80c1a2 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -25,6 +25,7 @@
;;; Copyright © 2017 Kei Kebreau <kei@openmailbox.org>
;;; Copyright © 2017 George Clemmer <myglc2@gmail.com>
;;; Copyright © 2017 Feng Shu <tumashu@163.com>
+;;; Copyright © 2017 Jan Nieuwenhuizen <janneke@gnu.org>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -4795,3 +4796,28 @@ Emacs.")
using ERT. It assumes a certain test structure setup and can therefore make
running tests easier.")
(license license:gpl3+))))
+
+(define-public emacs-disable-mouse
+ (package
+ (name "emacs-disable-mouse")
+ (version "0.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append
+ "https://github.com/purcell/disable-mouse/archive/"
+ version ".tar.gz"))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "0haqpq23r1wx04lsqrrg3p5visg9hx5i36dg55ab003wfsrlrzbc"))))
+ (build-system emacs-build-system)
+ (home-page
+ "https://github.com/purcell/disable-mouse")
+ (synopsis "Disable mouse commands globally")
+ (description
+ "Provides @code{disable-mouse-mode} and @code{global-disable-mouse-mode},
+pair of minor modes which suppress all mouse events by intercepting them and
+running a customisable handler command (@code{ignore} by default).
+")
+ (license license:gpl3+)))
--
Jan Nieuwenhuizen <janneke@gnu.org> | GNU LilyPond http://lilypond.org
Freelance IT http://JoyofSource.com | Avatar® http://AvatarAcademy.com
^ permalink raw reply related [flat|nested] 3+ messages in thread
* bug#27082: [PATCH] gnu: Add emacs-disable-mouse.
2017-05-26 10:35 bug#27082: [PATCH] gnu: Add emacs-disable-mouse Jan Nieuwenhuizen
@ 2017-05-26 12:53 ` Marius Bakke
2017-05-26 13:26 ` Jan Nieuwenhuizen
0 siblings, 1 reply; 3+ messages in thread
From: Marius Bakke @ 2017-05-26 12:53 UTC (permalink / raw)
To: Jan Nieuwenhuizen, 27082
[-- Attachment #1: Type: text/plain, Size: 624 bytes --]
Jan Nieuwenhuizen <janneke@gnu.org> writes:
> * gnu/packages/emacs.scm (emacs-disable-mouse): New variable.
[...]
> + (home-page
> + "https://github.com/purcell/disable-mouse")
This can be a single line.
> + (synopsis "Disable mouse commands globally")
> + (description
> + "Provides @code{disable-mouse-mode} and @code{global-disable-mouse-mode},
> +pair of minor modes which suppress all mouse events by intercepting them and
> +running a customisable handler command (@code{ignore} by default).
> +")
^^^
It would look better to move this up to the previous line IMO.
Other than that looks good!
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#27082: [PATCH] gnu: Add emacs-disable-mouse.
2017-05-26 12:53 ` Marius Bakke
@ 2017-05-26 13:26 ` Jan Nieuwenhuizen
0 siblings, 0 replies; 3+ messages in thread
From: Jan Nieuwenhuizen @ 2017-05-26 13:26 UTC (permalink / raw)
To: Marius Bakke; +Cc: 27082-done
Marius Bakke writes:
>> + (home-page
>> + "https://github.com/purcell/disable-mouse")
>
> This can be a single line.
Ok.
>> + (description
>> + "Provides @code{disable-mouse-mode} and @code{global-disable-mouse-mode},
>> +pair of minor modes which suppress all mouse events by intercepting them and
>> +running a customisable handler command (@code{ignore} by default).
>> +")
> ^^^
> It would look better to move this up to the previous line IMO.
Ok.
> Other than that looks good!
Thanks, pushed as
7a0efa77a gnu: Add emacs-disable-mouse.
janneke
--
Jan Nieuwenhuizen <janneke@gnu.org> | GNU LilyPond http://lilypond.org
Freelance IT http://JoyofSource.com | Avatar® http://AvatarAcademy.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-05-26 13:28 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-26 10:35 bug#27082: [PATCH] gnu: Add emacs-disable-mouse Jan Nieuwenhuizen
2017-05-26 12:53 ` Marius Bakke
2017-05-26 13:26 ` Jan Nieuwenhuizen
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.