zkry / yaml-pro

Edit YAML in Emacs like a pro
GNU General Public License v3.0
137 stars 9 forks source link

Suggest enabling yaml-pro-mode last #52

Closed nbarrientos closed 6 months ago

nbarrientos commented 6 months ago

Otherwise yaml-set-imenu-generic-expression (default in yaml-mode-hook) will be executed after yaml-pro-mode sets imenu up, overwriting the configuration created by this package.

nbarrientos commented 6 months ago

I only use yaml-pro-ts-mode but the same idea applies:

(add-hook 'yaml-mode-hook 'yaml-pro-ts-mode 100))
zkry commented 6 months ago

Thanks for this! I'll see if I can add a word in the -ts- mode section too about this.