private/default: fix wrong-type-argument error while byte-compiling
This commit is contained in:
parent
f9e5ef2b51
commit
c417d732c8
1 changed files with 4 additions and 4 deletions
|
@ -9,15 +9,15 @@
|
|||
(error "Couldn't find filename in current buffer")))
|
||||
|
||||
;;;###autoload
|
||||
(defmacro +default--def-browse-in! (name dir &optional prefix)
|
||||
(let ((prefix (cdr (doom-module-from-path load-file-name))))
|
||||
`(defun ,(intern (format "%s/browse-%s" (or prefix '+default) name)) ()
|
||||
(defmacro +default--def-browse-in! (name dir)
|
||||
(let ((prefix (cdr (doom-module-from-path (or load-file-name byte-compile-current-file)))))
|
||||
`(defun ,(intern (format "%s/browse-%s" prefix name)) ()
|
||||
(interactive)
|
||||
(doom-project-browse ,dir))))
|
||||
|
||||
;;;###autoload
|
||||
(defmacro +default--def-find-in! (name dir)
|
||||
(let ((prefix (cdr (doom-module-from-path load-file-name))))
|
||||
(let ((prefix (cdr (doom-module-from-path (or load-file-name byte-compile-current-file)))))
|
||||
`(defun ,(intern (format "+%s/find-in-%s" prefix name)) ()
|
||||
(interactive)
|
||||
(doom-project-find-file ,dir))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue