unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#27758] [PATCH] gnu: Add emacs-aggressive-indent-mode.
@ 2017-07-18 17:29 Oleg Pykhalov
  2017-07-19  5:49 ` [bug#27758] Switch to elpa Oleg Pykhalov
  0 siblings, 1 reply; 5+ messages in thread
From: Oleg Pykhalov @ 2017-07-18 17:29 UTC (permalink / raw)
  To: 27758

* gnu/packages/build-tools.scm (emacs-aggressive-indent-mode): New variable.
---
 gnu/packages/emacs.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index 43de13057..b5b5315fb 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -5200,3 +5200,30 @@ src block.")
      "@code{emacs-emamux} lets Emacs interact with the @code{tmux} terminal
 multiplexer.")
     (license license:gpl3+)))
+
+(define-public emacs-aggressive-indent-mode
+  (package
+    (name "emacs-aggressive-indent-mode")
+    (version "1.8.3")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "https://github.com/Malabarba/aggressive-indent-mode"
+                    "/archive/" version ".tar.gz"))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "093qn49bi39050clqdj6rjw0h9dh93qsajb029axcbah7m1c9aws"))))
+    (build-system emacs-build-system)
+    (home-page "https://github.com/Malabarba/aggressive-indent-mode")
+    (synopsis "Emacs minor mode that keeps your code always indented")
+    (description
+     "@code{electric-indent-mode} is enough to keep your code nicely aligned
+when all you do is type.  However, once you start shifting blocks around,
+transposing lines, or slurping and barfing sexps, indentation is bound to go
+wrong.
+
+@code{aggressive-indent-mode} is a minor mode that keeps your code always
+indented.  It reindents after every change, making it more reliable than
+electric-indent-mode.")
+    (license license:gpl3+)))
-- 
2.13.2

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

* [bug#27758] Switch to elpa.
  2017-07-18 17:29 [bug#27758] [PATCH] gnu: Add emacs-aggressive-indent-mode Oleg Pykhalov
@ 2017-07-19  5:49 ` Oleg Pykhalov
  2017-07-19  6:32   ` Jan Nieuwenhuizen
  0 siblings, 1 reply; 5+ messages in thread
From: Oleg Pykhalov @ 2017-07-19  5:49 UTC (permalink / raw)
  To: bug#27758

[-- Attachment #1: Type: text/plain, Size: 69 bytes --]

I found this package on elpa.  May be it's better to switch origin?


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Switch to elpa and rename variable --]
[-- Type: text/x-patch, Size: 1773 bytes --]

From 715f793675a2b7d0cf2ec5eeb5c31172ab060f3a Mon Sep 17 00:00:00 2001
From: Oleg Pykhalov <go.wigust@gmail.com>
Date: Tue, 18 Jul 2017 20:28:17 +0300
Subject: [PATCH] gnu: Add emacs-aggressive-indent.

* gnu/packages/emacs.scm (emacs-aggressive-indent): 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 43de13057..68c0122b1 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -5200,3 +5200,29 @@ src block.")
      "@code{emacs-emamux} lets Emacs interact with the @code{tmux} terminal
 multiplexer.")
     (license license:gpl3+)))
+
+(define-public emacs-aggressive-indent
+  (package
+    (name "emacs-aggressive-indent")
+    (version "1.8.3")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "https://elpa.gnu.org/packages/aggressive-indent-"
+                    version ".el"))
+              (sha256
+               (base32
+                "0jnzccl50x0wapprgwxinp99pwwa6j43q6msn4gv437j7swy8wnj"))))
+    (build-system emacs-build-system)
+    (home-page "https://elpa.gnu.org/packages/aggressive-indent.html")
+    (synopsis "Emacs minor mode that keeps your code always indented")
+    (description
+     "@code{electric-indent-mode} is enough to keep your code nicely aligned
+when all you do is type.  However, once you start shifting blocks around,
+transposing lines, or slurping and barfing sexps, indentation is bound to go
+wrong.
+
+@code{aggressive-indent-mode} is a minor mode that keeps your code always
+indented.  It reindents after every change, making it more reliable than
+electric-indent-mode.")
+    (license license:gpl3+)))
-- 
2.13.2


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

* [bug#27758] Switch to elpa.
  2017-07-19  5:49 ` [bug#27758] Switch to elpa Oleg Pykhalov
@ 2017-07-19  6:32   ` Jan Nieuwenhuizen
  2017-07-19  7:56     ` Oleg Pykhalov
  0 siblings, 1 reply; 5+ messages in thread
From: Jan Nieuwenhuizen @ 2017-07-19  6:32 UTC (permalink / raw)
  To: Oleg Pykhalov; +Cc: bug#27758

Oleg Pykhalov writes:

> I found this package on elpa.  May be it's better to switch origin?

Did you notice emacs-aggressive-indent here

    http://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/emacs.scm#n1028

What do you mean by: switch origin?
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] 5+ messages in thread

* [bug#27758] Switch to elpa.
  2017-07-19  6:32   ` Jan Nieuwenhuizen
@ 2017-07-19  7:56     ` Oleg Pykhalov
  2017-07-19  8:59       ` bug#27758: " Jan Nieuwenhuizen
  0 siblings, 1 reply; 5+ messages in thread
From: Oleg Pykhalov @ 2017-07-19  7:56 UTC (permalink / raw)
  To: Jan Nieuwenhuizen; +Cc: 27758

Jan Nieuwenhuizen <janneke@gnu.org> writes:

> Oleg Pykhalov writes:
>
>> I found this package on elpa.  May be it's better to switch origin?
>
> Did you notice emacs-aggressive-indent here
>     http://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/emacs.scm#n1028

No, I missed it, sorry.

> What do you mean by: switch origin?
> janneke

I mean changing source from github to elpa.

Could you close my stupid bug report, please?

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

* bug#27758: Switch to elpa.
  2017-07-19  7:56     ` Oleg Pykhalov
@ 2017-07-19  8:59       ` Jan Nieuwenhuizen
  0 siblings, 0 replies; 5+ messages in thread
From: Jan Nieuwenhuizen @ 2017-07-19  8:59 UTC (permalink / raw)
  To: Oleg Pykhalov; +Cc: 27758-done

Oleg Pykhalov writes:

>> Did you notice emacs-aggressive-indent here
>>     http://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/emacs.scm#n1028
>
> No, I missed it, sorry.

That's okay.  Thanks for creating the patch, it would have been a good addition.

>> What do you mean by: switch origin?
>> janneke
>
> I mean changing source from github to elpa.

Where you you see a reference to github?

> Could you close my stupid bug report, please?

Sure cc'd 27758-done@debbugs.gnu.org.

Greetings,
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] 5+ messages in thread

end of thread, other threads:[~2017-07-19  9:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-18 17:29 [bug#27758] [PATCH] gnu: Add emacs-aggressive-indent-mode Oleg Pykhalov
2017-07-19  5:49 ` [bug#27758] Switch to elpa Oleg Pykhalov
2017-07-19  6:32   ` Jan Nieuwenhuizen
2017-07-19  7:56     ` Oleg Pykhalov
2017-07-19  8:59       ` bug#27758: " Jan Nieuwenhuizen

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).