From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:36176) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jFnKa-0007Gy-OU for guix-patches@gnu.org; Sat, 21 Mar 2020 19:15:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jFnKZ-0005OB-OW for guix-patches@gnu.org; Sat, 21 Mar 2020 19:15:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42460) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jFnKY-0005Mj-NB for guix-patches@gnu.org; Sat, 21 Mar 2020 19:15:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jFnKY-00061C-I6 for guix-patches@gnu.org; Sat, 21 Mar 2020 19:15:02 -0400 Subject: [bug#40128] [PATCH 2/2] gnu: Add emacs-major-mode-hydra. Resent-Message-ID: References: <871rpoq4tj.fsf@lafreniere.xyz> <87zhccoq16.fsf@lafreniere.xyz> <87blop8xuh.fsf@nicolasgoaziou.fr> From: "LaFreniere, Joseph" In-reply-to: <87blop8xuh.fsf@nicolasgoaziou.fr> Date: Sat, 21 Mar 2020 18:13:51 -0500 Message-ID: <87v9mxl2s0.fsf@lafreniere.xyz> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Nicolas Goaziou Cc: 40128@debbugs.gnu.org --=-=-= Content-Type: text/plain; format=flowed Nicolas Goaziou writes: >> + (arguments >> + `(#:phases >> + (modify-phases %standard-phases >> + (add-before 'add-source-to-load-path >> 'remove-pretty-hydra >> + (lambda* (#:key outputs #:allow-other-keys) >> + ;; pretty-hydra is provided by dependency. >> + (delete-file "pretty-hydra.el") >> + #t))))) > > There, too, you may use #:exclude. New patch file implemented with #:exclude is attached. Thank you very much for reviewing. -- Joseph LaFreniere --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0002-gnu-Add-emacs-major-mode-hydra.patch >From 5ec5117c0cda5c69d3210a93243c060ea2930c5a Mon Sep 17 00:00:00 2001 From: Joseph LaFreniere Date: Wed, 18 Mar 2020 20:59:09 -0500 Subject: [PATCH 2/2] gnu: Add emacs-major-mode-hydra. * gnu/packages/emacs-xyz.scm (emacs-major-mode-hydra): New variable. gnu: Add emacs-major-mode-hydra. * gnu/packages/emacs-xyz.scm (emacs-major-mode-hydra): New variable. --- gnu/packages/emacs-xyz.scm | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 50eec6d516..7056f0227b 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -5514,6 +5514,20 @@ mode-specific key bindings. It is intended for use as a library only; see package @code{emacs-major-mode-hydra} for a user-friendly interface.") (license license:gpl3+))) +(define-public emacs-major-mode-hydra + (package + (inherit emacs-pretty-hydra) + (name "emacs-major-mode-hydra") + (propagated-inputs + `(("emacs-dash" ,emacs-dash) + ("emacs-pretty-hydra" ,emacs-pretty-hydra))) + (arguments + `(#:exclude (cons "^pretty-hydra\\.el" %default-exclude))) + (synopsis "Create nice-looking hydras") + (description + "This package provides the macro @code{pretty-hydra-define} to define +hydras with one column per group of heads."))) + (define-public emacs-ivy (package (name "emacs-ivy") -- 2.25.1 --=-=-=--