From e8eee886b724d3a9fe26723436d7c5dc3e7965f3 Mon Sep 17 00:00:00 2001 From: Eric Danan Date: Sun, 4 Feb 2018 14:33:48 +0100 Subject: [PATCH] Use lexical binding --- counsel-projectile.el | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/counsel-projectile.el b/counsel-projectile.el index 3f1e28a..c88b0b7 100644 --- a/counsel-projectile.el +++ b/counsel-projectile.el @@ -1,4 +1,4 @@ -;;; counsel-projectile.el --- Ivy integration for Projectile +;;; counsel-projectile.el --- Ivy integration for Projectile -*- lexical-binding: t -*- ;; Copyright (C) 2016-2017 Eric Danan @@ -650,6 +650,9 @@ is called with a prefix argument." ;;;; counsel-projectile-org-capture +(defvar org-capture-templates) +(defvar org-capture-templates-contexts) + (defcustom counsel-projectile-org-capture-templates '(("t" "Task" entry (file+headline "${root}/notes.org" "Tasks") "* TODO %?\n %u\n %a")) @@ -1065,7 +1068,7 @@ action." (when (setq file (buffer-file-name (get-buffer buffer))) (setq files (remove (file-relative-name file root) files)))))))) -(defun counsel-projectile--matcher (regexp candidates) +(defun counsel-projectile--matcher (regexp _candidates) "Return REGEXP-matching CANDIDATES for `counsel-projectile'. Relies on `ivy--switch-buffer-matcher' and