;;; org-roam-structs.el --- Structs used in Org-roam -*- coding: utf-8; lexical-binding: t; -*- ;; Copyright © 2020 Jethro Kuan ;; Author: Jethro Kuan ;; URL: https://github.com/org-roam/org-roam ;; Keywords: org-mode, roam, convenience ;; Version: 2.0.0 ;; Package-Requires: ((emacs "26.1") (dash "2.13") (f "0.17.2") (s "1.12.0") (org "9.4") (emacsql "3.0.0") (emacsql-sqlite3 "1.0.2") (magit-section "2.90.1")) ;; This file is NOT part of GNU Emacs. ;; This program is free software; you can redistribute it and/or modify ;; it under the terms of the GNU General Public License as published by ;; the Free Software Foundation; either version 3, or (at your option) ;; any later version. ;; ;; This program is distributed in the hope that it will be useful, ;; but WITHOUT ANY WARRANTY; without even the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;; GNU General Public License for more details. ;; ;; You should have received a copy of the GNU General Public License ;; along with GNU Emacs; see the file COPYING. If not, write to the ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, ;; Boston, MA 02110-1301, USA. ;;; Commentary: ;; ;; This library is an attempt at injecting Roam functionality into Org-mode. ;; This is achieved primarily through building caches for forward links, ;; backward links, and file titles. ;; ;; ;;; Code: (require 'cl-lib) (cl-defstruct (org-roam-node (:constructor org-roam-node-create) (:copier nil)) id file level point todo priority scheduled deadline title tags aliases refs) (cl-defstruct (org-roam-backlink (:constructor org-roam-backlink-create) (:copier nil)) source-node target-node point properties) (cl-defstruct (org-roam-reflink (:constructor org-roam-reflink-create) (:copier nil)) source-node ref point properties) (provide 'org-roam-structs) ;;; org-roam-structs.el ends here