summaryrefslogtreecommitdiff
path: root/org-gnosis.el
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-11-20 07:21:35 +0200
committerThanos Apollo <[email protected]>2024-11-20 07:21:35 +0200
commit660ef0691d0d407d67e87b83bca9ec8a09342b67 (patch)
tree83224cf066b6fbb51f95b6a234edc99597404415 /org-gnosis.el
parent2532bcbfcc17f54a04768e16624f1fa3183c3450 (diff)
Add org-gnosis group, customs & faces
Diffstat (limited to 'org-gnosis.el')
-rw-r--r--org-gnosis.el21
1 files changed, 20 insertions, 1 deletions
diff --git a/org-gnosis.el b/org-gnosis.el
index cebd7db..fdf1bf6 100644
--- a/org-gnosis.el
+++ b/org-gnosis.el
@@ -1,4 +1,4 @@
-;;; org-gnosis.el --- Org Zettelkasten Note Management System -*- lexical-binding: t; -*-
+;;; org-gnosis.el --- Org Note Management System -*- lexical-binding: t; -*-
;; Copyright (C) 2024-2025 Thanos Apollo
@@ -32,6 +32,25 @@
(require 'emacsql-sqlite)
(require 'org-element)
+(defgroup org-gnosis nil
+ "Note Taking System."
+ :group 'external)
+
+(defcustom org-gnosis-dir "~/Notes"
+ "Directory with gnosis notes."
+ :type 'directory
+ :group 'org-gnosis)
+
+(defcustom org-gnosis-show-tags nil
+ "Display tags with `org-gnosis-find'."
+ :type 'boolean
+ :group 'org-gnosis)
+
+(defface org-gnosis-face-tags
+ '((t :inherit font-lock-type-face))
+ "Face for displaying gnosis with `org-gnosis-find'."
+ :group 'org-gnosis)
+
(defvar org-gnosis-db (emacsql-sqlite-open (locate-user-emacs-file "org-gnosis.db")))
(cl-defun org-gnosis-select (value table &optional (restrictions '1=1) (flatten nil))