Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define a major mode for the GobGen buffer #2

Open
gergelypolonkai opened this issue Oct 3, 2016 · 0 comments
Open

Define a major mode for the GobGen buffer #2

gergelypolonkai opened this issue Oct 3, 2016 · 0 comments

Comments

@gergelypolonkai
Copy link
Owner

Original idea from @purcell in the MELPA recipe PR.

You might consider defining a major mode to simplify setup of the widgets window: you've got code in the gobgen function such as (kill-all-local-variables) and (use-local-map widget-keymap) which would be generated automatically by define-derived-mode. So you'd have code like

(define-derived-mode gobgen-mode special-mode ...)

and then instead of widget-keymap you'd use the generated gobgen-mode-map.

Let’s define a major mode for the GobGen buffer, with some keymaps for at least the three buttons!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant