From 5786fe115fe66081a4ba996231c82489422517b4 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Fri, 30 Jul 2021 23:18:01 -0700 Subject: [PATCH] =?UTF-8?q?Add=20=E2=80=98emacs-oni-cmake=E2=80=99=20and?= =?UTF-8?q?=20required=20packages?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- oni/packages/emacs-config.scm | 17 +++++++++++++++++ oni/packages/emacs.scm | 27 +++++++++++++++++++++++++++ 2 files changed, 44 insertions(+) diff --git a/oni/packages/emacs-config.scm b/oni/packages/emacs-config.scm index 98c112c..8f13f61 100644 --- a/oni/packages/emacs-config.scm +++ b/oni/packages/emacs-config.scm @@ -5,6 +5,7 @@ #:use-module ((guix licenses) #:prefix license:) #:use-module (gnu packages emacs-xyz) #:use-module (gnu packages llvm) + #:use-module (gnu packages cmake) #:use-module (gnu packages bash) #:use-module (oni packages emacs) #:use-module (oni packages go)) @@ -355,3 +356,19 @@ Emacs"))) ("emacs-oni-data-dir" ,emacs-oni-data-dir))) (synopsis "My Emacs Clojure configuration") (description "This package provides my configuration for Clojure"))) + +(define-public emacs-oni-cmake + (package + (inherit emacs-oni-config) + (name "emacs-oni-cmake") + (arguments + '(#:include '("oni-cmake.el"))) + (propagated-inputs + `(("emacs-cmake-mode" ,emacs-cmake-mode) + ("emacs-oni-company" ,emacs-oni-company) + ("emacs-oni-flycheck" ,emacs-oni-flycheck) + ("emacs-oni-lsp" ,emacs-oni-lsp) + ("emacs-cmake-font-lock" ,emacs-cmake-font-lock) + ("emacs-eldoc-cmake" ,emacs-eldoc-cmake))) + (synopsis "My Emacs CMake confifguration") + (description "This package provides my configuration for CMake"))) diff --git a/oni/packages/emacs.scm b/oni/packages/emacs.scm index 35d265e..7f3c3be 100644 --- a/oni/packages/emacs.scm +++ b/oni/packages/emacs.scm @@ -204,3 +204,30 @@ To setup nroam for all org-roam buffers, evaluate the following: (add-hook 'org-mode-hook #'nroam-setup-maybe) ") (license license:gpl3+))) + +(define-public emacs-eldoc-cmake + (package + (name "emacs-eldoc-cmake") + (version "20190419.2244") + (source + (origin + (method url-fetch) + (uri (string-append + "https://melpa.org/packages/eldoc-cmake-" + version + ".el")) + (sha256 + (base32 + "08qa4lp22pracwskjq1kqv6kjwfbgyjsjsxb8kv820ndz5ccwaik")))) + (build-system emacs-build-system) + (home-page + "https://github.com/ikirill/eldoc-cmake") + (synopsis "Eldoc support for CMake") + (description + " +CMake eldoc support, using a pre-generated set of docstrings from +CMake's documentation source. + +See function `eldoc-cmake-enable'. +") + (license license:gpl3)))