8
14
Fork
You've already forked zig-mode
1

customize-mode compatibility #36

Open
opened 2020年10月04日 20:22:46 +02:00 by lolbinarycat · 7 comments
lolbinarycat commented 2020年10月04日 20:22:46 +02:00 (Migrated from github.com)
Copy link

I typed customize-mode to add something to the hook, only to find that there wasn't one. Is there something I'm missing?

I typed `customize-mode` to add something to the hook, only to find that there wasn't one. Is there something I'm missing?
bbuccianti commented 2021年03月24日 19:29:02 +01:00 (Migrated from github.com)
Copy link

I think would be useful to have a hook too. Would be trivial to add one like zig-mode-hook. If folks think this is doable, I can make a PR for that.

I think would be useful to have a hook too. Would be trivial to add one like zig-mode-hook. If folks think this is doable, I can make a PR for that.
Collaborator
Copy link

zig-mode is using the standard define-derived-mode. The mode hook should be defined already. 🤔

`zig-mode` is using the standard `define-derived-mode`. The mode hook should be defined already. 🤔
lolbinarycat commented 2024年02月21日 18:44:54 +01:00 (Migrated from github.com)
Copy link

if i had to guess it exists but isn't visible to custom.

if i had to guess it exists but isn't visible to `custom`.
Collaborator
Copy link

What package management tool do you use to install packages? package.el? 🤔

What package management tool do you use to install packages? `package.el`? 🤔
lolbinarycat commented 2024年02月22日 00:06:05 +01:00 (Migrated from github.com)
Copy link

yes.

it seems customize-mode is actually broken with a lot of non-core modes, i believe you need to add :group 'zig-mode to the mode definition.

yes. it seems `customize-mode` is actually broken with a lot of non-core modes, i believe you need to add `:group 'zig-mode` to the mode definition.
Collaborator
Copy link

I believed is there for a long time, see

ziglang/zig-mode@9ce2009710/zig-mode.el (L494)

Apparently, customize mode can't work with unloaded module. Therefore, you have to (require 'zig-mode) before customize-mode.

I believed is there for a long time, see https://github.com/ziglang/zig-mode/blob/9ce200971008fa29641ab7bec80802b450b65646/zig-mode.el#L494 Apparently, customize mode can't work with unloaded module. Therefore, you have to `(require 'zig-mode)` before customize-mode.
ve-nt commented 2024年11月01日 23:58:43 +01:00 (Migrated from github.com)
Copy link

I believed is there for a long time, see

ziglang/zig-mode@9ce2009710/zig-mode.el (L494)

Apparently, customize mode can't work with unloaded module. Therefore, you have to (require 'zig-mode) before customize-mode.

This doesn't appear to be the case on my setup. zig-mode-hook does not appear in the customize menu, despite being defined. I've created a PR (#113) that fixes this issue.

> I believed is there for a long time, see > > https://github.com/ziglang/zig-mode/blob/9ce200971008fa29641ab7bec80802b450b65646/zig-mode.el#L494 > > Apparently, customize mode can't work with unloaded module. Therefore, you have to `(require 'zig-mode)` before customize-mode. This doesn't appear to be the case on my setup. `zig-mode-hook` does not appear in the customize menu, despite being defined. I've created a PR (#113) that fixes this issue.
Sign in to join this conversation.
No Branch/Tag specified
master
No results found.
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ziglang/zig-mode#36
Reference in a new issue
ziglang/zig-mode
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?