From 7a010dab8b5b0cb0d2fb0de3a56b2b35fc943442 Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Tue, 27 Dec 2022 16:30:26 +0000 Subject: Fix warnings when compiling optional extensions --- org-zettelkasten-counsel.el | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'org-zettelkasten-counsel.el') 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 -;; Maintainer: Yann Herklotz -;; 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." -- cgit