summaryrefslogtreecommitdiffstats
path: root/org-zettelkasten-counsel.el
diff options
context:
space:
mode:
authorYann Herklotz <git@yannherklotz.com>2022-12-27 16:30:26 +0000
committerYann Herklotz <git@yannherklotz.com>2022-12-27 16:30:26 +0000
commit7a010dab8b5b0cb0d2fb0de3a56b2b35fc943442 (patch)
tree11bbdcd0b56d06b946664725d68b97afd437620b /org-zettelkasten-counsel.el
parent1e63dd1081e6579f29483a80339151505bec1a56 (diff)
downloadorg-zettelkasten-7a010dab8b5b0cb0d2fb0de3a56b2b35fc943442.tar.gz
org-zettelkasten-7a010dab8b5b0cb0d2fb0de3a56b2b35fc943442.zip
Fix warnings when compiling optional extensions
Diffstat (limited to 'org-zettelkasten-counsel.el')
-rw-r--r--org-zettelkasten-counsel.el14
1 files changed, 3 insertions, 11 deletions
diff --git a/org-zettelkasten-counsel.el b/org-zettelkasten-counsel.el
index c840658..8810210 100644
--- a/org-zettelkasten-counsel.el
+++ b/org-zettelkasten-counsel.el
@@ -1,14 +1,6 @@
;;; org-zettelkasten-counsel.el --- Counsel integration for org-zettelkasten -*- lexical-binding: t; -*-
;; Copyright (C) 2022-2023 Yann Herklotz
-;;
-;; Author: Yann Herklotz <yann@ymhg.org>
-;; Maintainer: Yann Herklotz <yann@ymhg.org>
-;; Keywords: files, hypermedia, Org, notes
-;; Homepage: https://git.sr.ht/~ymherklotz/org-zettelkasten
-;; Package-Requires: ((emacs "24.3") (org "9.0") (counsel "0.13"))
-
-;; Version: 0.1.0
;; 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
@@ -31,10 +23,10 @@
;;; Code:
-(require 'org)
-(require 'counsel)
+(require 'org-zettelkasten)
-(eval-when-compile (defvar org-zettelkasten-directory))
+(eval-when-compile
+ (declare-function counsel-rg "ext:counsel"))
(defun org-zettelkasten-counsel-search-current-id ()
"Use `counsel-rg' to search for the current ID in all files."