     key=>def pair.
 
     If states are omitted the keybind will be global.
+
+    This can be customized with `doom-evil-state-alist'.
 
     :L cannot be in a :map.
 

                (user-error "map! has no definition for %s key" key))
              (setq def (pop rest))
              (when desc
                (push `(doom-keybind-register ,(key-description (eval key))
                                              ,desc ',modes)
                      forms))
              (cond ((and keymaps states)

                        `(vconcat ,prefix (if (stringp ,def) (kbd ,def) ,def))
                      `(vconcat ,prefix ,(if (stringp def) (kbd def) def))))
              (when desc
                (push `(doom--keybind-register ,(key-description (eval prefix))
                                              ,desc ',modes)
                      forms)
                (setq desc nil))))
          (otherwise ; might be a state prefix
           (setq states (doom--keyword-to-states key '("L")))
           (when (let (case-fold-search)
                   (string-match-p "L" (symbol-name key)))
             (setq local t)
