chenyanming / shrface

Extend eww/nov with org-mode features, archive web pages to org files with shr.
GNU General Public License v3.0
213 stars 14 forks source link

User customization of shrface-bullets-bullet-list breaks imenu #8

Closed AloisJanicek closed 4 years ago

AloisJanicek commented 4 years ago

Because of the how evaluation and its order works, every shrface functionality depending on shrface-outline-regexp, shrface-outline-regexp-bol, shrface-imenu-regexp-bol completely stops working at the moment when user choose to customize shrface-bullets-bullet-list in

(use-package shrface :config (setq ... ))

because user will have buffers rendered with customized symbols but shrface regexp variables will be still using default set of bullets ("◉" "○" "✸" "✿") which was the value of shrface-bullets-bullet-list at the time those regexp variables were bound.

To prevent this situation, all three shrface regexp variables should be converted to functions.

Or maybe there is another way?