From bbdf36666b82eae0a583d7124d8117801969570c Mon Sep 17 00:00:00 2001 From: Oleg Pykhalov Date: Fri, 18 May 2018 15:25:39 +0300 Subject: gnu: Add emacs-cmake-mode. * gnu/packages/cmake.scm (emacs-cmake-mode): New public variable. --- gnu/packages/cmake.scm | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'gnu/packages/cmake.scm') diff --git a/gnu/packages/cmake.scm b/gnu/packages/cmake.scm index e6c5c4e793..eba7a92c04 100644 --- a/gnu/packages/cmake.scm +++ b/gnu/packages/cmake.scm @@ -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."))) -- cgit v1.2.3 From aa4818c33b6b2fd8d602ee93a2f53005d9472f41 Mon Sep 17 00:00:00 2001 From: Oleg Pykhalov Date: Tue, 22 May 2018 17:36:29 +0300 Subject: gnu: cmake.scm: Add missing module. * gnu/packages/cmake.scm: Import emacs-build-system. --- gnu/packages/cmake.scm | 1 + 1 file changed, 1 insertion(+) (limited to 'gnu/packages/cmake.scm') diff --git a/gnu/packages/cmake.scm b/gnu/packages/cmake.scm index eba7a92c04..258ea9c638 100644 --- a/gnu/packages/cmake.scm +++ b/gnu/packages/cmake.scm @@ -28,6 +28,7 @@ #:use-module (guix download) #:use-module (guix utils) #:use-module (guix build-system gnu) + #:use-module (guix build-system emacs) #:use-module (gnu packages) #:use-module (gnu packages backup) #:use-module (gnu packages compression) -- cgit v1.2.3