unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH] Add evil(mode for emacs).
@ 2016-10-12 23:00 ng0
  2016-10-12 23:00 ` [PATCH 1/2] gnu: Add emacs-goto-chg ng0
  2016-10-12 23:00 ` [PATCH 2/2] gnu: Add emacs-evil ng0
  0 siblings, 2 replies; 6+ messages in thread
From: ng0 @ 2016-10-12 23:00 UTC (permalink / raw)
  To: guix-devel


The next two patches add evil-mode.
I tested it by loading the mode in emacs and did some basic text editing,
cursor form changed, insert behavior of vi was needed, pressing escape well escaped the insert mode,
so it feels functional at the base.

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

* [PATCH 1/2] gnu: Add emacs-goto-chg.
  2016-10-12 23:00 [PATCH] Add evil(mode for emacs) ng0
@ 2016-10-12 23:00 ` ng0
  2016-10-13 19:38   ` Alex Kost
  2016-10-12 23:00 ` [PATCH 2/2] gnu: Add emacs-evil ng0
  1 sibling, 1 reply; 6+ messages in thread
From: ng0 @ 2016-10-12 23:00 UTC (permalink / raw)
  To: guix-devel

* gnu/packages/emacs.scm (emacs-goto-chg): New variable.
---
 gnu/packages/emacs.scm | 26 +++++++++++++++++++++++++-
 1 file changed, 25 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index 1b345db..f04b71d 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -12,7 +12,7 @@
 ;;; Copyright © 2016 David Thompson <davet@gnu.org>
 ;;; Copyright © 2016 Matthew Jordan <matthewjordandevops@yandex.com>
 ;;; Copyright © 2016 Roel Janssen <roel@gnu.org>
-;;; Copyright © 2016 ng0 <ngillmann@runbox.com>
+;;; Copyright © 2016 ng0 <ng0@we.make.ritual.n0.is>
 ;;; Copyright © 2016 Alex Griffin <a@ajgrf.com>
 ;;; Copyright © 2016 Nicolas Goaziou <mail@nicolasgoaziou.fr>
 ;;; Copyright © 2016 Alex Vong <alexvong1995@gmail.com>
@@ -2981,6 +2981,30 @@ Lua programing language}.")
 news items, openrc and runscripts.")
     (license license:gpl2+)))
 
+(define-public emacs-goto-chg
+  (package
+    (name "emacs-goto-chg")
+    (version "20131228.659")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "http://melpa.org/packages/goto-chg-"
+             version ".el"))
+       (sha256
+        (base32
+         "1763qs6xprbb86bsxs4sh35rdcnb3v1zam4pc2akkd4wimg83k2l"))))
+    (build-system emacs-build-system)
+    ;; This is correct, the source/www is a wiki.
+    (home-page "http://www.emacswiki.org/emacs/goto-chg.el")
+    (synopsis "Go to last change")
+    (description
+     "Goto-Chg goes to the point of the most recent edit in the
+buffer.  When repeated, go to the second most recent edit, etc.
+Negative argument, C-u -, for reverse direction.  Works by
+looking into buffer-undo-list to find points of edit.")
+    (license license:gpl3+)))
+
 (define-public emacs-writegood-mode
   (package
     (name "emacs-writegood-mode")
-- 
2.10.1

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

* [PATCH 2/2] gnu: Add emacs-evil.
  2016-10-12 23:00 [PATCH] Add evil(mode for emacs) ng0
  2016-10-12 23:00 ` [PATCH 1/2] gnu: Add emacs-goto-chg ng0
@ 2016-10-12 23:00 ` ng0
  2016-10-13 19:37   ` Alex Kost
  1 sibling, 1 reply; 6+ messages in thread
From: ng0 @ 2016-10-12 23:00 UTC (permalink / raw)
  To: guix-devel

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

diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index f04b71d..7ea7035 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -2981,6 +2981,30 @@ Lua programing language}.")
 news items, openrc and runscripts.")
     (license license:gpl2+)))
 
+(define-public emacs-evil
+  (package
+    (name "emacs-evil")
+    (version "20160827.1510")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "https://melpa.org/packages/evil-"
+                           version ".tar"))
+       (sha256
+        (base32
+         "1lq8b3yf4z6h0pgy80jk22q922d4l4pazbcrfyqyq9rfl34g8jvi"))))
+    (build-system emacs-build-system)
+    (inputs
+     `(("emacs-undo-tree" ,emacs-undo-tree)
+       ("emacs-goto-chg" ,emacs-goto-chg)))
+    (home-page "https://bitbucket.com/lyro/evil")
+    (synopsis "Extensible Vi layer for Emacs.")
+    (description
+     "Evil is an extensible vi layer for Emacs.  It emulates the
+main features of Vim, and provides facilities for writing custom
+extensions.")
+    (license license:gpl3+)))
+
 (define-public emacs-goto-chg
   (package
     (name "emacs-goto-chg")
-- 
2.10.1

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

* Re: [PATCH 2/2] gnu: Add emacs-evil.
  2016-10-12 23:00 ` [PATCH 2/2] gnu: Add emacs-evil ng0
@ 2016-10-13 19:37   ` Alex Kost
  0 siblings, 0 replies; 6+ messages in thread
From: Alex Kost @ 2016-10-13 19:37 UTC (permalink / raw)
  To: ng0; +Cc: guix-devel

ng0 (2016-10-12 23:00 +0000) wrote:

> * gnu/packages/emacs.scm (emacs-evil): New variable.
> ---
>  gnu/packages/emacs.scm | 24 ++++++++++++++++++++++++
>  1 file changed, 24 insertions(+)
>
> diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
> index f04b71d..7ea7035 100644
> --- a/gnu/packages/emacs.scm
> +++ b/gnu/packages/emacs.scm
> @@ -2981,6 +2981,30 @@ Lua programing language}.")
>  news items, openrc and runscripts.")
>      (license license:gpl2+)))
>  
> +(define-public emacs-evil
> +  (package
> +    (name "emacs-evil")
> +    (version "20160827.1510")
> +    (source
> +     (origin
> +       (method url-fetch)
> +       (uri (string-append "https://melpa.org/packages/evil-"
> +                           version ".tar"))

We don't use tarballs from MELPA.  The problem is: when there will be a
new commit in the upstream repo, the tarball on melpa will be changed,
and the old source will be removed, and this package could not be built
anymore.  So I replaced it with the tarball from bitbucket.

> +       (sha256
> +        (base32
> +         "1lq8b3yf4z6h0pgy80jk22q922d4l4pazbcrfyqyq9rfl34g8jvi"))))
> +    (build-system emacs-build-system)
> +    (inputs

These should be 'propagated-inputs'.

> +     `(("emacs-undo-tree" ,emacs-undo-tree)
> +       ("emacs-goto-chg" ,emacs-goto-chg)))
> +    (home-page "https://bitbucket.com/lyro/evil")
> +    (synopsis "Extensible Vi layer for Emacs.")

"guix lint" tells about this period -----------^

> +    (description
> +     "Evil is an extensible vi layer for Emacs.  It emulates the
> +main features of Vim, and provides facilities for writing custom
> +extensions.")
> +    (license license:gpl3+)))
> +
>  (define-public emacs-goto-chg
>    (package
>      (name "emacs-goto-chg")

Applied as 2edbfbf58843f20114d555445d38f6e0ffd1f4e7, thanks!

-- 
Alex

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

* Re: [PATCH 1/2] gnu: Add emacs-goto-chg.
  2016-10-12 23:00 ` [PATCH 1/2] gnu: Add emacs-goto-chg ng0
@ 2016-10-13 19:38   ` Alex Kost
  2016-10-14  0:14     ` ng0
  0 siblings, 1 reply; 6+ messages in thread
From: Alex Kost @ 2016-10-13 19:38 UTC (permalink / raw)
  To: ng0; +Cc: guix-devel

ng0 (2016-10-12 23:00 +0000) wrote:

> * gnu/packages/emacs.scm (emacs-goto-chg): New variable.
> ---
>  gnu/packages/emacs.scm | 26 +++++++++++++++++++++++++-
>  1 file changed, 25 insertions(+), 1 deletion(-)
>
> diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
> index 1b345db..f04b71d 100644
> --- a/gnu/packages/emacs.scm
> +++ b/gnu/packages/emacs.scm
> @@ -12,7 +12,7 @@
>  ;;; Copyright © 2016 David Thompson <davet@gnu.org>
>  ;;; Copyright © 2016 Matthew Jordan <matthewjordandevops@yandex.com>
>  ;;; Copyright © 2016 Roel Janssen <roel@gnu.org>
> -;;; Copyright © 2016 ng0 <ngillmann@runbox.com>
> +;;; Copyright © 2016 ng0 <ng0@we.make.ritual.n0.is>
>  ;;; Copyright © 2016 Alex Griffin <a@ajgrf.com>
>  ;;; Copyright © 2016 Nicolas Goaziou <mail@nicolasgoaziou.fr>
>  ;;; Copyright © 2016 Alex Vong <alexvong1995@gmail.com>
> @@ -2981,6 +2981,30 @@ Lua programing language}.")
>  news items, openrc and runscripts.")
>      (license license:gpl2+)))
>  
> +(define-public emacs-goto-chg
> +  (package
> +    (name "emacs-goto-chg")
> +    (version "20131228.659")
> +    (source
> +     (origin
> +       (method url-fetch)
> +       (uri (string-append
> +             "http://melpa.org/packages/goto-chg-"
> +             version ".el"))

Although the source of this package is the emacswiki, I used it here as
well, also I changed the version to "1.6" (according to source).

> +       (sha256
> +        (base32
> +         "1763qs6xprbb86bsxs4sh35rdcnb3v1zam4pc2akkd4wimg83k2l"))))
> +    (build-system emacs-build-system)
> +    ;; This is correct, the source/www is a wiki.
> +    (home-page "http://www.emacswiki.org/emacs/goto-chg.el")
> +    (synopsis "Go to last change")
> +    (description
> +     "Goto-Chg goes to the point of the most recent edit in the
> +buffer.  When repeated, go to the second most recent edit, etc.
> +Negative argument, C-u -, for reverse direction.  Works by
> +looking into buffer-undo-list to find points of edit.")

I rephrased the description a bit to mention 'goto-last-change' command.

> +    (license license:gpl3+)))

This is actually gpl2+

> +
>  (define-public emacs-writegood-mode
>    (package
>      (name "emacs-writegood-mode")

Applied as ce74e520115a6d51b237a953fdf1468bc2b54d44, thanks!

-- 
Alex

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

* Re: [PATCH 1/2] gnu: Add emacs-goto-chg.
  2016-10-13 19:38   ` Alex Kost
@ 2016-10-14  0:14     ` ng0
  0 siblings, 0 replies; 6+ messages in thread
From: ng0 @ 2016-10-14  0:14 UTC (permalink / raw)
  To: Alex Kost; +Cc: guix-devel

Hi,

thanks for the review.

Alex Kost <alezost@gmail.com> writes:

> ng0 (2016-10-12 23:00 +0000) wrote:
>
>> * gnu/packages/emacs.scm (emacs-goto-chg): New variable.
>> ---
>>  gnu/packages/emacs.scm | 26 +++++++++++++++++++++++++-
>>  1 file changed, 25 insertions(+), 1 deletion(-)
>>
>> diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
>> index 1b345db..f04b71d 100644
>> --- a/gnu/packages/emacs.scm
>> +++ b/gnu/packages/emacs.scm
>> @@ -12,7 +12,7 @@
>>  ;;; Copyright © 2016 David Thompson <davet@gnu.org>
>>  ;;; Copyright © 2016 Matthew Jordan <matthewjordandevops@yandex.com>
>>  ;;; Copyright © 2016 Roel Janssen <roel@gnu.org>
>> -;;; Copyright © 2016 ng0 <ngillmann@runbox.com>
>> +;;; Copyright © 2016 ng0 <ng0@we.make.ritual.n0.is>
>>  ;;; Copyright © 2016 Alex Griffin <a@ajgrf.com>
>>  ;;; Copyright © 2016 Nicolas Goaziou <mail@nicolasgoaziou.fr>
>>  ;;; Copyright © 2016 Alex Vong <alexvong1995@gmail.com>
>> @@ -2981,6 +2981,30 @@ Lua programing language}.")
>>  news items, openrc and runscripts.")
>>      (license license:gpl2+)))
>>  
>> +(define-public emacs-goto-chg
>> +  (package
>> +    (name "emacs-goto-chg")
>> +    (version "20131228.659")
>> +    (source
>> +     (origin
>> +       (method url-fetch)
>> +       (uri (string-append
>> +             "http://melpa.org/packages/goto-chg-"
>> +             version ".el"))
>
> Although the source of this package is the emacswiki, I used it here as
> well, also I changed the version to "1.6" (according to source).

Oh.. thanks!

>> +       (sha256
>> +        (base32
>> +         "1763qs6xprbb86bsxs4sh35rdcnb3v1zam4pc2akkd4wimg83k2l"))))
>> +    (build-system emacs-build-system)
>> +    ;; This is correct, the source/www is a wiki.
>> +    (home-page "http://www.emacswiki.org/emacs/goto-chg.el")
>> +    (synopsis "Go to last change")
>> +    (description
>> +     "Goto-Chg goes to the point of the most recent edit in the
>> +buffer.  When repeated, go to the second most recent edit, etc.
>> +Negative argument, C-u -, for reverse direction.  Works by
>> +looking into buffer-undo-list to find points of edit.")
>
> I rephrased the description a bit to mention 'goto-last-change' command.
>
>> +    (license license:gpl3+)))
>
> This is actually gpl2+

Don't rely on what other services/sites point out I'd say. Thanks for
correction.

>> +
>>  (define-public emacs-writegood-mode
>>    (package
>>      (name "emacs-writegood-mode")
>
> Applied as ce74e520115a6d51b237a953fdf1468bc2b54d44, thanks!
>
> -- 
> Alex
>

-- 
♥Ⓐ  ng0

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

end of thread, other threads:[~2016-10-14  0:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-12 23:00 [PATCH] Add evil(mode for emacs) ng0
2016-10-12 23:00 ` [PATCH 1/2] gnu: Add emacs-goto-chg ng0
2016-10-13 19:38   ` Alex Kost
2016-10-14  0:14     ` ng0
2016-10-12 23:00 ` [PATCH 2/2] gnu: Add emacs-evil ng0
2016-10-13 19:37   ` Alex Kost

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).