mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Fix void-variable errors from +hlissner-def-finder! macro
This commit is contained in:
@ -1,8 +1,5 @@
|
|||||||
;;; private/hlissner/autoload/hlissner.el
|
;;; private/hlissner/autoload/hlissner.el
|
||||||
|
|
||||||
(defvar +file-templates-dir)
|
|
||||||
(defvar +hlissner-snippets-dir)
|
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun +hlissner/install-snippets ()
|
(defun +hlissner/install-snippets ()
|
||||||
"Install my snippets from https://github.com/hlissner/emacs-snippets into
|
"Install my snippets from https://github.com/hlissner/emacs-snippets into
|
||||||
@ -23,12 +20,10 @@ private/hlissner/snippets."
|
|||||||
"Define a pair of find-file and browse functions."
|
"Define a pair of find-file and browse functions."
|
||||||
`(progn
|
`(progn
|
||||||
(defun ,(intern (format "+hlissner/find-in-%s" name)) ()
|
(defun ,(intern (format "+hlissner/find-in-%s" name)) ()
|
||||||
,(format "Find a file in %s" (abbreviate-file-name (eval dir)))
|
|
||||||
(interactive)
|
(interactive)
|
||||||
(let ((default-directory ,dir))
|
(let ((default-directory ,dir))
|
||||||
(call-interactively (command-remapping #'projectile-find-file))))
|
(call-interactively (command-remapping #'projectile-find-file))))
|
||||||
(defun ,(intern (format "+hlissner/browse-%s" name)) ()
|
(defun ,(intern (format "+hlissner/browse-%s" name)) ()
|
||||||
,(format "Browse files starting from %s" (abbreviate-file-name (eval dir)))
|
|
||||||
(interactive)
|
(interactive)
|
||||||
(let ((default-directory ,dir))
|
(let ((default-directory ,dir))
|
||||||
(call-interactively (command-remapping #'find-file))))))
|
(call-interactively (command-remapping #'find-file))))))
|
||||||
|
Reference in New Issue
Block a user