gnu: Add emacs-cmake-mode.
authorOleg Pykhalov <go.wigust@gmail.com>
Fri, 18 May 2018 12:25:39 +0000 (15:25 +0300)
committerOleg Pykhalov <go.wigust@gmail.com>
Tue, 22 May 2018 14:20:46 +0000 (17:20 +0300)
* gnu/packages/cmake.scm (emacs-cmake-mode): New public variable.

gnu/packages/cmake.scm

index e6c5c4e..eba7a92 100644 (file)
@@ -206,3 +206,20 @@ and workspaces that can be used in the compiler environment of your choice.")
     (inputs
      `(("rhash" ,rhash)
        ,@(package-inputs cmake)))))
+
+(define-public emacs-cmake-mode
+  (package
+    (inherit cmake)
+    (name "emacs-cmake-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 "Auxiliary"))))))
+    (synopsis "Emacs major mode for editing Cmake expressions")
+    (description "@code{cmakeos-mode} provides an Emacs major mode for editing
+Cmake files.  It supports syntax highlighting, indenting and refilling of
+comments.")))