masasam / emacs-easy-hugo

Emacs major mode for managing hugo
https://gohugo.io/tools/editors/#emacs
GNU General Public License v3.0
362 stars 26 forks source link

fix easy-hugo-mode don't get activated after call easy-hugo #56

Closed jiacai2050 closed 3 years ago

jiacai2050 commented 3 years ago

I need to push easy-hugo-mode to evil-emacs-state-modes to get easy-hugo keybindings work.

But easy-hugo-mode doesn't get activated after M-x easy-hugo. After debug the source code, I find the cause, forward-char will stop and signal error on reaching end or beginning of buffer. Maybe my solution is simple, but works for me, let me know if there is better way to do this.

masasam commented 3 years ago

Hi @jiacai2050 . Thank you for PR! If this solves it, there seems to be no other bad effect, so I merged it.