902575f07956b0d9c69c330ae515502076d18259
[jackhill/guix/guix.git] / gnu / packages / emacs.scm
1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2014 Taylan Ulrich Bayirli/Kammer <taylanbayirli@gmail.com>
3 ;;; Copyright © 2013, 2014, 2015, 2016 Ludovic Courtès <ludo@gnu.org>
4 ;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org>
5 ;;; Copyright © 2014, 2015, 2016 Alex Kost <alezost@gmail.com>
6 ;;; Copyright © 2015 Federico Beffa <beffa@fbengineering.ch>
7 ;;; Copyright © 2015, 2016 Ricardo Wurmus <rekado@elephly.net>
8 ;;; Copyright © 2016 Chris Marusich <cmmarusich@gmail.com>
9 ;;; Copyright © 2015, 2016 Christopher Allan Webber <cwebber@dustycloud.org>
10 ;;; Copyright © 2016 humanitiesNerd <catonano@gmail.com>
11 ;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
12 ;;; Copyright © 2016 David Thompson <davet@gnu.org>
13 ;;; Copyright © 2016 Matthew Jordan <matthewjordandevops@yandex.com>
14 ;;; Copyright © 2016 Roel Janssen <roel@gnu.org>
15 ;;; Copyright © 2016 ng0 <ng0@we.make.ritual.n0.is>
16 ;;;
17 ;;; This file is part of GNU Guix.
18 ;;;
19 ;;; GNU Guix is free software; you can redistribute it and/or modify it
20 ;;; under the terms of the GNU General Public License as published by
21 ;;; the Free Software Foundation; either version 3 of the License, or (at
22 ;;; your option) any later version.
23 ;;;
24 ;;; GNU Guix is distributed in the hope that it will be useful, but
25 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
26 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 ;;; GNU General Public License for more details.
28 ;;;
29 ;;; You should have received a copy of the GNU General Public License
30 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
31
32 (define-module (gnu packages emacs)
33 #:use-module ((guix licenses) #:prefix license:)
34 #:use-module (guix packages)
35 #:use-module (guix download)
36 #:use-module (guix git-download)
37 #:use-module (guix gexp)
38 #:use-module (guix monads)
39 #:use-module (guix store)
40 #:use-module (guix build-system gnu)
41 #:use-module (guix build-system emacs)
42 #:use-module (guix build-system glib-or-gtk)
43 #:use-module (guix build-system trivial)
44 #:use-module (gnu packages)
45 #:use-module (gnu packages guile)
46 #:use-module (gnu packages gtk)
47 #:use-module (gnu packages gnome)
48 #:use-module (gnu packages ncurses)
49 #:use-module (gnu packages tex)
50 #:use-module (gnu packages texinfo)
51 #:use-module (gnu packages tls)
52 #:use-module (gnu packages pkg-config)
53 #:use-module (gnu packages xorg)
54 #:use-module (gnu packages lesstif)
55 #:use-module (gnu packages image)
56 #:use-module (gnu packages linux)
57 #:use-module (gnu packages version-control)
58 #:use-module (gnu packages imagemagick)
59 #:use-module (gnu packages w3m)
60 #:use-module (gnu packages wget)
61 #:use-module (gnu packages autotools)
62 #:use-module (gnu packages base)
63 #:use-module (gnu packages compression)
64 #:use-module (gnu packages xml)
65 #:use-module (gnu packages glib)
66 #:use-module (gnu packages acl)
67 #:use-module (gnu packages package-management)
68 #:use-module (gnu packages perl)
69 #:use-module (gnu packages pdf)
70 #:use-module (gnu packages scheme)
71 #:use-module (gnu packages statistics)
72 #:use-module (gnu packages xiph)
73 #:use-module (gnu packages mp3)
74 #:use-module (guix utils)
75 #:use-module (srfi srfi-1))
76
77 (define-public emacs
78 (package
79 (name "emacs")
80 (version "24.5")
81 (source (origin
82 (method url-fetch)
83 (uri (string-append "mirror://gnu/emacs/emacs-"
84 version ".tar.xz"))
85 (sha256
86 (base32
87 "0kn3rzm91qiswi0cql89kbv6mqn27rwsyjfb8xmwy9m5s8fxfiyx"))
88 (patches (search-patches "emacs-exec-path.patch"
89 "emacs-fix-scheme-indent-function.patch"
90 "emacs-source-date-epoch.patch"))
91 (modules '((guix build utils)))
92 (snippet
93 ;; Delete the bundled byte-compiled elisp files and
94 ;; generated autoloads.
95 '(with-directory-excursion "lisp"
96 (for-each delete-file
97 (append (find-files "." "\\.elc$")
98 (find-files "." "loaddefs\\.el$")
99 ;; This is the only "autoloads" file that
100 ;; does not have "*loaddefs.el" name.
101 '("eshell/esh-groups.el")))))))
102 (build-system glib-or-gtk-build-system)
103 (arguments
104 `(#:phases
105 (modify-phases %standard-phases
106 (add-before 'configure 'fix-/bin/pwd
107 (lambda _
108 ;; Use `pwd', not `/bin/pwd'.
109 (substitute* (find-files "." "^Makefile\\.in$")
110 (("/bin/pwd")
111 "pwd"))))
112 (add-after 'install 'remove-info.info
113 (lambda* (#:key outputs #:allow-other-keys)
114 ;; Remove 'info.info', which is provided by Texinfo <= 6.0.
115 ;; TODO: Remove this phase when we switch to Texinfo 6.1.
116 (let ((out (assoc-ref outputs "out")))
117 (delete-file
118 (string-append out "/share/info/info.info.gz"))
119 #t)))
120 (add-after 'install 'install-site-start
121 ;; Copy guix-emacs.el from Guix and add it to site-start.el. This
122 ;; way, Emacs packages provided by Guix and installed in
123 ;; ~/.guix-profile/share/emacs/site-lisp/guix.d/PACKAGE-VERSION are
124 ;; automatically found.
125 (lambda* (#:key inputs outputs #:allow-other-keys)
126 (let* ((guix-src (assoc-ref inputs "guix-src"))
127 (out (assoc-ref outputs "out"))
128 (lisp-dir (string-append out "/share/emacs/"
129 ,(version-major+minor version)
130 "/site-lisp"))
131 (unpack (assoc-ref %standard-phases 'unpack)))
132 (mkdir "guix")
133 (with-directory-excursion "guix"
134 (apply unpack (list #:source guix-src))
135 (install-file "emacs/guix-emacs.el" lisp-dir))
136 (with-output-to-file (string-append lisp-dir "/site-start.el")
137 (lambda ()
138 (display "(require 'guix-emacs nil t)")))
139 #t))))))
140 (inputs
141 `(("gnutls" ,gnutls)
142 ("ncurses" ,ncurses)
143
144 ;; TODO: Add the optional dependencies.
145 ("libx11" ,libx11)
146 ("gtk+" ,gtk+)
147 ("libxft" ,libxft)
148 ("libtiff" ,libtiff)
149 ("giflib" ,giflib)
150 ("libjpeg" ,libjpeg-8)
151 ("acl" ,acl)
152
153 ;; When looking for libpng `configure' links with `-lpng -lz', so we
154 ;; must also provide zlib as an input.
155 ("libpng" ,libpng)
156 ("zlib" ,zlib)
157
158 ("librsvg" ,librsvg)
159 ("libxpm" ,libxpm)
160 ("libxml2" ,libxml2)
161 ("libice" ,libice)
162 ("libsm" ,libsm)
163 ("alsa-lib" ,alsa-lib)
164 ("dbus" ,dbus)
165 ("guix-src" ,(package-source guix))))
166 (native-inputs
167 `(("pkg-config" ,pkg-config)
168 ("texinfo" ,texinfo)))
169
170 (native-search-paths
171 (list (search-path-specification
172 (variable "INFOPATH")
173 (files '("share/info")))))
174
175 (home-page "http://www.gnu.org/software/emacs/")
176 (synopsis "The extensible, customizable, self-documenting text editor")
177 (description
178 "GNU Emacs is an extensible and highly customizable text editor. It is
179 based on an Emacs Lisp interpreter with extensions for text editing. Emacs
180 has been extended in essentially all areas of computing, giving rise to a
181 vast array of packages supporting, e.g., email, IRC and XMPP messaging,
182 spreadsheets, remote server editing, and much more. Emacs includes extensive
183 documentation on all aspects of the system, from basic editing to writing
184 large Lisp programs. It has full Unicode support for nearly all human
185 languages.")
186 (license license:gpl3+)))
187
188 (define-public emacs-minimal
189 ;; This is the version that you should use as an input to packages that just
190 ;; need to byte-compile .el files.
191 (package (inherit emacs)
192 (name "emacs-minimal")
193 (synopsis "The extensible text editor (used only for byte-compilation)")
194 (build-system gnu-build-system)
195 (arguments
196 (substitute-keyword-arguments (package-arguments emacs)
197 ((#:phases phases)
198 `(modify-phases ,phases
199 (delete 'install-site-start)))))
200 (inputs
201 `(("ncurses" ,ncurses)))
202 (native-inputs
203 `(("pkg-config" ,pkg-config)))))
204
205 (define-public emacs-no-x
206 (package (inherit emacs)
207 (name "emacs-no-x")
208 (synopsis "The extensible, customizable, self-documenting text
209 editor (console only)")
210 (build-system gnu-build-system)
211 (inputs (fold alist-delete
212 (package-inputs emacs)
213 '("libx11" "gtk+" "libxft" "libtiff" "giflib" "libjpeg"
214 "libpng" "librsvg" "libxpm" "libice" "libsm"
215
216 ;; D-Bus depends on libx11, so remove it as well.
217 "dbus")))))
218
219 (define-public emacs-no-x-toolkit
220 (package (inherit emacs)
221 (name "emacs-no-x-toolkit")
222 (synopsis "The extensible, customizable, self-documenting text
223 editor (without an X toolkit)" )
224 (build-system gnu-build-system)
225 (inputs (append `(("inotify-tools" ,inotify-tools))
226 (alist-delete "gtk+" (package-inputs emacs))))
227 (arguments (append '(#:configure-flags '("--with-x-toolkit=no"))
228 (package-arguments emacs)))))
229
230 (define-public guile-emacs
231 (package (inherit emacs)
232 (name "guile-emacs")
233 (version "20150512.41120e0")
234 (source (origin
235 (method git-fetch)
236 (uri (git-reference
237 (url "git://git.hcoop.net/git/bpt/emacs.git")
238 (commit "41120e0f595b16387eebfbf731fff70481de1b4b")))
239 (sha256
240 (base32
241 "0lvcvsz0f4mawj04db35p1dvkffdqkz8pkhc0jzh9j9x2i63kcz6"))))
242 (native-inputs
243 `(("autoconf" ,autoconf)
244 ("automake" ,automake)
245 ("guile" ,guile-for-guile-emacs)
246 ,@(package-native-inputs emacs)))
247 (arguments
248 (substitute-keyword-arguments `(;; Build fails if we allow parallel build.
249 #:parallel-build? #f
250 ;; Tests aren't passing for now.
251 #:tests? #f
252 ,@(package-arguments emacs))
253 ((#:phases phases)
254 `(modify-phases ,phases
255 (add-after 'unpack 'autogen
256 (lambda _
257 (zero? (system* "sh" "autogen.sh"))))))))))
258
259 \f
260 ;;;
261 ;;; Emacs hacking.
262 ;;;
263
264 (define-public geiser
265 (package
266 (name "geiser")
267 (version "0.8.1")
268 (source (origin
269 (method url-fetch)
270 (uri (string-append "mirror://savannah/geiser/" version
271 "/geiser-" version ".tar.gz"))
272 (sha256
273 (base32
274 "163zh8qf1q8l485d94a51a9xixirj8r2xvrbgxyw06vkaqrz5qvc"))))
275 (build-system gnu-build-system)
276 (arguments
277 '(#:phases (alist-cons-after
278 'install 'post-install
279 (lambda* (#:key outputs #:allow-other-keys)
280 (symlink "geiser-install.el"
281 (string-append (assoc-ref outputs "out")
282 "/share/emacs/site-lisp/"
283 "geiser-autoloads.el")))
284 %standard-phases)))
285 (inputs `(("guile" ,guile-2.0)))
286 (native-inputs `(("emacs" ,emacs-minimal)))
287 (home-page "http://nongnu.org/geiser/")
288 (synopsis "Collection of Emacs modes for Guile and Racket hacking")
289 (description
290 "Geiser is a collection of Emacs major and minor modes that conspire with
291 one or more Scheme implementations to keep the Lisp Machine Spirit alive. The
292 continuously running Scheme interpreter takes the center of the stage in
293 Geiser. A bundle of Elisp shims orchestrates the dialog between the Scheme
294 implementation, Emacs and, ultimately, the schemer, giving them access to live
295 metadata.")
296 (license license:bsd-3)))
297
298 (define-public geiser-next
299 ;; Geiser's upcoming version supports guile-next, and 0.8.1 does not.
300 ;; When the next Geiser release comes out, we can remove this.
301 (let ((commit "2e335695fc1a4a0b520b50deb761b958194cbec4"))
302 (package
303 (inherit geiser)
304 (name "geiser-next")
305 (version (string-append "0.8.1-1"
306 (string-take commit 7)))
307 (source (origin
308 (method git-fetch)
309 (uri (git-reference
310 (url "git://git.sv.gnu.org/geiser.git")
311 (commit commit)))
312 (sha256
313 (base32
314 "00rmpn8zncq1fiah5m12l26z0s28bh7ql63kxdvksqdgfrisnmgf"))))
315 (native-inputs
316 `(("autoconf" ,autoconf)
317 ("automake" ,automake)
318 ("texinfo" ,texinfo)
319 ,@(package-native-inputs geiser)))
320 (arguments
321 (substitute-keyword-arguments (package-arguments geiser)
322 ((#:phases phases)
323 `(modify-phases ,phases
324 (add-after 'unpack 'autogen
325 (lambda _
326 (zero? (system* "sh" "autogen.sh")))))))))))
327
328 (define-public paredit
329 (package
330 (name "paredit")
331 (version "24")
332 (source (origin
333 (method url-fetch)
334 (uri (string-append "http://mumble.net/~campbell/emacs/paredit-"
335 version ".el"))
336 (sha256
337 (base32
338 "0pp3n8q6kc70blqsaw0zlzp6bc327dpgdrjr0cnh7hqg1lras7ka"))))
339 (build-system trivial-build-system)
340 (native-inputs `(("emacs" ,emacs-minimal)))
341 (arguments
342 `(#:modules ((guix build utils)
343 (guix build emacs-utils))
344 #:builder
345 (begin
346 (use-modules (guix build utils))
347 (use-modules (guix build emacs-utils))
348
349 (let* ((emacs (string-append (assoc-ref %build-inputs "emacs")
350 "/bin/emacs"))
351 (source (assoc-ref %build-inputs "source"))
352 (lisp-dir (string-append %output
353 "/share/emacs/site-lisp"))
354 (target (string-append lisp-dir "/paredit.el")))
355 (mkdir-p lisp-dir)
356 (copy-file source target)
357 (with-directory-excursion lisp-dir
358 (parameterize ((%emacs emacs))
359 (emacs-generate-autoloads ,name lisp-dir)
360 (emacs-batch-eval '(byte-compile-file "paredit.el"))))))))
361 (home-page "http://mumble.net/~campbell/emacs/paredit/")
362 (synopsis "Emacs minor mode for editing parentheses")
363 (description
364 "ParEdit (paredit.el) is a minor mode for performing structured editing
365 of S-expression data. The typical example of this would be Lisp or Scheme
366 source code.
367
368 ParEdit helps **keep parentheses balanced** and adds many keys for moving
369 S-expressions and moving around in S-expressions. Its behavior can be jarring
370 for those who may want transient periods of unbalanced parentheses, such as
371 when typing parentheses directly or commenting out code line by line.")
372 (license license:gpl3+)))
373
374 (define-public git-modes
375 (package
376 (name "git-modes")
377 (version "1.2.2")
378 (source (origin
379 (method url-fetch)
380 (uri (string-append
381 "https://github.com/magit/git-modes/archive/"
382 version ".tar.gz"))
383 (file-name (string-append name "-" version ".tar.gz"))
384 (sha256
385 (base32
386 "0gb9c18jib8rpm14vig9774104lwmd8353ps0259m861syf6664d"))))
387 (build-system gnu-build-system)
388 (arguments
389 `(#:modules ((guix build gnu-build-system)
390 (guix build emacs-utils)
391 (guix build utils))
392 #:imported-modules (,@%gnu-build-system-modules
393 (guix build emacs-utils))
394
395 #:make-flags (list (string-append "PREFIX="
396 (assoc-ref %outputs "out"))
397 ;; Don't put .el files in a 'git-modes'
398 ;; sub-directory.
399 (string-append "LISPDIR="
400 (assoc-ref %outputs "out")
401 "/share/emacs/site-lisp"))
402 #:tests? #f ; no check target
403 #:phases (modify-phases %standard-phases
404 (delete 'configure)
405 (add-after 'install 'emacs-autoloads
406 (lambda* (#:key outputs #:allow-other-keys)
407 (let* ((out (assoc-ref outputs "out"))
408 (lisp (string-append
409 out "/share/emacs/site-lisp/")))
410 (emacs-generate-autoloads ,name lisp)))))))
411 (native-inputs `(("emacs" ,emacs-minimal)))
412 (home-page "https://github.com/magit/git-modes")
413 (synopsis "Emacs major modes for Git configuration files")
414 (description
415 "This package provides Emacs major modes for editing various Git
416 configuration files, such as .gitattributes, .gitignore, and .git/config.")
417 (license license:gpl3+)))
418
419 (define-public emacs-with-editor
420 (package
421 (name "emacs-with-editor")
422 (version "2.5.1")
423 (source (origin
424 (method url-fetch)
425 (uri (string-append
426 "https://github.com/magit/with-editor/archive/v"
427 version ".tar.gz"))
428 (file-name (string-append name "-" version ".tar.gz"))
429 (sha256
430 (base32
431 "1lqm0msc9lzb05ys96bsx8bf2y1qrw27dh5h6qz8lf5i4cbhflw2"))))
432 (build-system emacs-build-system)
433 (propagated-inputs
434 `(("emacs-dash" ,emacs-dash)))
435 (home-page "https://github.com/magit/with-editor")
436 (synopsis "Emacs library for using Emacsclient as EDITOR")
437 (description
438 "This package provides an Emacs library to use the Emacsclient as
439 @code{$EDITOR} of child processes, making sure they know how to call home.
440 For remote processes a substitute is provided, which communicates with Emacs
441 on stdout instead of using a socket as the Emacsclient does.")
442 (license license:gpl3+)))
443
444 (define-public magit
445 (package
446 (name "magit")
447 (version "2.7.0")
448 (source (origin
449 (method url-fetch)
450 (uri (string-append
451 "https://github.com/magit/magit/releases/download/"
452 version "/" name "-" version ".tar.gz"))
453 (sha256
454 (base32
455 "1kzd8k2n0lcr04jvn5b6d29zf765mxgshfhzflkzndwmvyxmlqpl"))))
456 (build-system gnu-build-system)
457 (native-inputs `(("texinfo" ,texinfo)
458 ("emacs" ,emacs-minimal)))
459 (inputs `(("git" ,git)))
460 (propagated-inputs
461 `(("dash" ,emacs-dash)
462 ("with-editor" ,emacs-with-editor)))
463 (arguments
464 `(#:modules ((guix build gnu-build-system)
465 (guix build utils)
466 (guix build emacs-utils))
467 #:imported-modules (,@%gnu-build-system-modules
468 (guix build emacs-utils))
469
470 #:test-target "test"
471 #:tests? #f ; tests are not included in the release
472
473 #:make-flags
474 (list (string-append "PREFIX=" %output)
475 ;; Don't put .el files in a sub-directory.
476 (string-append "lispdir=" %output "/share/emacs/site-lisp")
477 (string-append "DASH_DIR="
478 (assoc-ref %build-inputs "dash")
479 "/share/emacs/site-lisp/guix.d/dash-"
480 ,(package-version emacs-dash))
481 (string-append "WITH_EDITOR_DIR="
482 (assoc-ref %build-inputs "with-editor")
483 "/share/emacs/site-lisp/guix.d/with-editor-"
484 ,(package-version emacs-with-editor)))
485
486 #:phases
487 (modify-phases %standard-phases
488 (delete 'configure)
489 (add-before
490 'build 'patch-exec-paths
491 (lambda* (#:key inputs #:allow-other-keys)
492 (let ((git (assoc-ref inputs "git")))
493 (emacs-substitute-variables "lisp/magit-git.el"
494 ("magit-git-executable" (string-append git "/bin/git")))
495 #t))))))
496 (home-page "http://magit.github.io/")
497 (synopsis "Emacs interface for the Git version control system")
498 (description
499 "With Magit, you can inspect and modify your Git repositories with Emacs.
500 You can review and commit the changes you have made to the tracked files, for
501 example, and you can browse the history of past changes. There is support for
502 cherry picking, reverting, merging, rebasing, and other common Git
503 operations.")
504 (license license:gpl3+)))
505
506 (define-public magit-svn
507 (package
508 (name "magit-svn")
509 (version "2.1.1")
510 (source (origin
511 (method url-fetch)
512 (uri (string-append
513 "https://github.com/magit/magit-svn/archive/"
514 version ".tar.gz"))
515 (file-name (string-append name "-" version ".tar.gz"))
516 (sha256
517 (base32
518 "04y88j7q9h8xjbx5dbick6n5nr1522sn9i1znp0qwk3vjb4b5mzz"))))
519 (build-system trivial-build-system)
520 (native-inputs `(("emacs" ,emacs-minimal)
521 ("tar" ,tar)
522 ("gzip" ,gzip)))
523 (propagated-inputs `(("dash" ,emacs-dash)
524 ("magit" ,magit)))
525 (arguments
526 `(#:modules ((guix build utils)
527 (guix build emacs-utils))
528
529 #:builder
530 (begin
531 (use-modules (guix build utils)
532 (guix build emacs-utils))
533
534 (let* ((tar (string-append (assoc-ref %build-inputs "tar")
535 "/bin/tar"))
536 (PATH (string-append (assoc-ref %build-inputs "gzip")
537 "/bin"))
538 (emacs (string-append (assoc-ref %build-inputs "emacs")
539 "/bin/emacs"))
540 (magit (string-append (assoc-ref %build-inputs "magit")
541 "/share/emacs/site-lisp"))
542 (dash (string-append (assoc-ref %build-inputs "dash")
543 "/share/emacs/site-lisp/guix.d/dash-"
544 ,(package-version emacs-dash)))
545 (source (assoc-ref %build-inputs "source"))
546 (lisp-dir (string-append %output "/share/emacs/site-lisp")))
547 (setenv "PATH" PATH)
548 (system* tar "xvf" source)
549
550 (install-file (string-append ,name "-" ,version "/magit-svn.el")
551 lisp-dir)
552
553 (with-directory-excursion lisp-dir
554 (parameterize ((%emacs emacs))
555 (emacs-generate-autoloads ,name lisp-dir)
556 (setenv "EMACSLOADPATH"
557 (string-append ":" magit ":" dash))
558 (emacs-batch-eval '(byte-compile-file "magit-svn.el"))))))))
559 (home-page "https://github.com/magit/magit-svn")
560 (synopsis "Git-SVN extension to Magit")
561 (description
562 "This package is an extension to Magit, the Git Emacs mode, providing
563 support for Git-SVN.")
564 (license license:gpl3+)))
565
566 (define-public emacs-magit-popup
567 (package
568 (name "emacs-magit-popup")
569 (version (package-version magit))
570 (source (origin
571 (method url-fetch)
572 (uri (string-append
573 "https://raw.githubusercontent.com/magit/magit/"
574 version "/lisp/magit-popup.el"))
575 (file-name (string-append "magit-popup-" version ".el"))
576 (sha256
577 (base32
578 "144nl7j5mn86ccan6qxgg40bsxpkbc83vwnhd5y657gqki74972r"))))
579 (build-system emacs-build-system)
580 (propagated-inputs
581 `(("emacs-dash" ,emacs-dash)))
582 (home-page "https://github.com/magit/magit")
583 (synopsis "Define prefix-infix-suffix command combos")
584 (description
585 "This library implements a generic interface for toggling switches and
586 setting options and then invoking an Emacs command which does something with
587 these arguments. The prototypical use is for the command to call an external
588 process, passing on the arguments as command line arguments.")
589 (license license:gpl3+)))
590
591 (define-public haskell-mode
592 (package
593 (name "haskell-mode")
594 (version "13.14.2")
595 (source (origin
596 (method url-fetch)
597 (file-name (string-append name "-" version ".tar.gz"))
598 (uri (string-append
599 "https://github.com/haskell/haskell-mode/archive/v"
600 version ".tar.gz"))
601 (sha256
602 (base32 "1kxc2yj8vb122dv91r68h7c5ladcryx963fr16plfhg71fv7f9av"))))
603 (native-inputs
604 `(("emacs" ,emacs-minimal)
605 ("texinfo" ,texinfo)))
606 (build-system gnu-build-system)
607 (arguments
608 `(#:make-flags (list (string-append "EMACS="
609 (assoc-ref %build-inputs "emacs")
610 "/bin/emacs"))
611 #:phases
612 (modify-phases %standard-phases
613 (delete 'configure)
614 (add-before
615 'build 'pre-build
616 (lambda* (#:key inputs #:allow-other-keys)
617 (let ((sh (string-append (assoc-ref inputs "bash") "/bin/sh")))
618 (setenv "SHELL" "sh")
619 (substitute* (find-files "." "\\.el") (("/bin/sh") sh))
620 #t)))
621 (replace
622 'install
623 (lambda* (#:key outputs #:allow-other-keys)
624 (let* ((out (assoc-ref outputs "out"))
625 (el-dir (string-append out "/share/emacs/site-lisp"))
626 (doc (string-append
627 out "/share/doc/haskell-mode-" ,version))
628 (info (string-append out "/share/info")))
629 (define (copy-to-dir dir files)
630 (for-each (lambda (f)
631 (install-file f dir))
632 files))
633
634 (with-directory-excursion "doc"
635 (unless (zero? (system* "makeinfo" "haskell-mode.texi"))
636 (error "makeinfo failed"))
637 (install-file "haskell-mode.info" info))
638 (copy-to-dir doc '("CONTRIBUTING.md" "NEWS" "README.md"))
639 (copy-to-dir el-dir (find-files "." "\\.elc?"))
640 ;; these are now distributed with emacs
641 (with-directory-excursion el-dir
642 (for-each delete-file '("cl-lib.el" "ert.el")))
643 #t))))))
644 (home-page "https://github.com/haskell/haskell-mode")
645 (synopsis "Haskell mode for Emacs")
646 (description
647 "This is an Emacs mode for editing, debugging and developing Haskell
648 programs.")
649 (license license:gpl3+)))
650
651 (define-public let-alist
652 (package
653 (name "emacs-let-alist")
654 (version "1.0.4")
655 (source (origin
656 (method url-fetch)
657 (uri (string-append "http://elpa.gnu.org/packages/let-alist-"
658 version ".el"))
659 (sha256
660 (base32
661 "07312bvvyz86lf64vdkxg2l1wgfjl25ljdjwlf1bdzj01c4hm88x"))))
662 (build-system trivial-build-system)
663 (arguments
664 `(#:modules ((guix build utils)
665 (guix build emacs-utils))
666
667 #:builder (begin
668 (use-modules (guix build emacs-utils)
669 (guix build utils))
670
671 (let* ((out (assoc-ref %outputs "out"))
672 (lispdir (string-append out
673 "/share/emacs/site-lisp/"
674 "guix.d/let-alist-"
675 ,version))
676 (emacs (assoc-ref %build-inputs "emacs")))
677
678 (mkdir-p lispdir)
679 (copy-file (assoc-ref %build-inputs "source")
680 (string-append lispdir "/let-alist.el"))
681
682 (setenv "PATH" (string-append emacs "/bin"))
683 (emacs-byte-compile-directory lispdir)
684 #t))))
685 (native-inputs `(("emacs" ,emacs-minimal)))
686 (home-page "http://elpa.gnu.org/packages/let-alist.html")
687 (synopsis "Easily let-bind values of an assoc-list by their names")
688 (description
689 "This package offers a single Emacs Lisp macro, @code{let-alist}. This
690 macro takes a first argument, whose value must be an alist (association list),
691 and a body.
692
693 The macro expands to a let form containing the body, where each dotted symbol
694 inside body is let-bound to their cdrs in the alist. Only those present in
695 the body are let-bound and this search is done at compile time.")
696 (license license:gpl3+)))
697
698 (define-public flycheck
699 (package
700 (name "emacs-flycheck")
701 (version "28")
702 (source (origin
703 (method url-fetch)
704 (uri (string-append
705 "https://github.com/flycheck/flycheck/releases/download/"
706 version "/flycheck-" version ".tar"))
707 (sha256
708 (base32
709 "1yjxivk11d7w39zfhj2xr4h6xhwx1aj6yhyzd63rjrad7xpjfl86"))))
710 (build-system emacs-build-system)
711 (propagated-inputs
712 `(("emacs-dash" ,emacs-dash)
713 ("emacs-let-alist" ,let-alist)
714 ("emacs-seq" ,emacs-seq)))
715 (home-page "https://www.flycheck.org")
716 (synopsis "On-the-fly syntax checking")
717 (description
718 "This package provides on-the-fly syntax checking for GNU Emacs. It is a
719 replacement for the older Flymake extension which is part of GNU Emacs, with
720 many improvements and additional features.
721
722 Flycheck provides fully-automatic, fail-safe, on-the-fly background syntax
723 checking for over 30 programming and markup languages with more than 70
724 different tools. It highlights errors and warnings inline in the buffer, and
725 provides an optional IDE-like error list.")
726 (license license:gpl3+))) ;+GFDLv1.3+ for the manual
727
728 \f
729 ;;;
730 ;;; Web browsing.
731 ;;;
732
733 (define-public emacs-w3m
734 (package
735 (name "emacs-w3m")
736 (version "1.4.538+0.20141022")
737 (source (origin
738 (method url-fetch)
739 (uri (string-append "mirror://debian/pool/main/w/w3m-el/w3m-el_"
740 version ".orig.tar.gz"))
741 (sha256
742 (base32
743 "0zfxmq86pwk64yv0426gnjrvhjrgrjqn08sdcdhmmjmfpmqvm79y"))))
744 (build-system gnu-build-system)
745 (native-inputs `(("autoconf" ,autoconf)
746 ("emacs" ,emacs-minimal)))
747 (inputs `(("w3m" ,w3m)
748 ("imagemagick" ,imagemagick)))
749 (arguments
750 `(#:modules ((guix build gnu-build-system)
751 (guix build utils)
752 (guix build emacs-utils))
753 #:imported-modules (,@%gnu-build-system-modules
754 (guix build emacs-utils))
755 #:configure-flags
756 (let ((out (assoc-ref %outputs "out")))
757 (list (string-append "--with-lispdir="
758 out "/share/emacs/site-lisp")
759 (string-append "--with-icondir="
760 out "/share/images/emacs-w3m")
761 ;; Leave .el files uncompressed, otherwise GC can't
762 ;; identify run-time dependencies. See
763 ;; <http://lists.gnu.org/archive/html/guix-devel/2015-12/msg00208.html>
764 "--without-compress-install"))
765 #:tests? #f ; no check target
766 #:phases
767 (modify-phases %standard-phases
768 (add-after 'unpack 'autoconf
769 (lambda _
770 (zero? (system* "autoconf"))))
771 (add-before 'build 'patch-exec-paths
772 (lambda* (#:key inputs outputs #:allow-other-keys)
773 (let ((out (assoc-ref outputs "out"))
774 (w3m (assoc-ref inputs "w3m"))
775 (imagemagick (assoc-ref inputs "imagemagick"))
776 (coreutils (assoc-ref inputs "coreutils")))
777 (emacs-substitute-variables "w3m.el"
778 ("w3m-command" (string-append w3m "/bin/w3m"))
779 ("w3m-touch-command"
780 (string-append coreutils "/bin/touch"))
781 ("w3m-image-viewer"
782 (string-append imagemagick "/bin/display"))
783 ("w3m-icon-directory"
784 (string-append out "/share/images/emacs-w3m")))
785 (emacs-substitute-variables "w3m-image.el"
786 ("w3m-imagick-convert-program"
787 (string-append imagemagick "/bin/convert"))
788 ("w3m-imagick-identify-program"
789 (string-append imagemagick "/bin/identify")))
790 #t)))
791 (replace 'install
792 (lambda* (#:key outputs #:allow-other-keys)
793 (and (zero? (system* "make" "install" "install-icons"))
794 (with-directory-excursion
795 (string-append (assoc-ref outputs "out")
796 "/share/emacs/site-lisp")
797 (for-each delete-file '("ChangeLog" "ChangeLog.1"))
798 (symlink "w3m-load.el" "w3m-autoloads.el")
799 #t)))))))
800 (home-page "http://emacs-w3m.namazu.org/")
801 (synopsis "Simple Web browser for Emacs based on w3m")
802 (description
803 "Emacs-w3m is an emacs interface for the w3m web browser.")
804 (license license:gpl2+)))
805
806 (define-public emacs-wget
807 (package
808 (name "emacs-wget")
809 (version "0.5.0")
810 (source (origin
811 (method url-fetch)
812 (uri (string-append "mirror://debian/pool/main/w/wget-el/wget-el_"
813 version ".orig.tar.gz"))
814 (sha256
815 (base32 "10byvyv9dk0ib55gfqm7bcpxmx2qbih1jd03gmihrppr2mn52nff"))))
816 (build-system gnu-build-system)
817 (inputs `(("wget" ,wget)))
818 (native-inputs `(("emacs" ,emacs-minimal)))
819 (arguments
820 `(#:modules ((guix build gnu-build-system)
821 (guix build utils)
822 (guix build emacs-utils))
823 #:imported-modules (,@%gnu-build-system-modules
824 (guix build emacs-utils))
825 #:tests? #f ; no check target
826 #:phases
827 (alist-replace
828 'configure
829 (lambda* (#:key outputs #:allow-other-keys)
830 (substitute* "Makefile"
831 (("/usr/local") (assoc-ref outputs "out"))
832 (("/site-lisp/emacs-wget") "/site-lisp")))
833 (alist-cons-before
834 'build 'patch-exec-paths
835 (lambda* (#:key inputs outputs #:allow-other-keys)
836 (let ((wget (assoc-ref inputs "wget")))
837 (emacs-substitute-variables "wget.el"
838 ("wget-command" (string-append wget "/bin/wget")))))
839 (alist-cons-after
840 'install 'post-install
841 (lambda* (#:key outputs #:allow-other-keys)
842 (emacs-generate-autoloads
843 "wget" (string-append (assoc-ref outputs "out")
844 "/share/emacs/site-lisp/")))
845 %standard-phases)))))
846 (home-page "http://www.emacswiki.org/emacs/EmacsWget")
847 (synopsis "Simple file downloader for Emacs based on wget")
848 (description
849 "Emacs-wget is an emacs interface for the wget file downloader.")
850 (license license:gpl2+)))
851
852 \f
853 ;;;
854 ;;; Multimedia.
855 ;;;
856
857 (define-public emms
858 (package
859 (name "emacs-emms")
860 (version "4.1")
861 (source (origin
862 (method url-fetch)
863 (uri (string-append "mirror://gnu/emms/emms-"
864 version ".tar.gz"))
865 (sha256
866 (base32
867 "0ay6631p3dr6xnhkm7skwn0gp317r1mxbip28m126w4zqf05cbh3"))
868 (modules '((guix build utils)))
869 (snippet
870 '(substitute* "Makefile"
871 (("/usr/bin/install-info")
872 ;; No need to use 'install-info' since it would create a
873 ;; useless 'dir' file.
874 "true")
875 (("^INFODIR=.*")
876 ;; Install Info files to $out/share/info, not $out/info.
877 "INFODIR := $(PREFIX)/share/info\n")
878 (("/site-lisp/emms")
879 ;; Install directly in share/emacs/site-lisp, not in a
880 ;; sub-directory.
881 "/site-lisp")
882 (("^all: (.*)\n" _ rest)
883 ;; Build 'emms-print-metadata'.
884 (string-append "all: " rest " emms-print-metadata\n"))))))
885 (build-system gnu-build-system)
886 (arguments
887 `(#:modules ((guix build gnu-build-system)
888 (guix build utils)
889 (guix build emacs-utils))
890 #:imported-modules (,@%gnu-build-system-modules
891 (guix build emacs-utils))
892
893 #:phases
894 (modify-phases %standard-phases
895 (replace 'configure
896 (lambda* (#:key inputs outputs #:allow-other-keys)
897 (let ((out (assoc-ref outputs "out"))
898 (vorbis (assoc-ref inputs "vorbis-tools"))
899 (alsa (assoc-ref inputs "alsa-utils"))
900 (mpg321 (assoc-ref inputs "mpg321"))
901 (mp3info (assoc-ref inputs "mp3info")))
902 ;; Specify the installation directory.
903 (substitute* "Makefile"
904 (("PREFIX=.*$")
905 (string-append "PREFIX := " out "\n")))
906
907 (setenv "SHELL" (which "sh"))
908 (setenv "CC" "gcc")
909
910 ;; Specify the absolute file names of the various
911 ;; programs so that everything works out-of-the-box.
912 (with-directory-excursion "lisp"
913 (emacs-substitute-variables
914 "emms-player-mpg321-remote.el"
915 ("emms-player-mpg321-remote-command"
916 (string-append mpg321 "/bin/mpg321")))
917 (substitute* "emms-player-simple.el"
918 (("\"ogg123\"")
919 (string-append "\"" vorbis "/bin/ogg123\"")))
920 (emacs-substitute-variables "emms-info-ogginfo.el"
921 ("emms-info-ogginfo-program-name"
922 (string-append vorbis "/bin/ogginfo")))
923 (emacs-substitute-variables "emms-info-libtag.el"
924 ("emms-info-libtag-program-name"
925 (string-append out "/bin/emms-print-metadata")))
926 (emacs-substitute-variables "emms-info-mp3info.el"
927 ("emms-info-mp3info-program-name"
928 (string-append mp3info "/bin/mp3info")))
929 (substitute* "emms-volume-amixer.el"
930 (("\"amixer\"")
931 (string-append "\"" alsa "/bin/amixer\"")))
932 (substitute* "emms-tag-editor.el"
933 (("\"mp3info\"")
934 (string-append "\"" mp3info "/bin/mp3info\"")))))))
935 (add-before 'install 'pre-install
936 (lambda* (#:key outputs #:allow-other-keys)
937 ;; The 'install' rule expects the target directory to exist.
938 (let* ((out (assoc-ref outputs "out"))
939 (man1 (string-append out "/share/man/man1")))
940 (mkdir-p man1)
941 #t)))
942 (add-after 'install 'post-install
943 (lambda* (#:key outputs #:allow-other-keys)
944 (let* ((out (assoc-ref outputs "out"))
945 (target (string-append
946 out "/bin/emms-print-metadata")))
947 (symlink "emms-auto.el"
948 (string-append out "/share/emacs/site-lisp/"
949 "emms-autoloads.el"))
950 (mkdir-p (dirname target))
951 (copy-file "src/emms-print-metadata" target)
952 (chmod target #o555)))))
953 #:tests? #f))
954 (native-inputs `(("emacs" ,emacs-minimal) ;for (guix build emacs-utils)
955 ("texinfo" ,texinfo)))
956 (inputs `(("alsa-utils" ,alsa-utils)
957 ("vorbis-tools" ,vorbis-tools)
958 ("mpg321" ,mpg321)
959 ("taglib" ,taglib)
960 ("mp3info" ,mp3info)))
961 (synopsis "Emacs Multimedia System")
962 (description
963 "EMMS is the Emacs Multimedia System. It is a small front-end which
964 can control one of the supported external players. Thus, it supports
965 whatever formats are supported by your music player. It also
966 supports tagging and playlist management, all behind a clean and
967 light user interface.")
968 (home-page "http://www.gnu.org/software/emms/")
969 (license license:gpl3+)))
970
971 (define-public emacs-emms-player-mpv
972 (package
973 (name "emacs-emms-player-mpv")
974 (version "0.0.8")
975 (source
976 (origin
977 (method url-fetch)
978 (uri (string-append "https://github.com/dochang/emms-player-mpv/archive/"
979 version ".tar.gz"))
980 (file-name (string-append name "-" version ".tar.gz"))
981 (sha256
982 (base32
983 "01wj410dpx25b3i8781i2j9c6nlvzvvphy9qgh7zfpmyz6a3wsm4"))))
984 (build-system emacs-build-system)
985 (propagated-inputs
986 `(("emms" ,emms)))
987 (home-page "https://github.com/dochang/emms-player-mpv/")
988 (synopsis "Mpv support for EMMS")
989 (description
990 "This package provides an EMMS player that uses mpv. It supports pause
991 and seeking.")
992 (license license:gpl3+)))
993
994 \f
995 ;;;
996 ;;; Miscellaneous.
997 ;;;
998
999 (define-public bbdb
1000 (package
1001 (name "bbdb")
1002 (version "3.1.2")
1003 (source (origin
1004 (method url-fetch)
1005 (uri (string-append "mirror://savannah/bbdb/bbdb-"
1006 version ".tar.gz"))
1007 (sha256
1008 (base32
1009 "1gs16bbpiiy01w9pyg12868r57kx1v3hnw04gmqsmpc40l1hyy05"))
1010 (modules '((guix build utils)))
1011 (snippet
1012 ;; We don't want to build and install the PDF.
1013 '(substitute* "doc/Makefile.in"
1014 (("^doc_DATA = .*$")
1015 "doc_DATA =\n")))))
1016 (build-system gnu-build-system)
1017 (arguments
1018 '(#:phases (alist-cons-after
1019 'install 'post-install
1020 (lambda* (#:key outputs #:allow-other-keys)
1021 ;; Add an autoloads file with the right name for guix.el.
1022 (let* ((out (assoc-ref outputs "out"))
1023 (site (string-append out "/share/emacs/site-lisp")))
1024 (with-directory-excursion site
1025 (symlink "bbdb-loaddefs.el" "bbdb-autoloads.el"))))
1026 %standard-phases)))
1027 (native-inputs `(("emacs" ,emacs-minimal)))
1028 (home-page "http://savannah.nongnu.org/projects/bbdb/")
1029 (synopsis "Contact management utility for Emacs")
1030 (description
1031 "BBDB is the Insidious Big Brother Database for GNU Emacs. It provides
1032 an address book for email and snail mail addresses, phone numbers and the
1033 like. It can be linked with various Emacs mail clients (Message and Mail
1034 mode, Rmail, Gnus, MH-E, and VM). BBDB is fully customizable.")
1035 (license license:gpl3+)))
1036
1037 (define-public emacs-async
1038 (package
1039 (name "emacs-async")
1040 (version "1.9")
1041 (source (origin
1042 (method url-fetch)
1043 (uri (string-append "http://elpa.gnu.org/packages/async-"
1044 version ".tar"))
1045 (sha256
1046 (base32
1047 "1ip5nc8xyln5szvqwp6wqva9xr84pn8ssn3nnphrszr19y4js2bm"))))
1048 (build-system emacs-build-system)
1049 (home-page "http://elpa.gnu.org/packages/async.html")
1050 (synopsis "Asynchronous processing in Emacs")
1051 (description
1052 "This package provides the ability to call asynchronous functions and
1053 processes. For example, it can be used to run dired commands (for copying,
1054 moving, etc.) asynchronously using @code{dired-async-mode}. Also it is used
1055 as a library for other Emacs packages.")
1056 (license license:gpl3+)))
1057
1058 (define-public emacs-auctex
1059 (package
1060 (name "emacs-auctex")
1061 (version "11.88.6")
1062 (source
1063 (origin
1064 (method url-fetch)
1065 (uri (string-append
1066 "http://elpa.gnu.org/packages/auctex-"
1067 version
1068 ".tar"))
1069 (sha256
1070 (base32
1071 "1pmki8hdjjikxlvip3pzi350bln3gcimr27yjf0xfwjvnp5hh9nc"))))
1072 (build-system emacs-build-system)
1073 ;; We use 'emacs' because AUCTeX requires dbus at compile time
1074 ;; ('emacs-minimal' does not provide dbus).
1075 (arguments `(#:emacs ,emacs))
1076 (native-inputs
1077 `(("perl" ,perl)))
1078 (home-page "http://www.gnu.org/software/auctex/")
1079 (synopsis "Integrated environment for TeX")
1080 (description
1081 "AUCTeX is a comprehensive customizable integrated environment for
1082 writing input files for TeX, LaTeX, ConTeXt, Texinfo, and docTeX using Emacs
1083 or XEmacs.")
1084 (license license:gpl3+)))
1085
1086 (define-public emacs-mmm-mode
1087 (package
1088 (name "emacs-mmm-mode")
1089 (version "0.5.4")
1090 (source
1091 (origin
1092 (method url-fetch)
1093 (uri (string-append
1094 "https://github.com/purcell/mmm-mode/archive/"
1095 version ".tar.gz"))
1096 (file-name (string-append name "-" version ".tar.gz"))
1097 (sha256
1098 (base32
1099 "10kwslnflbjqm62wkrq420crqzdqalzfflp9pqk1i12zm6dm4mfv"))))
1100 (build-system gnu-build-system)
1101 (arguments
1102 '(#:phases
1103 (modify-phases %standard-phases
1104 (add-after 'unpack 'autogen
1105 (lambda _
1106 (zero? (system* "sh" "autogen.sh")))))))
1107 (native-inputs
1108 `(("autoconf" ,autoconf)
1109 ("automake" ,automake)
1110 ("emacs" ,emacs-minimal)
1111 ("texinfo" ,texinfo)))
1112 (home-page "https://github.com/purcell/mmm-mode")
1113 (synopsis "Allow multiple major modes in an Emacs buffer")
1114 (description
1115 "MMM Mode is a minor mode that allows multiple major modes to coexist in a
1116 single buffer.")
1117 (license license:gpl3+)))
1118
1119 (define-public emacs-pdf-tools
1120 (package
1121 (name "emacs-pdf-tools")
1122 (version "0.70")
1123 (source (origin
1124 (method url-fetch)
1125 (uri (string-append
1126 "https://github.com/politza/pdf-tools/archive/v"
1127 version ".tar.gz"))
1128 (file-name (string-append name "-" version ".tar.gz"))
1129 (sha256
1130 (base32
1131 "1m0api6wiawswyk46bdsyk6r5rg3b86a4paar6nassm6x6c6vr77"))))
1132 (build-system gnu-build-system)
1133 (arguments
1134 `(#:tests? #f ; there are no tests
1135 #:modules ((guix build gnu-build-system)
1136 ((guix build emacs-build-system) #:prefix emacs:)
1137 (guix build utils)
1138 (guix build emacs-utils))
1139 #:imported-modules (,@%gnu-build-system-modules
1140 (guix build emacs-build-system)
1141 (guix build emacs-utils))
1142 #:phases
1143 (modify-phases %standard-phases
1144 ;; Build server side using 'gnu-build-system'.
1145 (add-after 'unpack 'enter-server-dir
1146 (lambda _ (chdir "server") #t))
1147 (add-before 'configure 'autogen
1148 (lambda _
1149 (zero? (system* "bash" "autogen.sh"))))
1150
1151 ;; Build emacs side using 'emacs-build-system'.
1152 (add-after 'compress-documentation 'enter-lisp-dir
1153 (lambda _ (chdir "../lisp") #t))
1154 (add-after 'enter-lisp-dir 'emacs-patch-variables
1155 (lambda* (#:key outputs #:allow-other-keys)
1156 ;; Set path to epdfinfo program.
1157 (emacs-substitute-variables "pdf-info.el"
1158 ("pdf-info-epdfinfo-program"
1159 (string-append (assoc-ref outputs "out")
1160 "/bin/epdfinfo")))
1161 ;; Set 'pdf-tools-handle-upgrades' to nil to avoid "auto
1162 ;; upgrading" that pdf-tools tries to perform.
1163 (emacs-substitute-variables "pdf-tools.el"
1164 ("pdf-tools-handle-upgrades" '()))))
1165 (add-after 'emacs-patch-variables 'emacs-install
1166 (assoc-ref emacs:%standard-phases 'install))
1167 (add-after 'emacs-install 'emacs-build
1168 (assoc-ref emacs:%standard-phases 'build))
1169 (add-after 'emacs-install 'emacs-make-autoloads
1170 (assoc-ref emacs:%standard-phases 'make-autoloads)))))
1171 (native-inputs `(("autoconf" ,autoconf)
1172 ("automake" ,automake)
1173 ("pkg-config" ,pkg-config)
1174 ("emacs" ,emacs-minimal)))
1175 (propagated-inputs
1176 `(("let-alist" ,let-alist)))
1177 (inputs `(("poppler" ,poppler)
1178 ("cairo" ,cairo)
1179 ("glib" ,glib)
1180 ("libpng" ,libpng)
1181 ("zlib" ,zlib)))
1182 (synopsis "Emacs support library for PDF files")
1183 (description
1184 "PDF Tools is, among other things, a replacement of DocView for PDF
1185 files. The key difference is that pages are not pre-rendered by
1186 e.g. ghostscript and stored in the file-system, but rather created on-demand
1187 and stored in memory.")
1188 (home-page "https://github.com/politza/pdf-tools")
1189 (license license:gpl3+)))
1190
1191 (define-public emacs-dash
1192 (package
1193 (name "emacs-dash")
1194 (version "2.12.1")
1195 (source (origin
1196 (method url-fetch)
1197 (uri (string-append
1198 "https://github.com/magnars/dash.el/archive/"
1199 version ".tar.gz"))
1200 (file-name (string-append name "-" version ".tar.gz"))
1201 (sha256
1202 (base32
1203 "082jl7mp4x063bpj5ad2pc5125k0d6p7rb89gcj7ny3lma9h2ij1"))))
1204 (build-system emacs-build-system)
1205 (arguments
1206 `(#:phases
1207 (modify-phases %standard-phases
1208 (add-before 'install 'check
1209 (lambda _
1210 (zero? (system* "./run-tests.sh")))))))
1211 (home-page "https://github.com/magnars/dash.el")
1212 (synopsis "Modern list library for Emacs")
1213 (description "This package provides a modern list API library for Emacs.")
1214 (license license:gpl3+)))
1215
1216 (define-public emacs-undo-tree
1217 (package
1218 (name "emacs-undo-tree")
1219 (version "0.6.4")
1220 (source (origin
1221 (method git-fetch)
1222 (uri (git-reference
1223 (url "http://dr-qubit.org/git/undo-tree.git")
1224 (commit "release/0.6.4")))
1225 (file-name (string-append name "-" version "-checkout"))
1226 (sha256
1227 (base32
1228 "0b6hnv6bq1g5np5q2yw9r9aj1cxpp14akm21br7vpb7wp01fv4b3"))))
1229 (build-system emacs-build-system)
1230 (home-page "http://www.dr-qubit.org/emacs.php")
1231 (synopsis "Treat undo history as a tree")
1232 (description "Tree-like interface to Emacs undo system, providing
1233 graphical tree presentation of all previous states of buffer that
1234 allows easily move between them.")
1235 (license license:gpl3+)))
1236
1237 (define-public emacs-s
1238 (package
1239 (name "emacs-s")
1240 (version "1.9.0")
1241 (source (origin
1242 (method url-fetch)
1243 (uri (string-append
1244 "https://github.com/magnars/s.el/archive/"
1245 version ".tar.gz"))
1246 (file-name (string-append name "-" version ".tar.gz"))
1247 (sha256
1248 (base32
1249 "1gah2k577gvnmxlpw7zrz0jr571vghzhdv2hbgchlgah07czd091"))))
1250 (build-system emacs-build-system)
1251 (arguments
1252 `(#:phases
1253 (modify-phases %standard-phases
1254 (add-before 'install 'check
1255 (lambda _
1256 (zero? (system* "./run-tests.sh")))))))
1257 (home-page "https://github.com/magnars/s.el")
1258 (synopsis "Emacs string manipulation library")
1259 (description "This package provides an Emacs library for manipulating
1260 strings.")
1261 (license license:gpl3+)))
1262
1263 (define-public emacs-f
1264 (package
1265 (name "emacs-f")
1266 (version "0.17.2")
1267 (source (origin
1268 (method url-fetch)
1269 (uri (string-append
1270 "https://github.com/rejeep/f.el/archive/v"
1271 version ".tar.gz"))
1272 (file-name (string-append name "-" version ".tar.gz"))
1273 (sha256
1274 (base32
1275 "1n5gcldf43wmkr7jxgs519v21zavwr0yn8048iv6gvgfwicnyjlx"))))
1276 (build-system emacs-build-system)
1277 (propagated-inputs
1278 `(("emacs-s" ,emacs-s)
1279 ("emacs-dash" ,emacs-dash)))
1280 (home-page "http://github.com/rejeep/f.el")
1281 (synopsis "Emacs API for working with files and directories")
1282 (description "This package provides an Emacs library for working with
1283 files and directories.")
1284 (license license:gpl3+)))
1285
1286 (define-public emacs-el-mock
1287 (package
1288 (name "emacs-el-mock")
1289 (version "1.25.1")
1290 (source
1291 (origin
1292 (method url-fetch)
1293 (uri (string-append "https://github.com/rejeep/el-mock.el/"
1294 "archive/v" version ".tar.gz"))
1295 (file-name (string-append name "-" version ".tar.gz"))
1296 (sha256
1297 (base32
1298 "16xw94n58xxn3zvgyj72bmzs0k5lkvswjmzs79ws9n7rzdivb38b"))))
1299 (build-system emacs-build-system)
1300 (home-page "http://github.com/rejeep/el-mock.el")
1301 (synopsis "Tiny mock and stub framework in Emacs Lisp")
1302 (description
1303 "Emacs Lisp Mock is a library for mocking and stubbing using readable
1304 syntax. Most commonly Emacs Lisp Mock is used in conjunction with Emacs Lisp
1305 Expectations, but it can be used in other contexts.")
1306 (license license:gpl3+)))
1307
1308 (define-public emacs-espuds
1309 (package
1310 (name "emacs-espuds")
1311 (version "0.3.3")
1312 (source
1313 (origin
1314 (method url-fetch)
1315 (uri (string-append "https://github.com/ecukes/espuds/"
1316 "archive/v" version ".tar.gz"))
1317 (file-name (string-append name "-" version ".tar.gz"))
1318 (sha256
1319 (base32
1320 "0xv551376pbmh735a3zjwc9z4qdx6ngj1vpq3xqjpn0a1rwjyn4k"))))
1321 (build-system emacs-build-system)
1322 (propagated-inputs
1323 `(("emacs-s" ,emacs-s)
1324 ("emacs-dash" ,emacs-dash)
1325 ("emacs-f" ,emacs-f)))
1326 (home-page "http://github.com/ecukes/espuds")
1327 (synopsis "Common step definitions for Ecukes")
1328 (description "Espuds is a collection of the most commonly used step
1329 definitions for testing with the Ecukes framework.")
1330 (license license:gpl3+)))
1331
1332 (define-public emacs-expand-region
1333 (package
1334 (name "emacs-expand-region")
1335 (version "0.10.0")
1336 (source
1337 (origin
1338 (method url-fetch)
1339 (uri (string-append "https://github.com/magnars/expand-region.el"
1340 "/archive/" version ".tar.gz"))
1341 (file-name (string-append name "-" version ".tar.gz"))
1342 (sha256
1343 (base32
1344 "1zfiaqyb3zqiyqjkpqsjw660j09805nqsg25q6ars2h8gs0rnvxb"))))
1345 (build-system emacs-build-system)
1346 (home-page "https://github.com/magnars/expand-region.el")
1347 (synopsis "Increase selected region by semantic units")
1348 (description
1349 "Expand region increases the selected region by semantic units. Just
1350 keep pressing the key until it selects what you want. There's also
1351 @code{er/contract-region} if you expand too far.")
1352 (license license:gpl3+)))
1353
1354 (define-public emacs-fill-column-indicator
1355 (package
1356 (name "emacs-fill-column-indicator")
1357 (version "1.81")
1358 (source
1359 (origin
1360 (method url-fetch)
1361 (uri (string-append "https://github.com/alpaker/Fill-Column-Indicator"
1362 "/archive/v" version ".tar.gz"))
1363 (file-name (string-append name "-" version ".tar.gz"))
1364 (sha256
1365 (base32
1366 "1xwyqbjbbicmvhlb85vg4j5snwy1vd7rfk89ws4viws5ljkhhyg8"))))
1367 (build-system emacs-build-system)
1368 (home-page "https://www.emacswiki.org/emacs/FillColumnIndicator")
1369 (synopsis "Graphically indicate the fill column")
1370 (description
1371 "Fill-column-indicator graphically indicates the location of the fill
1372 column by drawing a thin line down the length of the editing window.")
1373 (license license:gpl3+)))
1374
1375 (define-public emacs-znc
1376 (package
1377 (name "emacs-znc")
1378 (version "0.0.2")
1379 (source
1380 (origin
1381 (method url-fetch)
1382 (uri (string-append "https://marmalade-repo.org/packages/znc-"
1383 version ".el"))
1384 (sha256
1385 (base32
1386 "1d8lqvybgyazin5z0g1c4l3rg1vzrrvf0saqs53jr1zcdg0lianh"))))
1387 (build-system emacs-build-system)
1388 (home-page "https://github.com/sshirokov/ZNC.el")
1389 (synopsis "Make ERC and ZNC get along better")
1390 (description
1391 "This is a thin wrapper around @code{erc} that enables one to use the ZNC
1392 IRC bouncer with ERC.")
1393 (license license:expat)))
1394
1395 (define-public emacs-shut-up
1396 (package
1397 (name "emacs-shut-up")
1398 (version "0.3.2")
1399 (source
1400 (origin
1401 (method url-fetch)
1402 (uri (string-append "https://github.com/cask/shut-up/"
1403 "archive/v" version ".tar.gz"))
1404 (file-name (string-append name "-" version ".tar.gz"))
1405 (sha256
1406 (base32
1407 "09kzrjdkb569iviyg7ydwq44yh84m3f9hkl7jizfrlk0w4gz67d1"))))
1408 (build-system emacs-build-system)
1409 (home-page "https://github.com/cask/shut-up")
1410 (synopsis "Silence Emacs")
1411 (description "This package silences most output of Emacs when running an
1412 Emacs shell script.")
1413 (license license:expat)))
1414
1415 (define-public emacs-paren-face
1416 (package
1417 (name "emacs-paren-face")
1418 (version "1.0.0")
1419 (source
1420 (origin
1421 (method url-fetch)
1422 (uri (string-append "https://github.com/tarsius/paren-face/archive/"
1423 version ".tar.gz"))
1424 (file-name (string-append name "-" version ".tar.gz"))
1425 (sha256
1426 (base32
1427 "0y4qrhxa9332vsvr999jg7qj1ymnfgwpf591yi4a4jgg90pm7qnn"))))
1428 (build-system emacs-build-system)
1429 (home-page "http://github.com/tarsius/paren-face")
1430 (synopsis "Face for parentheses in lisp modes")
1431 (description
1432 "This library defines a face named @code{parenthesis} used just for
1433 parentheses. The intended purpose of this face is to make parentheses less
1434 visible in Lisp code by dimming them. Lispers probably don't need to be
1435 constantly made aware of the existence of the parentheses. Dimming them might
1436 be even more useful for people new to lisp who have not yet learned to
1437 subconsciously blend out the parentheses.")
1438 (license license:gpl3+)))
1439
1440 (define-public emacs-page-break-lines
1441 (package
1442 (name "emacs-page-break-lines")
1443 (version "0.11")
1444 (source
1445 (origin
1446 (method url-fetch)
1447 (uri (string-append "https://github.com/purcell/page-break-lines/"
1448 "archive/" version ".tar.gz"))
1449 (file-name (string-append name "-" version ".tar.gz"))
1450 (sha256
1451 (base32
1452 "1zzhziq5kbrm9rxk30kx2glz455fp1blqxg8cpcf6l8xl3w8z4pg"))))
1453 (build-system emacs-build-system)
1454 (home-page "https://github.com/purcell/page-break-lines")
1455 (synopsis "Display page breaks as tidy horizontal lines")
1456 (description
1457 "This library provides a global mode which displays form feed characters
1458 as horizontal rules.")
1459 (license license:gpl3+)))
1460
1461 (define-public emacs-simple-httpd
1462 (package
1463 (name "emacs-simple-httpd")
1464 (version "1.4.6")
1465 (source
1466 (origin
1467 (method url-fetch)
1468 (uri (string-append "https://github.com/skeeto/emacs-web-server/"
1469 "archive/" version ".tar.gz"))
1470 (file-name (string-append name "-" version ".tar.gz"))
1471 (sha256
1472 (base32
1473 "01r7h3imnj4qx1m53a2wjafvbylcyz5f9r2rg2cs7ky3chlg220r"))))
1474 (build-system emacs-build-system)
1475 (home-page "https://github.com/skeeto/emacs-http-server")
1476 (synopsis "HTTP server in pure Emacs Lisp")
1477 (description
1478 "This package provides a simple HTTP server written in Emacs Lisp to
1479 serve files and directory listings.")
1480 (license license:unlicense)))
1481
1482 (define-public emacs-skewer-mode
1483 (package
1484 (name "emacs-skewer-mode")
1485 (version "1.6.2")
1486 (source
1487 (origin
1488 (method url-fetch)
1489 (uri (string-append "https://github.com/skeeto/skewer-mode/archive/"
1490 version ".tar.gz"))
1491 (file-name (string-append name "-" version ".tar.gz"))
1492 (sha256
1493 (base32
1494 "07jpz374j0j964szy3zznrkyja2kpdl3xa87wh7349mzxivqxdx0"))))
1495 (build-system emacs-build-system)
1496 (propagated-inputs
1497 `(("emacs-simple-httpd" ,emacs-simple-httpd)
1498 ("emacs-js2-mode" ,emacs-js2-mode)))
1499 (home-page "https://github.com/skeeto/skewer-mode")
1500 (synopsis "Live web development in Emacs")
1501 (description
1502 "Skewer-mode provides live interaction with JavaScript, CSS, and HTML in
1503 a web browser. Expressions are sent on-the-fly from an editing buffer to be
1504 evaluated in the browser, just like Emacs does with an inferior Lisp process
1505 in Lisp modes.")
1506 (license license:unlicense)))
1507
1508 (define-public emacs-rich-minority
1509 (package
1510 (name "emacs-rich-minority")
1511 (version "1.0.1")
1512 (source
1513 (origin
1514 (method url-fetch)
1515 (uri (string-append "https://github.com/Malabarba/rich-minority/"
1516 "archive/" version ".tar.gz"))
1517 (file-name (string-append name "-" version ".tar.gz"))
1518 (sha256
1519 (base32
1520 "1l0cb0q7kyi88nwfqd542psnkgwnjklpzc5rx32gzd3lkwkrbr8v"))))
1521 (build-system emacs-build-system)
1522 (home-page "https://github.com/Malabarba/rich-minority")
1523 (synopsis "Clean-up and beautify the list of minor modes")
1524 (description
1525 "This Emacs package hides and/or highlights minor modes in the
1526 mode-line.")
1527 (license license:gpl2+)))
1528
1529 (define-public emacs-smart-mode-line
1530 (package
1531 (name "emacs-smart-mode-line")
1532 (version "2.10.1")
1533 (source
1534 (origin
1535 (method url-fetch)
1536 (uri (string-append "https://github.com/Malabarba/smart-mode-line/"
1537 "archive/" version ".tar.gz"))
1538 (file-name (string-append name "-" version ".tar.gz"))
1539 (sha256
1540 (base32
1541 "0i9wajabrrsjzwd842q0m2611kf0q31p9hg1pdj81177gynkw8l8"))))
1542 (build-system emacs-build-system)
1543 (propagated-inputs
1544 `(("emacs-rich-minority" ,emacs-rich-minority)))
1545 (home-page "http://github.com/Malabarba/smart-mode-line")
1546 (synopsis "Color-coded smart mode-line.")
1547 (description
1548 "Smart Mode Line is a mode-line theme for Emacs. It aims to be easy to
1549 read from small to large monitors by using colors, a prefix feature, and smart
1550 truncation.")
1551 (license license:gpl2+)))
1552
1553 (define-public emacs-ob-ipython
1554 (package
1555 (name "emacs-ob-ipython")
1556 (version "20150704.8807064693")
1557 (source (origin
1558 (method git-fetch)
1559 (uri (git-reference
1560 (commit "880706469338ab59b5bb7dbe8460016f89755364")
1561 (url "https://github.com/gregsexton/ob-ipython.git")))
1562 (sha256
1563 (base32
1564 "1scf25snbds9ymagpny30ijbsg479r3nm0ih01dy4m9d0g7qryb7"))))
1565 (build-system emacs-build-system)
1566 (propagated-inputs
1567 `(("emacs-f" ,emacs-f)))
1568 (home-page "http://www.gregsexton.org")
1569 (synopsis "Org-Babel functions for IPython evaluation")
1570 (description "This package adds support to Org-Babel for evaluating Python
1571 source code using IPython.")
1572 (license license:gpl3+)))
1573
1574 (define-public emacs-debbugs
1575 (package
1576 (name "emacs-debbugs")
1577 (version "0.9")
1578 (source (origin
1579 (method url-fetch)
1580 (uri (string-append "http://elpa.gnu.org/packages/debbugs-"
1581 version ".tar"))
1582 (sha256
1583 (base32
1584 "1wc6kw7hihqqdx8qyl01akygycnan44x400hwrcf54m3hb4isa0k"))))
1585 (build-system emacs-build-system)
1586 (propagated-inputs
1587 `(("emacs-async" ,emacs-async)))
1588 (home-page "http://elpa.gnu.org/packages/debbugs.html")
1589 (synopsis "Access the Debbugs bug tracker in Emacs")
1590 (description
1591 "This package lets you access the @uref{http://bugs.gnu.org,GNU Bug
1592 Tracker} from within Emacs.
1593
1594 For instance, it defines the command @code{M-x debbugs-gnu} for listing bugs,
1595 and the command @code{M-x debbugs-gnu-search} for bug searching. If you
1596 prefer the listing of bugs as TODO items of @code{org-mode}, you could use
1597 @code{M-x debbugs-org} and related commands.
1598
1599 A minor mode @code{debbugs-browse-mode} let you browse URLs to the GNU Bug
1600 Tracker as well as bug identifiers prepared for @code{bug-reference-mode}.")
1601 (license license:gpl3+)))
1602
1603 (define-public emacs-deferred
1604 (package
1605 (name "emacs-deferred")
1606 (version "0.3.2")
1607 (home-page "https://github.com/kiwanami/emacs-deferred")
1608 (source (origin
1609 (method git-fetch)
1610 (uri (git-reference
1611 (url home-page)
1612 (commit (string-append "v" version))))
1613 (sha256
1614 (base32
1615 "0059jy01ni5irpgrj9fa81ayd9j25nvmjjm79ms3210ysx4pgqdr"))
1616 (file-name (string-append name "-" version))))
1617 (build-system emacs-build-system)
1618 ;; FIXME: Would need 'el-expectations' to actually run tests.
1619 (synopsis "Simple asynchronous functions for Emacs Lisp")
1620 (description
1621 "The @code{deferred.el} library provides support for asynchronous tasks.
1622 The API is almost the same as that of
1623 @uref{https://github.com/cho45/jsdeferred, JSDeferred}, a JavaScript library
1624 for asynchronous tasks.")
1625 (license license:gpl3+)))
1626
1627 (define-public butler
1628 (package
1629 (name "emacs-butler")
1630 (version "0.2.4")
1631 (home-page "https://github.com/AshtonKem/Butler")
1632 (source (origin
1633 (method git-fetch)
1634 (uri (git-reference
1635 (url home-page)
1636 (commit version)))
1637 (sha256
1638 (base32
1639 "1pii9dw4skq7nr4na6qxqasl36av8cwjp71bf1fgppqpcd9z8skj"))
1640 (file-name (string-append name "-" version))))
1641 (build-system emacs-build-system)
1642 (propagated-inputs
1643 `(("emacs-deferred" ,emacs-deferred)))
1644 (synopsis "Emacs client for Jenkins")
1645 (description
1646 "Butler provides an interface to connect to Jenkins continuous
1647 integration servers. Users can specify a list of server in the
1648 @code{butler-server-list} variable and then use @code{M-x butler-status} to
1649 view the build status of those servers' build jobs, and possibly to trigger
1650 build jobs.")
1651 (license license:gpl3+)))
1652
1653 (define-public emacs-company
1654 (package
1655 (name "emacs-company")
1656 (version "0.8.12")
1657 (source
1658 (origin
1659 (method url-fetch)
1660 (uri (string-append "https://github.com/company-mode/company-mode/archive/"
1661 version ".tar.gz"))
1662 (file-name (string-append name "-" version ".tar.gz"))
1663 (sha256
1664 (base32
1665 "1vwmbqm7h4lrszv2qxy6fqzznm9raigi84cadx982c9m7shp0zzz"))))
1666 (build-system emacs-build-system)
1667 (home-page "http://company-mode.github.io/")
1668 (synopsis "Modular text completion framework")
1669 (description
1670 "Company is a modular completion mechanism. Modules for retrieving
1671 completion candidates are called back-ends, modules for displaying them are
1672 front-ends. Company comes with many back-ends, e.g. @code{company-elisp}.
1673 These are distributed in separate files and can be used individually.")
1674 (license license:gpl3+)))
1675
1676 (define-public emacs-multiple-cursors
1677 (package
1678 (name "emacs-multiple-cursors")
1679 (version "1.4.0")
1680 (source
1681 (origin
1682 (method url-fetch)
1683 (uri (string-append "https://github.com/magnars/multiple-cursors.el/"
1684 "archive/" version ".tar.gz"))
1685 (file-name (string-append name "-" version ".tar.gz"))
1686 (sha256
1687 (base32
1688 "0hihihlvcvzayg5fnqzcg45fhvlmq6xlq58syy00rjwbry9w389k"))))
1689 (build-system emacs-build-system)
1690 (home-page "https://github.com/magnars/multiple-cursors.el")
1691 (synopsis "Multiple cursors for Emacs")
1692 (description
1693 "This package adds support to Emacs for editing text with multiple
1694 simultaneous cursors.")
1695 (license license:gpl3+)))
1696
1697 (define-public typo
1698 (package
1699 (name "emacs-typo")
1700 (version "1.1")
1701 (home-page "https://github.com/jorgenschaefer/typoel")
1702 (source (origin
1703 (method git-fetch)
1704 (uri (git-reference
1705 (url home-page)
1706 (commit (string-append "v" version))))
1707 (sha256
1708 (base32
1709 "1jhd4grch5iz12gyxwfbsgh4dmz5hj4bg4gnvphccg8dsnni05k2"))
1710 (file-name (string-append name "-" version))))
1711 (build-system emacs-build-system)
1712 (synopsis "Minor mode for typographic editing")
1713 (description
1714 "This package provides two Emacs modes, @code{typo-mode} and
1715 @code{typo-global-mode}. These modes automatically insert Unicode characters
1716 for quotation marks, dashes, and ellipses. For example, typing @kbd{\"}
1717 automatically inserts a Unicode opening or closing quotation mark, depending
1718 on context.")
1719 (license license:gpl3+)))
1720
1721 (define-public emacs-scheme-complete
1722 (let ((commit "9b5cf224bf2a5994bc6d5b152ff487517f1a9bb5"))
1723 (package
1724 (name "emacs-scheme-complete")
1725 (version (string-append "20151223." (string-take commit 8)))
1726 (source
1727 (origin
1728 (file-name (string-append name "-" version))
1729 (method git-fetch)
1730 (uri (git-reference
1731 (url "https://github.com/ashinn/scheme-complete.git")
1732 (commit commit)))
1733 (sha256
1734 (base32
1735 "141wn9l0m33w0g3dqmx8nxbfdny1r5xbr6ak61rsz21bk0qafs7x"))
1736 (patches
1737 (search-patches "emacs-scheme-complete-scheme-r5rs-info.patch"))))
1738 (build-system emacs-build-system)
1739 (home-page "https://github.com/ashinn/scheme-complete")
1740 (synopsis "Smart tab completion for Scheme in Emacs")
1741 (description
1742 "This file provides a single function, @code{scheme-smart-complete},
1743 which you can use for intelligent, context-sensitive completion for any Scheme
1744 implementation in Emacs. To use it just load this file and bind that function
1745 to a key in your preferred mode.")
1746 (license license:public-domain))))
1747
1748 (define-public emacs-mit-scheme-doc
1749 (package
1750 (name "emacs-mit-scheme-doc")
1751 (version "20140203")
1752 (source
1753 (origin
1754 (modules '((guix build utils)))
1755 (snippet
1756 ;; keep only file of interest
1757 '(begin
1758 (for-each delete-file '("dot-emacs.el" "Makefile"))
1759 (copy-file "6.945-config/mit-scheme-doc.el" "mit-scheme-doc.el")
1760 (delete-file-recursively "6.945-config")))
1761 (file-name (string-append name "-" version ".tar.bz2"))
1762 (method url-fetch)
1763 (uri (string-append "http://groups.csail.mit.edu/mac/users/gjs/"
1764 "6.945/dont-panic/emacs-basic-config.tar.bz2"))
1765 (sha256
1766 (base32
1767 "0dqidg2bd66pawqfarvwca93w5gqf9mikn1k2a2rmd9ymfjpziq1"))))
1768 (build-system emacs-build-system)
1769 (inputs `(("mit-scheme" ,mit-scheme)))
1770 (arguments
1771 `(#:phases
1772 (modify-phases %standard-phases
1773 (add-after 'unpack 'configure-doc
1774 (lambda* (#:key inputs #:allow-other-keys)
1775 (let* ((mit-scheme-dir (assoc-ref inputs "mit-scheme"))
1776 (doc-dir (string-append mit-scheme-dir "/share/doc/"
1777 "mit-scheme-"
1778 ,(package-version mit-scheme))))
1779 (substitute* "mit-scheme-doc.el"
1780 (("http://www\\.gnu\\.org/software/mit-scheme/documentation/mit-scheme-ref/")
1781 (string-append "file:" doc-dir "/mit-scheme-ref/")))))))))
1782 (home-page "http://groups.csail.mit.edu/mac/users/gjs/6.945/dont-panic/")
1783 (synopsis "MIT-Scheme documentation lookup for Emacs")
1784 (description
1785 "This package provides a set of Emacs functions to search definitions of
1786 identifiers in the MIT-Scheme documentation.")
1787 (license license:gpl2+)))
1788
1789 (define-public emacs-constants
1790 (package
1791 (name "emacs-constants")
1792 (version "2.6")
1793 (home-page "https://staff.fnwi.uva.nl/c.dominik/Tools/constants")
1794 (source
1795 (origin
1796 (file-name (string-append name "-" version ".tar.gz"))
1797 (method url-fetch)
1798 (uri (string-append "https://github.com/fedeinthemix/emacs-constants"
1799 "/archive/v" version ".tar.gz"))
1800 (sha256
1801 (base32
1802 "0pnrpmmxq8mh5h2hbrp5vcym0j0fh6dv3s7c5ccn18wllhzg9g7n"))))
1803 (build-system emacs-build-system)
1804 (synopsis "Enter definition of constants into an Emacs buffer")
1805 (description
1806 "This package provides functions for inserting the definition of natural
1807 constants and units into an Emacs buffer.")
1808 (license license:gpl2+)))
1809
1810 (define-public emacs-slime
1811 (package
1812 (name "emacs-slime")
1813 (version "2.18")
1814 (source
1815 (origin
1816 (file-name (string-append name "-" version ".tar.gz"))
1817 (method url-fetch)
1818 (uri (string-append
1819 "https://github.com/slime/slime/archive/v"
1820 version ".tar.gz"))
1821 (sha256
1822 (base32
1823 "146avwbwr6mw0nmgyihx8gkr0mv6al7a73igzxvysj62000cqvlj"))))
1824 (build-system emacs-build-system)
1825 (native-inputs
1826 `(("texinfo" ,texinfo)))
1827 (arguments
1828 `(#:phases
1829 (modify-phases %standard-phases
1830 (add-before 'install 'configure
1831 (lambda* _
1832 (emacs-substitute-variables "slime.el"
1833 ("inferior-lisp-program" "sbcl"))
1834 #t))
1835 (add-before 'install 'install-doc
1836 (lambda* (#:key outputs #:allow-other-keys)
1837 (let* ((out (assoc-ref outputs "out"))
1838 (info-dir (string-append out "/share/info"))
1839 (doc-dir (string-append out "/share/doc/"
1840 ,name "-" ,version))
1841 (doc-files '("doc/slime-refcard.pdf"
1842 "README.md" "NEWS" "PROBLEMS"
1843 "CONTRIBUTING.md")))
1844 (with-directory-excursion "doc"
1845 (substitute* "Makefile"
1846 (("infodir=/usr/local/info")
1847 (string-append "infodir=" info-dir)))
1848 (system* "make" "html/index.html")
1849 (system* "make" "slime.info")
1850 (install-file "slime.info" info-dir)
1851 (copy-recursively "html" (string-append doc-dir "/html")))
1852 (for-each (lambda (f)
1853 (install-file f doc-dir)
1854 (delete-file f))
1855 doc-files)
1856 (delete-file-recursively "doc")
1857 #t))))))
1858 (home-page "https://github.com/slime/slime")
1859 (synopsis "Superior Lisp Interaction Mode for Emacs")
1860 (description
1861 "SLIME extends Emacs with support for interactive programming in
1862 Common Lisp. The features are centered around @{slime-mode}, an Emacs
1863 minor mode that complements the standard @{lisp-mode}. While lisp-mode
1864 supports editing Lisp source files, @{slime-mode} adds support for
1865 interacting with a running Common Lisp process for compilation,
1866 debugging, documentation lookup, and so on.")
1867 (license license:gpl2+)))
1868
1869 (define-public emacs-popup
1870 (package
1871 (name "emacs-popup")
1872 (version "0.5.3")
1873 (source (origin
1874 (method url-fetch)
1875 (uri (string-append
1876 "https://github.com/auto-complete/popup-el/archive/v"
1877 version ".tar.gz"))
1878 (file-name (string-append name "-" version ".tar.gz"))
1879 (sha256
1880 (base32
1881 "1yrgfj8y69xmcb6kwgplhq68ndm9410qwh7sd2knnd1gchpphdc0"))))
1882 (build-system emacs-build-system)
1883 (home-page "https://github.com/auto-complete/popup-el")
1884 (synopsis "Visual Popup User Interface for Emacs")
1885 (description
1886 "Popup.el is a visual popup user interface library for Emacs.
1887 This provides a basic API and common UI widgets such as popup tooltips
1888 and popup menus.")
1889 (license license:gpl3+)))
1890
1891 (define-public emacs-god-mode
1892 (let ((commit "6cf0807b6555eb6fcf8387a4e3b667071ef38964")
1893 (revision "1"))
1894 (package
1895 (name "emacs-god-mode")
1896 (version (string-append "20151005.925."
1897 revision "-" (string-take commit 9)))
1898 (source
1899 (origin
1900 (method git-fetch)
1901 (uri (git-reference
1902 (url "https://github.com/chrisdone/god-mode.git")
1903 (commit commit)))
1904 (file-name (string-append name "-" version "-checkout"))
1905 (sha256
1906 (base32
1907 "1am415k4xxcva6y3vbvyvknzc6bma49pq3p85zmpjsdmsp18qdix"))))
1908 (build-system emacs-build-system)
1909 (home-page "https://github.com/chrisdone/god-mode")
1910 (synopsis "Minor mode for entering commands without modifier keys")
1911 (description
1912 "This package provides a global minor mode for entering Emacs commands
1913 without modifier keys. It's similar to Vim's separation of commands and
1914 insertion mode. When enabled all keys are implicitly prefixed with
1915 @samp{C-} (among other helpful shortcuts).")
1916 (license license:gpl3+))))
1917
1918 (define-public emacs-rfcview
1919 (package
1920 (name "emacs-rfcview")
1921 (version "0.13")
1922 (home-page "http://www.loveshack.ukfsn.org/emacs")
1923 (source (origin
1924 (method url-fetch)
1925 (uri "http://www.loveshack.ukfsn.org/emacs/rfcview.el")
1926 (sha256
1927 (base32
1928 "0ympj5rxig383zl2jf0pzdsa80nnq0dpvjiriq0ivfi98fj7kxbz"))))
1929 (build-system emacs-build-system)
1930 (synopsis "Prettify Request for Comments (RFC) documents")
1931 (description "The Internet Engineering Task Force (IETF) and the Internet
1932 Society (ISOC) publish various Internet-related protocols and specifications
1933 as \"Request for Comments\" (RFC) documents and Internet Standard (STD)
1934 documents. RFCs and STDs are published in a simple text form. This package
1935 provides an Emacs major mode, rfcview-mode, which makes it more pleasant to
1936 read these documents in Emacs. It prettifies the text and adds
1937 hyperlinks/menus for easier navigation. It also provides functions for
1938 browsing the index of RFC documents and fetching them from remote servers or
1939 local directories.")
1940 (license license:gpl3+)))
1941
1942 (define-public emacs-ffap-rfc-space
1943 (package
1944 (name "emacs-ffap-rfc-space")
1945 (version "12")
1946 (home-page "http://user42.tuxfamily.org/ffap-rfc-space/index.html")
1947 (source (origin
1948 (method url-fetch)
1949 (uri "http://download.tuxfamily.org/user42/ffap-rfc-space.el")
1950 (sha256
1951 (base32
1952 "1iv61dv57a73mdps7rn6zmgz7nqh14v0ninidyrasy45b1nv6gck"))))
1953 (build-system emacs-build-system)
1954 (synopsis "Make ffap recognize an RFC with a space before its number")
1955 (description "The Internet Engineering Task Force (IETF) and the
1956 Internet Society (ISOC) publish various Internet-related protocols and
1957 specifications as \"Request for Comments\" (RFC) documents. The
1958 built-in Emacs module \"ffap\" (Find File at Point) has the ability to
1959 recognize names at point which look like \"RFC1234\" and \"RFC-1234\"
1960 and load the appropriate RFC from a remote server. However, it fails
1961 to recognize a name like \"RFC 1234\". This package enhances ffap so
1962 that it correctly finds RFCs even when a space appears before the
1963 number.")
1964 (license license:gpl3+)))
1965
1966 (define-public emacs-org-bullets
1967 (package
1968 (name "emacs-org-bullets")
1969 (version "0.2.4")
1970 (source
1971 (origin
1972 (method url-fetch)
1973 (uri (string-append "https://github.com/sabof/org-bullets/archive/"
1974 version ".tar.gz"))
1975 (file-name (string-append name "-" version ".tar.gz"))
1976 (sha256
1977 (base32
1978 "1dyxvpb73vj80v8br2q9rf255hfphrgaw91fbvwdcd735np9pcnh"))))
1979 (build-system emacs-build-system)
1980 (home-page "https://github.com/sabof/org-bullets")
1981 (synopsis "Show bullets in org-mode as UTF-8 characters")
1982 (description
1983 "This package provides an Emacs minor mode causing bullets in
1984 @code{org-mode} to be rendered as UTF-8 characters.")
1985 (license license:gpl3+)))
1986
1987 (define-public emacs-zenburn-theme
1988 (package
1989 (name "emacs-zenburn-theme")
1990 (version "2.4")
1991 (source (origin
1992 (method url-fetch)
1993 (uri (string-append
1994 "https://github.com/bbatsov/zenburn-emacs/archive/v"
1995 version ".tar.gz"))
1996 (file-name (string-append name "-" version ".tar.gz"))
1997 (sha256
1998 (base32
1999 "0lyi84bm8sa7vj40n6zg6rlbsmi53mi1y9xn6gkjj29s5zbcnlg7"))))
2000 (build-system emacs-build-system)
2001 (home-page "http://github.com/bbatsov/zenburn-emacs")
2002 (synopsis "Low contrast color theme for Emacs")
2003 (description
2004 "Zenburn theme is a port of the popular Vim Zenburn theme for Emacs.
2005 It is built on top of the custom theme support in Emacs 24 or later.")
2006 (license license:gpl3+)))
2007
2008 (define-public emacs-smartparens
2009 (package
2010 (name "emacs-smartparens")
2011 (version "1.7.1")
2012 (source (origin
2013 (method url-fetch)
2014 (uri (string-append
2015 "https://github.com/Fuco1/smartparens/archive/"
2016 version ".tar.gz"))
2017 (file-name (string-append name "-" version ".tar.gz"))
2018 (sha256
2019 (base32
2020 "1b47ppkzsj8j8a2p0bmvq05rhm2d2lsm3wlc0sg542r4zr6nji8s"))))
2021 (build-system emacs-build-system)
2022 (propagated-inputs `(("emacs-dash" ,emacs-dash)))
2023 (home-page "https://github.com/Fuco1/smartparens")
2024 (synopsis "Paredit-like insertion, wrapping and navigation with user
2025 defined pairs")
2026 (description
2027 "Smartparens is a minor mode for Emacs that deals with parens pairs
2028 and tries to be smart about it. It started as a unification effort to
2029 combine functionality of several existing packages in a single,
2030 compatible and extensible way to deal with parentheses, delimiters, tags
2031 and the like. Some of these packages include autopair, textmate,
2032 wrap-region, electric-pair-mode, paredit and others. With the basic
2033 features found in other packages it also brings many improvements as
2034 well as completely new features.")
2035 (license license:gpl3+)))
2036
2037 (define-public emacs-hl-todo
2038 (package
2039 (name "emacs-hl-todo")
2040 (version "1.7.0")
2041 (source (origin
2042 (method url-fetch)
2043 (uri (string-append
2044 "https://raw.githubusercontent.com/tarsius/hl-todo/"
2045 version "/hl-todo.el"))
2046 (sha256
2047 (base32
2048 "18zydm43zajlglhgr0bhdkd4pln27amd063k2ql6p1mvyam3j8ia"))))
2049 (build-system emacs-build-system)
2050 (home-page "https://github.com/tarsius/hl-todo")
2051 (synopsis "Emacs mode to highlight TODO and similar keywords")
2052 (description
2053 "This package provides an Emacs mode to highlight TODO and similar
2054 keywords in comments and strings. This package also provides commands for
2055 moving to the next or previous keyword and to invoke @code{occur} with a
2056 regexp that matches all known keywords.")
2057 (license license:gpl3+)))
2058
2059 (define-public emacs-hydra
2060 (package
2061 (name "emacs-hydra")
2062 (version "0.13.0")
2063 (source
2064 (origin
2065 (method url-fetch)
2066 (uri (string-append "https://github.com/abo-abo/hydra/archive/"
2067 version ".tar.gz"))
2068 (file-name (string-append name "-" version ".tar.gz"))
2069 (sha256
2070 (base32
2071 "19ynkjlg3jj7x90xxbz885324h6nkxmzlb2c2c95xkr20zckn0lk"))))
2072 (build-system emacs-build-system)
2073 (home-page "https://github.com/abo-abo/hydra")
2074 (synopsis "Make Emacs bindings that stick around")
2075 (description
2076 "This package can be used to tie related commands into a family of short
2077 bindings with a common prefix---a Hydra. Once you summon the Hydra (through
2078 the prefixed binding), all the heads can be called in succession with only a
2079 short extension. Any binding that isn't the Hydra's head vanquishes the
2080 Hydra. Note that the final binding, besides vanquishing the Hydra, will still
2081 serve its original purpose, calling the command assigned to it. This makes
2082 the Hydra very seamless; it's like a minor mode that disables itself
2083 automatically.")
2084 (license license:gpl3+)))
2085
2086 (define-public emacs-ivy
2087 (package
2088 (name "emacs-ivy")
2089 (version "0.8.0")
2090 (source
2091 (origin
2092 (method url-fetch)
2093 (uri (string-append "https://github.com/abo-abo/swiper/archive/"
2094 version ".tar.gz"))
2095 (file-name (string-append name "-" version ".tar.gz"))
2096 (sha256
2097 (base32
2098 "18nqwl05is71dzswnvpfhlg7b0v3apvbsfxrwab9c0apwavi892q"))))
2099 (build-system emacs-build-system)
2100 (propagated-inputs
2101 `(("emacs-hydra" ,emacs-hydra)))
2102 (home-page "http://oremacs.com/swiper/")
2103 (synopsis "Incremental vertical completion for Emacs")
2104 (description
2105 "This package provides @code{ivy-read} as an alternative to
2106 @code{completing-read} and similar functions. No attempt is made to determine
2107 the best candidate. Instead, the user can navigate candidates with
2108 @code{ivy-next-line} and @code{ivy-previous-line}. The matching is done by
2109 splitting the input text by spaces and re-building it into a regular
2110 expression.")
2111 (license license:gpl3+)))
2112
2113 (define-public emacs-avy
2114 (package
2115 (name "emacs-avy")
2116 (version "0.4.0")
2117 (source
2118 (origin
2119 (method url-fetch)
2120 (uri (string-append "https://github.com/abo-abo/avy/archive/"
2121 version ".tar.gz"))
2122 (file-name (string-append name "-" version ".tar.gz"))
2123 (sha256
2124 (base32
2125 "1wdrq512h25ymzjbf2kbsdymvd2ryfwzb6bh5bc3yv7q203im796"))))
2126 (build-system emacs-build-system)
2127 (home-page "https://github.com/abo-abo/avy")
2128 (synopsis "Tree-based completion for Emacs")
2129 (description
2130 "This package provides a generic completion method based on building a
2131 balanced decision tree with each candidate being a leaf. To traverse the tree
2132 from the root to a desired leaf, typically a sequence of @code{read-key} can
2133 be used.
2134
2135 In order for @code{read-key} to make sense, the tree needs to be visualized
2136 appropriately, with a character at each branch node. So this completion
2137 method works only for things that you can see on your screen, all at once,
2138 such as the positions of characters, words, line beginnings, links, or
2139 windows.")
2140 (license license:gpl3+)))
2141
2142 (define-public emacs-ace-window
2143 (package
2144 (name "emacs-ace-window")
2145 (version "0.9.0")
2146 (source
2147 (origin
2148 (method url-fetch)
2149 (uri (string-append "https://github.com/abo-abo/ace-window/archive/"
2150 version ".tar.gz"))
2151 (file-name (string-append name "-" version ".tar.gz"))
2152 (sha256
2153 (base32
2154 "1p2sgfl5dml4zbd6ldql6lm2m9vmd236ah996ni32x254s48j5pn"))))
2155 (build-system emacs-build-system)
2156 (propagated-inputs
2157 `(("emacs-avy" ,emacs-avy)))
2158 (home-page "https://github.com/abo-abo/ace-window")
2159 (synopsis "Quickly switch windows in Emacs")
2160 (description
2161 "@code{ace-window} is meant to replace @code{other-window}.
2162 In fact, when there are only two windows present, @code{other-window} is
2163 called. If there are more, each window will have its first character
2164 highlighted. Pressing that character will switch to that window.")
2165 (license license:gpl3+)))
2166
2167 (define-public emacs-iedit
2168 (package
2169 (name "emacs-iedit")
2170 (version "0.9.9")
2171 (source
2172 (origin
2173 (method url-fetch)
2174 (uri (string-append "https://github.com/victorhge/iedit/archive/v"
2175 version ".tar.gz"))
2176 (file-name (string-append name "-" version ".tar.gz"))
2177 (sha256
2178 (base32
2179 "00v86zllcsivmiibigbr91qij2zdf1lr9db8z8again1sn63wkdj"))))
2180 (build-system emacs-build-system)
2181 (home-page "http://www.emacswiki.org/emacs/Iedit")
2182 (synopsis "Edit multiple regions in the same way simultaneously")
2183 (description
2184 "This package is an Emacs minor mode and allows you to edit one
2185 occurrence of some text in a buffer (possibly narrowed) or region, and
2186 simultaneously have other occurrences edited in the same way.
2187
2188 You can also use Iedit mode as a quick way to temporarily show only the buffer
2189 lines that match the current text being edited. This gives you the effect of
2190 a temporary @code{keep-lines} or @code{occur}.")
2191 (license license:gpl3+)))
2192
2193 (define-public emacs-lispy
2194 (package
2195 (name "emacs-lispy")
2196 (version "0.26.0")
2197 (source
2198 (origin
2199 (method url-fetch)
2200 (uri (string-append "https://github.com/abo-abo/lispy/archive/"
2201 version ".tar.gz"))
2202 (file-name (string-append name "-" version ".tar.gz"))
2203 (sha256
2204 (base32
2205 "15gig95cvamw5zlw99cxggd27c18b9scznjj97gvjn2zbljcaqzl"))))
2206 (build-system emacs-build-system)
2207 (propagated-inputs
2208 `(("emacs-ace-window" ,emacs-ace-window)
2209 ("emacs-iedit" ,emacs-iedit)
2210 ("emacs-ivy" ,emacs-ivy)
2211 ("emacs-hydra" ,emacs-hydra)))
2212 (home-page "https://github.com/abo-abo/lispy")
2213 (synopsis "Modal S-expression editing")
2214 (description
2215 "Due to the structure of Lisp syntax it's very rare for the programmer to
2216 want to insert characters right before \"(\" or right after \")\". Thus
2217 unprefixed printable characters can be used to call commands when the point is
2218 at one of these special locations. Lispy provides unprefixed keybindings for
2219 S-expression editing when point is at the beginning or end of an
2220 S-expression.")
2221 (license license:gpl3+)))
2222
2223 (define-public emacs-clojure-mode
2224 (package
2225 (name "emacs-clojure-mode")
2226 (version "5.3.0")
2227 (source (origin
2228 (method url-fetch)
2229 (uri (string-append
2230 "https://github.com/clojure-emacs/clojure-mode/archive/"
2231 version ".tar.gz"))
2232 (file-name (string-append name "-" version ".tar.gz"))
2233 (sha256
2234 (base32
2235 "0gi8ra3ap5m3mz4qh1yxp2cldn7z9xcxvypznr6rrlc6a9l8s5a6"))))
2236 (build-system emacs-build-system)
2237 (home-page "http://github.com/clojure-emacs/clojure-mode")
2238 (synopsis "Major mode for Clojure code")
2239 (description
2240 "This Emacs package provides font-lock, indentation, navigation and basic
2241 refactoring for the @uref{http://clojure.org, Clojure programming language}.
2242 It is recommended to use @code{clojure-mode} with paredit or smartparens.")
2243 (license license:gpl3+)))
2244
2245 (define-public emacs-epl
2246 (package
2247 (name "emacs-epl")
2248 (version "0.8")
2249 (source (origin
2250 (method url-fetch)
2251 (uri (string-append
2252 "https://github.com/cask/epl/archive/"
2253 version ".tar.gz"))
2254 (sha256
2255 (base32
2256 "1511n3a3f5gvaf2b4nh018by61ciyzi3y3603fzqma7p9hrckarc"))))
2257 (build-system emacs-build-system)
2258 (home-page "http://github.com/cask/epl")
2259 (synopsis "Emacs Package Library")
2260 (description
2261 "A package management library for Emacs, based on @code{package.el}.
2262
2263 The purpose of this library is to wrap all the quirks and hassle of
2264 @code{package.el} into a sane API.")
2265 (license license:gpl3+)))
2266
2267 (define-public emacs-queue
2268 (package
2269 (name "emacs-queue")
2270 (version "0.1.1")
2271 (source (origin
2272 (method url-fetch)
2273 (uri (string-append "http://elpa.gnu.org/packages/queue-"
2274 version ".el"))
2275 (sha256
2276 (base32
2277 "0jw24fxqnf9qcaf2nh09cnds1kqfk7hal35dw83x1ari95say391"))))
2278 (build-system emacs-build-system)
2279 (home-page "http://www.dr-qubit.org/tags/computing-code-emacs.html")
2280 (synopsis "Queue data structure for Emacs")
2281 (description
2282 "This Emacs library provides queue data structure. These queues can be
2283 used both as a first-in last-out (FILO) and as a first-in first-out (FIFO)
2284 stack, i.e. elements can be added to the front or back of the queue, and can
2285 be removed from the front. This type of data structure is sometimes called an
2286 \"output-restricted deque\".")
2287 (license license:gpl3+)))
2288
2289 (define-public emacs-pkg-info
2290 (package
2291 (name "emacs-pkg-info")
2292 (version "0.6")
2293 (source (origin
2294 (method url-fetch)
2295 (uri (string-append
2296 "https://github.com/lunaryorn/pkg-info.el/archive/"
2297 version ".tar.gz"))
2298 (file-name (string-append name "-" version ".tar.gz"))
2299 (sha256
2300 (base32
2301 "1gy1jks5mmm02gg1c8gcyr4f8a9s5ggzhk56gv33b9mzjqzi5rd5"))))
2302 (build-system emacs-build-system)
2303 (propagated-inputs `(("emacs-epl" ,emacs-epl)))
2304 (home-page "https://github.com/lunaryorn/pkg-info.el")
2305 (synopsis "Information about Emacs packages")
2306 (description
2307 "This library extracts information from the installed Emacs packages.")
2308 (license license:gpl3+)))
2309
2310 (define-public emacs-spinner
2311 (package
2312 (name "emacs-spinner")
2313 (version "1.7.1")
2314 (source (origin
2315 (method url-fetch)
2316 (uri (string-append "http://elpa.gnu.org/packages/spinner-"
2317 version ".el"))
2318 (sha256
2319 (base32
2320 "1fmwzdih0kbyvs8bn38mpm4sbs2mikqy2vdykfy9g20wpa8vb681"))))
2321 (build-system emacs-build-system)
2322 (home-page "https://github.com/Malabarba/spinner.el")
2323 (synopsis "Emacs mode-line spinner for operations in progress")
2324 (description
2325 "This Emacs package adds spinners and progress-bars to the mode-line for
2326 ongoing operations.")
2327 (license license:gpl3+)))
2328
2329 (define-public emacs-seq
2330 (package
2331 (name "emacs-seq")
2332 (version "2.15")
2333 (source (origin
2334 (method url-fetch)
2335 (uri (string-append "http://elpa.gnu.org/packages/seq-"
2336 version ".tar"))
2337 (sha256
2338 (base32
2339 "09wi1765bmn7i8fg6ajjfaxgs4ipc42d58zx2fdqpidrdg9c7q73"))))
2340 (build-system emacs-build-system)
2341 (home-page "http://elpa.gnu.org/packages/seq.html")
2342 (synopsis "Sequence manipulation functions for Emacs")
2343 (description
2344 "This Emacs library provides sequence-manipulation functions that
2345 complement basic functions provided by @code{subr.el}. All provided functions
2346 work on lists, strings and vectors.")
2347 (license license:gpl3+)))
2348
2349 (define-public emacs-better-defaults
2350 (package
2351 (name "emacs-better-defaults")
2352 (version "0.1.3")
2353 (source
2354 (origin
2355 (method url-fetch)
2356 (uri (string-append "https://github.com/technomancy/better-defaults"
2357 "/archive/" version ".tar.gz"))
2358 (file-name (string-append name "-" version ".tar.gz"))
2359 (sha256
2360 (base32
2361 "08fg4zslzlxbvyil5g4gwvwd22fh4zsgqprs5wh9hv1rgc6757m2"))))
2362 (build-system emacs-build-system)
2363 (home-page "https://github.com/technomancy/better-defaults")
2364 (synopsis "Better defaults for Emacs")
2365 (description
2366 "Better defaults attempts to address the most obvious deficiencies of the
2367 Emacs default configuration in uncontroversial ways that nearly everyone can
2368 agree upon.")
2369 (license license:gpl3+)))
2370
2371 (define-public emacs-eprime
2372 (let ((commit "17a481af26496be91c07139a9bfc05cfe722506f"))
2373 (package
2374 (name "emacs-eprime")
2375 (version (string-append "20140513-" (string-take commit 7)))
2376 (source (origin
2377 (method url-fetch)
2378 (uri (string-append "https://raw.githubusercontent.com"
2379 "/AndrewHynes/eprime-mode/"
2380 commit "/eprime-mode.el"))
2381 (file-name (string-append "eprime-" version ".el"))
2382 (sha256
2383 (base32
2384 "0v68lggkyq7kbcr9zyi573m2g2x251xy3jadlaw8kx02l8krwq8d"))))
2385 (build-system emacs-build-system)
2386 (home-page "https://github.com/AndrewHynes/eprime-mode")
2387 (synopsis "E-prime checking mode for Emacs")
2388 (description "This package provides an E-prime checking mode for Emacs
2389 that highlights non-conforming text. The subset of the English language called
2390 E-Prime forbids the use of the \"to be\" form to strengthen your writing.")
2391 (license license:gpl3+))))
2392
2393 (define-public emacs-ess
2394 (package
2395 (name "emacs-ess")
2396 (version "16.04")
2397 (source (origin
2398 (method url-fetch)
2399 (uri (string-append "http://ess.r-project.org/downloads/ess/ess-"
2400 version ".tgz"))
2401 (sha256
2402 (base32
2403 "0w7mbbajn377gdmvnd21mpyr368b2ia46gq6cb99y4y5rspf9pcg"))))
2404 (build-system gnu-build-system)
2405 (arguments
2406 `(#:tests? #f ; There is no test suite.
2407 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
2408 #:phases
2409 (modify-phases %standard-phases
2410 (delete 'configure)
2411 (add-before 'build 'more-shebang-patching
2412 (lambda* (#:key inputs #:allow-other-keys)
2413 (substitute* "Makeconf"
2414 (("SHELL = /bin/sh")
2415 (string-append "SHELL = " (which "sh")))))))))
2416 (inputs
2417 `(("emacs" ,emacs-minimal)
2418 ("r" ,r)))
2419 (native-inputs
2420 `(("perl" ,perl)
2421 ("texinfo" ,texinfo)
2422 ("texlive" ,texlive)))
2423 (home-page "http://ess.r-project.org/")
2424 (synopsis "Emacs mode for statistical analysis programs")
2425 (description "Emacs Speaks Statistics (ESS) is an add-on package for GNU
2426 Emacs. It is designed to support editing of scripts and interaction with
2427 various statistical analysis programs such as R and OpenBUGS.")
2428 (license license:gpl2+)))
2429
2430 (define-public emacs-smex
2431 (package
2432 (name "emacs-smex")
2433 (version "3.0")
2434 (source (origin
2435 (method url-fetch)
2436 (uri (string-append "https://raw.githubusercontent.com"
2437 "/nonsequitur/smex/" version "/smex.el"))
2438 (file-name (string-append "smex-" version ".el"))
2439 (sha256
2440 (base32
2441 "0ar310zx9k5y4i1vl2rawvi712xj9gx77160860jbs691p77cxqp"))))
2442 (build-system emacs-build-system)
2443 (home-page "http://github.com/nonsequitur/smex/")
2444 (synopsis "M-x interface with Ido-style fuzzy matching")
2445 (description
2446 "Smex is a M-x enhancement for Emacs. Built on top of Ido, it provides a
2447 convenient interface to your recently and most frequently used commands. And
2448 to all the other commands, too.")
2449 (license license:gpl3+)))
2450
2451 (define-public emacs-js2-mode
2452 (package
2453 (name "emacs-js2-mode")
2454 (version "20150909")
2455 (source (origin
2456 (method url-fetch)
2457 (uri (string-append "https://github.com/mooz/js2-mode/archive/"
2458 version ".tar.gz"))
2459 (file-name (string-append name "-" version ".tar.gz"))
2460 (sha256
2461 (base32
2462 "1nsm36c4kwb473p13i58fgrnlk8fbn3rdhj47d9xz70az4ra44q0"))))
2463 (build-system emacs-build-system)
2464 (home-page "https://github.com/mooz/js2-mode/")
2465 (synopsis "Improved JavaScript editing mode for Emacs")
2466 (description
2467 "Js2-mode provides a JavaScript major mode for Emacs that is more
2468 advanced than the built-in javascript-mode. Features include accurate syntax
2469 highlighting using a recursive-descent parser, on-the-fly reporting of syntax
2470 errors and strict-mode warnings, smart line-wrapping within comments and
2471 strings, and code folding.")
2472 (license license:gpl3+)))
2473
2474 (define-public emacs-markdown-mode
2475 (package
2476 (name "emacs-markdown-mode")
2477 (version "2.1")
2478 (source (origin
2479 (method url-fetch)
2480 (uri (string-append "https://raw.githubusercontent.com/jrblevin"
2481 "/markdown-mode/v" version
2482 "/markdown-mode.el"))
2483 (file-name (string-append "markdown-mode-" version ".el"))
2484 (sha256
2485 (base32
2486 "1faibar32jnjia9202swblw91q6z1g5s4k9xmypwjahfh8yznl6w"))))
2487 (build-system emacs-build-system)
2488 (home-page "http://jblevins.org/projects/markdown-mode/")
2489 (synopsis "Emacs Major mode for Markdown files")
2490 (description
2491 "Markdown-mode is a major mode for editing Markdown-formatted text files
2492 in Emacs.")
2493 (license license:gpl3+)))
2494
2495 (define-public emacs-projectile
2496 (package
2497 (name "emacs-projectile")
2498 (version "0.13.0")
2499 (source (origin
2500 (method url-fetch)
2501 (uri (string-append "https://raw.githubusercontent.com/bbatsov"
2502 "/projectile/v" version "/projectile.el"))
2503 (file-name (string-append "projectile-" version ".el"))
2504 (sha256
2505 (base32
2506 "1pc6xb61hzxzc5hkqkli1ab0s7wz0rfgx4kcn9y30ksvhw18smbz"))))
2507 (build-system emacs-build-system)
2508 (propagated-inputs
2509 `(("emacs-dash" ,emacs-dash)
2510 ("emacs-pkg-info" ,emacs-pkg-info)))
2511 (home-page "https://github.com/bbatsov/projectile")
2512 (synopsis "Manage and navigate projects in Emacs easily")
2513 (description
2514 "This library provides easy project management and navigation. The
2515 concept of a project is pretty basic - just a folder containing special file.
2516 Currently git, mercurial and bazaar repos are considered projects by default.
2517 If you want to mark a folder manually as a project just create an empty
2518 .projectile file in it.")
2519 (license license:gpl3+)))
2520
2521 (define-public emacs-elfeed
2522 (package
2523 (name "emacs-elfeed")
2524 (version "1.4.1")
2525 (source (origin
2526 (method url-fetch)
2527 (uri (string-append "https://github.com/skeeto/elfeed/archive/"
2528 version ".tar.gz"))
2529 (file-name (string-append name "-" version ".tar.gz"))
2530 (sha256
2531 (base32
2532 "0i75r8x9ypbfjlnym04h16ikcrlks86p7wsgawrx7mh1lk4inp89"))))
2533 (build-system emacs-build-system)
2534 (home-page "https://github.com/skeeto/elfeed")
2535 (synopsis "Atom/RSS feed reader for Emacs")
2536 (description
2537 "Elfeed is an extensible web feed reader for Emacs, supporting both Atom
2538 and RSS, with a user interface inspired by notmuch.")
2539 (license license:gpl3+)))
2540
2541 (define-public emacs-rainbow-delimiters
2542 (package
2543 (name "emacs-rainbow-delimiters")
2544 (version "2.1.3")
2545 (source (origin
2546 (method url-fetch)
2547 (uri (string-append "https://raw.githubusercontent.com/Fanael"
2548 "/rainbow-delimiters/" version
2549 "/rainbow-delimiters.el"))
2550 (file-name (string-append "rainbow-delimiters-" version ".el"))
2551 (sha256
2552 (base32
2553 "1b3kampwsjabhcqdp0khgff13wc5jqhy3rbvaa12vnv7qy22l9ck"))))
2554 (build-system emacs-build-system)
2555 (home-page "https://github.com/Fanael/rainbow-delimiters")
2556 (synopsis "Highlight brackets according to their depth")
2557 (description
2558 "Rainbow-delimiters is a \"rainbow parentheses\"-like mode for Emacs which
2559 highlights parentheses, brackets, and braces according to their depth. Each
2560 successive level is highlighted in a different color, making it easy to spot
2561 matching delimiters, orient yourself in the code, and tell which statements
2562 are at a given level.")
2563 (license license:gpl3+)))
2564
2565 (define-public emacs-rainbow-identifiers
2566 (package
2567 (name "emacs-rainbow-identifiers")
2568 (version "0.2.2")
2569 (source (origin
2570 (method url-fetch)
2571 (uri (string-append "https://raw.githubusercontent.com/Fanael"
2572 "/rainbow-identifiers/" version
2573 "/rainbow-identifiers.el"))
2574 (file-name (string-append "rainbow-identifiers-" version ".el"))
2575 (sha256
2576 (base32
2577 "0325abxj47k0g1i8nqrq70w2wr6060ckhhf92krv1s072b3jzm31"))))
2578 (build-system emacs-build-system)
2579 (home-page "https://github.com/Fanael/rainbow-identifiers")
2580 (synopsis "Highlight identifiers in source code")
2581 (description
2582 "Rainbow identifiers mode is an Emacs minor mode providing highlighting of
2583 identifiers based on their names. Each identifier gets a color based on a hash
2584 of its name.")
2585 (license license:bsd-2)))
2586
2587 (define-public emacs-ido-completing-read+
2588 (package
2589 (name "emacs-ido-completing-read+")
2590 (version "3.12")
2591 (source (origin
2592 (method url-fetch)
2593 (uri (string-append "https://raw.githubusercontent.com"
2594 "/DarwinAwardWinner/ido-ubiquitous/v"
2595 version "/ido-completing-read+.el"))
2596 (file-name (string-append "ido-completing-read+-" version ".el"))
2597 (sha256
2598 (base32
2599 "1cyalb0p7nfsm4n6n9q6rjmvn6adqc0fq8ybnlj3n41n289dkfjf"))))
2600 (build-system emacs-build-system)
2601 (home-page "https://github.com/DarwinAwardWinner/ido-ubiquitous")
2602 (synopsis "Replacement for completing-read using ido")
2603 (description
2604 "The ido-completing-read+ function is a wrapper for ido-completing-read.
2605 Importantly, it detects edge cases that ordinary ido cannot handle and either
2606 adjusts them so ido can handle them, or else simply falls back to the standard
2607 Emacs completion function instead.")
2608 (license license:gpl3+)))
2609
2610 (define-public emacs-ido-ubiquitous
2611 (package
2612 (name "emacs-ido-ubiquitous")
2613 (version "3.12")
2614 (source (origin
2615 (method url-fetch)
2616 (uri (string-append "https://raw.githubusercontent.com"
2617 "/DarwinAwardWinner/ido-ubiquitous/v"
2618 version "/ido-ubiquitous.el"))
2619 (file-name (string-append "ido-ubiquitous-" version ".el"))
2620 (sha256
2621 (base32
2622 "197ypji0fb6jsdcq40rpnknwlh3imas6s6jbsvkfm0pz9988c3q2"))))
2623 (build-system emacs-build-system)
2624 (propagated-inputs
2625 `(("emacs-ido-completing-read+" ,emacs-ido-completing-read+)))
2626 (home-page "https://github.com/DarwinAwardWinner/ido-ubiquitous")
2627 (synopsis "Use ido (nearly) everywhere")
2628 (description
2629 "Ido-ubiquitous enables ido-style completion for almost every function
2630 that uses the standard completion function completing-read.")
2631 (license license:gpl3+)))
2632
2633 (define-public emacs-yaml-mode
2634 (package
2635 (name "emacs-yaml-mode")
2636 (version "0.0.12")
2637 (source (origin
2638 (method url-fetch)
2639 (uri (string-append "https://raw.githubusercontent.com/yoshiki"
2640 "/yaml-mode/v" version "/yaml-mode.el"))
2641 (file-name (string-append "yaml-mode-" version ".el"))
2642 (sha256
2643 (base32
2644 "17wq433ycli0qx4gdhgrmb392qblm6y2dwcyn38j5ja1lasfb0ax"))))
2645 (build-system emacs-build-system)
2646 (home-page "https://github.com/yoshiki/yaml-mode")
2647 (synopsis "Major mode for editing YAML files")
2648 (description
2649 "Yaml-mode is an Emacs major mode for editing files in the YAML data
2650 serialization format. It was initially developed by Yoshiki Kurihara and many
2651 features were added by Marshall Vandegrift. As YAML and Python share the fact
2652 that indentation determines structure, this mode provides indentation and
2653 indentation command behavior very similar to that of python-mode.")
2654 (license license:gpl3+)))
2655
2656 (define-public emacs-web-mode
2657 (package
2658 (name "emacs-web-mode")
2659 (version "14")
2660 (source (origin
2661 (method url-fetch)
2662 (uri (string-append "https://raw.githubusercontent.com/fxbois"
2663 "/web-mode/v" version "/web-mode.el"))
2664 (file-name (string-append "web-mode-" version ".el"))
2665 (sha256
2666 (base32
2667 "086hik5fmxg3kx74qmransx9cz961qd22d4m6ah2dw6cwaj1s3s5"))))
2668 (build-system emacs-build-system)
2669 (synopsis "Major mode for editing web templates")
2670 (description "Web-mode is an Emacs major mode for editing web templates
2671 aka HTML files embedding parts (CSS/JavaScript) and blocks (pre rendered by
2672 client/server side engines). Web-mode is compatible with many template
2673 engines: PHP, JSP, ASP, Django, Twig, Jinja, Mustache, ERB, FreeMarker,
2674 Velocity, Cheetah, Smarty, CTemplate, Mustache, Blade, ErlyDTL, Go Template,
2675 Dust.js, React/JSX, Angularjs, ejs, etc.")
2676 (home-page "http://web-mode.org/")
2677 (license license:gpl3+)))
2678
2679 (define-public emacs-helm
2680 (package
2681 (name "emacs-helm")
2682 (version "1.9.8")
2683 (source (origin
2684 (method url-fetch)
2685 (uri (string-append
2686 "https://github.com/" name "/helm/archive/v"
2687 version ".tar.gz"))
2688 (file-name (string-append name "-" version ".tar.gz"))
2689 (sha256
2690 (base32
2691 "019dpzr6l83k1fgxn40aqxjvrpz4dl5d9vi7fc5wjnifmxaqxia6"))))
2692 (build-system emacs-build-system)
2693 (propagated-inputs
2694 `(("emacs-async" ,emacs-async)
2695 ("emacs-popup" ,emacs-popup)))
2696 (home-page "https://emacs-helm.github.io/helm/")
2697 (synopsis "Incremental completion and selection narrowing
2698 framework for Emacs")
2699 (description "Helm is incremental completion and selection narrowing
2700 framework for Emacs. It will help steer you in the right direction when
2701 you're looking for stuff in Emacs (like buffers, files, etc). Helm is a fork
2702 of @code{anything.el} originally written by Tamas Patrovic and can be
2703 considered to be its successor. Helm sets out to clean up the legacy code in
2704 @code{anything.el} and provide a cleaner, leaner and more modular tool, that's
2705 not tied in the trap of backward compatibility.")
2706 (license license:gpl3+)))
2707
2708 (define-public emacs-cider
2709 (package
2710 (name "emacs-cider")
2711 (version "0.12.0")
2712 (source (origin
2713 (method url-fetch)
2714 (uri (string-append
2715 "https://github.com/clojure-emacs/cider/archive/v"
2716 version ".tar.gz"))
2717 (file-name (string-append name "-" version ".tar.gz"))
2718 (sha256
2719 (base32
2720 "00qzbfjy3w6bcnki7gw0clmi0cc5yqjdrcyhgv4ymijjs79h9p5s"))))
2721 (build-system emacs-build-system)
2722 (propagated-inputs
2723 `(("emacs-clojure-mode" ,emacs-clojure-mode)
2724 ("emacs-spinner" ,emacs-spinner)
2725 ("emacs-pkg-info" ,emacs-pkg-info)
2726 ("emacs-queue" ,emacs-queue)
2727 ("emacs-seq" ,emacs-seq)))
2728 (home-page "https://cider.readthedocs.org/")
2729 (synopsis "Clojure development environment for Emacs")
2730 (description
2731 "CIDER (Clojure Interactive Development Environment that Rocks) aims to
2732 provide an interactive development experience similar to the one you'd get
2733 when programming in Emacs Lisp, Common Lisp (with SLIME or Sly), Scheme (with
2734 Geiser) and Smalltalk.
2735
2736 CIDER is the successor to the now deprecated combination of using SLIME +
2737 swank-clojure for Clojure development.
2738
2739 There are plenty of differences between CIDER and SLIME, but the core ideas
2740 are pretty much the same (and SLIME served as the principle inspiration for
2741 CIDER).")
2742 (license license:gpl3+)))
2743
2744 (define-public emacs-lua-mode
2745 (package
2746 (name "emacs-lua-mode")
2747 (version "20151025")
2748 (source (origin
2749 (method url-fetch)
2750 (uri (string-append
2751 "https://github.com/immerrr/lua-mode/archive/v"
2752 version ".tar.gz"))
2753 (file-name (string-append name "-" version ".tar.gz"))
2754 (sha256
2755 (base32
2756 "0sbhfny5ib65cnx6xcy6h9bbw27mw034s8m9cca00bhxqaqi6p4v"))))
2757 (build-system emacs-build-system)
2758 (home-page "http://github.com/immerrr/lua-mode/")
2759 (synopsis "Major mode for lua")
2760 (description
2761 "This Emacs package provides a mode for @uref{https://www.lua.org/,
2762 Lua programing language}.")
2763 (license license:gpl2+)))
2764
2765 (define-public emacs-ebuild-mode
2766 (package
2767 (name "emacs-ebuild-mode")
2768 (version "1.30")
2769 (source (origin
2770 (method url-fetch)
2771 (uri (string-append
2772 "https://dev.gentoo.org/~ulm/emacs/ebuild-mode"
2773 "-" version ".tar.xz"))
2774 (file-name (string-append name "-" version ".tar.xz"))
2775 (sha256
2776 (base32
2777 "0vp7lq1kvmh1b2bms2x1kf2k76dy9m02d7cirkxpiglwaxa0h9vz"))))
2778 (build-system emacs-build-system)
2779 (home-page "https://devmanual.gentoo.org")
2780 (synopsis "Major modes for Gentoo package files")
2781 (description
2782 "This Emacs package provides modes for ebuild, eclass, eblit, GLEP42
2783 news items, openrc and runscripts.")
2784 (license license:gpl2+)))
2785
2786 (define-public emacs-writegood-mode
2787 (package
2788 (name "emacs-writegood-mode")
2789 (version "2.0.2")
2790 (home-page "http://github.com/bnbeckwith/writegood-mode")
2791 (source (origin
2792 (method git-fetch)
2793 (uri (git-reference
2794 (url home-page)
2795 (commit (string-append "v" version))))
2796 (sha256
2797 (base32
2798 "1nnjn1r669hvvzfycllwap4w04m8rfsk4nzcg8057m1f263kj31b"))
2799 (file-name (string-append name "-checkout"))))
2800 (build-system emacs-build-system)
2801 (synopsis "Polish up poor writing on the fly")
2802 (description
2803 "This minor mode tries to find and highlight problems with your writing
2804 in English as you type. It primarily detects \"weasel words\" and abuse of
2805 passive voice.")
2806 (license license:gpl3+)))