From 3b5b44b996231970af0f7da315d0c033137d7036 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Tue, 20 Jul 2021 01:09:57 -0700 Subject: [PATCH] =?UTF-8?q?Add=20=E2=80=98emacs-oni-org=E2=80=99,=20?= =?UTF-8?q?=E2=80=98emacs-oni-org-roam=E2=80=99,=20=E2=80=98emacs-nroam?= =?UTF-8?q?=E2=80=99=20packages?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- oni/packages/emacs-config.scm | 41 +++++++++++++++++++++++++++++++++++ oni/packages/emacs.scm | 33 ++++++++++++++++++++++++++++ 2 files changed, 74 insertions(+) diff --git a/oni/packages/emacs-config.scm b/oni/packages/emacs-config.scm index 812e1f5..436bd96 100644 --- a/oni/packages/emacs-config.scm +++ b/oni/packages/emacs-config.scm @@ -250,3 +250,44 @@ Emacs"))) ("bats" ,bats))) (synopsis "My Emacs Bats coding configuration") (description "This package provides my configuration for coding in Bats"))) + +(define-public emacs-oni-org + (package + (inherit emacs-oni-config) + (name "emacs-oni-org") + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'chdir-oni-org + (lambda _ + (chdir "oni-org")))) + #:include '("\\.el$" + "^snippets\\/org-mode\\/" + "^capture-templates\\/" + "^icons\\/"))) + (propagated-inputs + `(("emacs-oni-yasnippet" ,emacs-oni-yasnippet) + ("emacs-oni-alert" ,emacs-oni-alert) + ("emacs-oni-hydra" ,emacs-oni-hydra) + ("emacs-org" ,emacs-org) + ("emacs-org-contrib" ,emacs-org-contrib) + ("emacs-org-bullets" ,emacs-org-bullets) + ("emacs-org-edna" ,emacs-org-edna) + ("emacs-diminish" ,emacs-diminish) + ("emacs-all-the-icons" ,emacs-all-the-icons) + ("emacs-olivetti" ,emacs-olivetti))) + (synopsis "My Emacs Org configuration") + (description "This package provides my configuration for org"))) + +(define-public emacs-oni-org-roam + (package + (inherit emacs-oni-config) + (name "emacs-oni-org-roam") + (arguments + '(#:include '("oni-org-roam.el"))) + (propagated-inputs + `(("emacs-oni-org" ,emacs-oni-org) + ("emacs-org-roam" ,emacs-org-roam) + ("emacs-nroam" ,emacs-nroam))) + (synopsis "My Emacs Org Roam configuration") + (description "This package provides my configuration for Org Roam"))) diff --git a/oni/packages/emacs.scm b/oni/packages/emacs.scm index 52fa781..35d265e 100644 --- a/oni/packages/emacs.scm +++ b/oni/packages/emacs.scm @@ -1,6 +1,7 @@ (define-module (oni packages emacs) #:use-module (guix packages) #:use-module (guix utils) + #:use-module (guix download) #:use-module (guix git-download) #:use-module (guix build-system emacs) #:use-module ((guix licenses) #:prefix license:) @@ -171,3 +172,35 @@ keywords.") (synopsis "Cask support for Flycheck") (description "Make Flycheck use Cask packages in Cask projects.") (license license:gpl3+))) + +(define-public emacs-nroam + (package + (name "emacs-nroam") + (version "20210325.2015") + (source + (origin + (method url-fetch) + (uri (string-append + "https://melpa.org/packages/nroam-" + version + ".tar")) + (sha256 + (base32 + "1aybc2k8kyf2dlpbq39p3k1nsvzrhw58xarbwwq0qgz91r49m4xq")))) + (build-system emacs-build-system) + (propagated-inputs + `(("emacs-org-roam" ,emacs-org-roam) + ("emacs-org" ,emacs-org))) + (home-page + "https://github.com/NicolasPetton/nroam") + (synopsis + "Org-roam backlinks within org-mode buffers") + (description + "nroam is a supplementary package for org-roam that replaces the backlink side +buffer of Org-roam. Instead, it displays org-roam backlinks at the end of +org-roam buffers. + +To setup nroam for all org-roam buffers, evaluate the following: +(add-hook 'org-mode-hook #'nroam-setup-maybe) +") + (license license:gpl3+)))