0xekez / htmlz-mode

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

M-x htmlz mode not coming up in Doom Emacs #1

Open norogoth opened 3 years ago

norogoth commented 3 years ago

When I ran "doom sync" the GH repo was recognized and installed successfully. However, upon doing M-x html nothing shows up.

(Note: I am a novice programmer and new to Doom Emacs)

yikesmate

0xekez commented 3 years ago

Hi there:) thanks for trying this out. The command to start this is M-x htmlz-mode. What happens when you run that?

norogoth commented 3 years ago

I get the same result. There are no results that come up.

On Tue, Jan 19, 2021 at 3:33 PM Zeke Medley notifications@github.com wrote:

Hi there:) thanks for trying this out. The command to start this is M-x htmlz-mode. What happens when you run that?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ZekeMedley/htmlz-mode/issues/1#issuecomment-763210990, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMRTKN4RPNG4OG5ABL4PRCTS2YJDBANCNFSM4WJWWK2A .

norogoth commented 3 years ago

yw

0xekez commented 3 years ago

Interesting. Perhaps this is something about doom that I'm unfamiliar with. To manually run through it you can do the following:

  1. Open the htmlz.el file from the repo.

    • If you don't know where the file is run

      git clone https://github.com/ZekeMedley/htmlz-mode.git
      emacs htmlz-mode/htmlz.el
  2. With the file open run M-x eval-buffer.
  3. Try to start the mode by running M-x htmlz-mode with a html file open.
danielkrajnik commented 1 year ago

Have you ever got it to work? I'm using Doom emacs as well and added these to packages.el:

(package! htmlz-mode
  :recipe (:host github :repo "0xekez/htmlz-mode"
                 :files "htmlz.el"))

doom sync runs scuccessfully, but htmlz mode still doesnt come up :(

Hour long into this madness I think that the reason it doesn't work has something to do with the way straight.el expects .el files to be packaged. I assume that it doesn't simply evaluates them, but performs some special bullshido that you need to learn.

2 hours deep in the straight.el tutorial seems like it merely git clones raw repositories, which is nice. In .config/emacs/straight/build/ there is a new htmlz-mode "package" that is symlinked to repos/htmlz-mode folder. Seems like it be edited directly once I'll only find out... what actually enables it.

On the next day: fuck it, I give up, emacs docs suck too much

At the end of the next day: keep going... now it looks like fault could have been on doom emacs part all this time - running (require 'htmlz-mode) finally finally loads this god's forsaken "package"

At some point in the future, beyond time and space: I was wrong about doom emacs, htmlz.el didn't conform to emacs packaging style - trying to rewrite it and see if it finally loads correctly

One eternity later: solved, see issue 2