0xekez / htmlz-mode

extremely simple html live preview for Emacs
BSD 3-Clause "New" or "Revised" License
8 stars 2 forks source link

fix: add autoload cookie #4

Open zed opened 2 months ago

zed commented 2 months ago

It fixes: https://github.com/0xekez/htmlz-mode/issues/1 https://github.com/0xekez/htmlz-mode/issues/2

It fixes error on M-x htmlz-mode:

apply: Cannot open load file: No such file or directory, htmlz-mode

with the following config in .emacs (Emacs 29+):

(use-package htmlz-mode
  :vc (:url "https://github.com/0xekez/htmlz-mode")
  ;; M-x htmlz-mode in html buffer to enable the minor-mode
  :commands htmlz-mode)

It works with:

;; ** htmlz-mode -- simple live html preview in browser
(use-package htmlz-mode
  :vc (:url "https://github.com/zed/htmlz-mode"
       :rev "fix/loading-htmlz-mode")
  ;; M-x htmlz-mode in html buffer, to enable the minor-mode
  :commands htmlz-mode)