Skip to content

Commit

Permalink
Fix doomemacs#5113: "defining as dynamic an already lexical var" error
Browse files Browse the repository at this point in the history
Due to a dynamic variable being let-bound while evil-textobj-anyblock is
loading, so load it first.
  • Loading branch information
hlissner committed May 30, 2021
1 parent dd1f771 commit bd94250
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/editor/evil/autoload/textobjects.el
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ This excludes the protocol and querystring."
;;;###autoload (autoload '+evil:inner-any-quote "editor/evil/autoload/textobjects" nil nil)
(evil-define-text-object +evil:inner-any-quote (count &optional beg end type)
"Select the closest inner quote."
(require 'evil-textobj-anyblock)
(let ((evil-textobj-anyblock-blocks
'(("'" . "'")
("\"" . "\"")
Expand All @@ -57,6 +58,7 @@ This excludes the protocol and querystring."
;;;###autoload (autoload '+evil:outer-any-quote "editor/evil/autoload/textobjects" nil nil)
(evil-define-text-object +evil:outer-any-quote (count &optional beg end type)
"Select the closest outer quote."
(require 'evil-textobj-anyblock)
(let ((evil-textobj-anyblock-blocks
'(("'" . "'")
("\"" . "\"")
Expand Down

0 comments on commit bd94250

Please sign in to comment.