guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/01: gnu: Add emacs-nix-mode.


From: Arun Isaac
Subject: 01/01: gnu: Add emacs-nix-mode.
Date: Sun, 13 Aug 2017 03:53:11 -0400 (EDT)

arunisaac pushed a commit to branch master
in repository guix.

commit f7e8302b4e04616d88b74efc3fb526a2690dadf2
Author: Oleg Pykhalov <address@hidden>
Date:   Sat Aug 12 09:48:53 2017 +0300

    gnu: Add emacs-nix-mode.
    
    * gnu/packages/emacs.scm (emacs-nix-mode): New variable.
    
    Signed-off-by: Arun Isaac <address@hidden>
---
 gnu/packages/emacs.scm | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index bb5d234..5a69990 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -5226,6 +5226,23 @@ multiplexer.")
 editing RPM spec files.")
     (license license:gpl2+)))
 
+(define-public emacs-nix-mode
+  (package
+    (inherit nix)
+    (name "emacs-nix-mode")
+    (build-system emacs-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'chdir-elisp
+           ;; Elisp directory is not in root of the source.
+           (lambda _
+             (chdir "misc/emacs"))))))
+    (synopsis "Emacs major mode for editing Nix expressions")
+    (description "@code{nixos-mode} provides an Emacs major mode for editing
+Nix expressions.  It supports syntax highlighting, indenting and refilling of
+comments.")))
+
 (define-public emacs-git-messenger
   (package
     (name "emacs-git-messenger")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]