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

Polymode #2

Open
christophe-gouel opened this issue Jun 8, 2022 · 5 comments
Open

Polymode #2

christophe-gouel opened this issue Jun 8, 2022 · 5 comments

Comments

@christophe-gouel
Copy link
Contributor

Hi,

I have started implementing a polymode (https://polymode.github.io) for your gams-mode to handle the Python code embedded in GAMS ($onembedded Python:).

For now, this just lives in my init.el. Are you interested in a PR?

Best,
Christophe

@ShiroTakeda
Copy link
Owner

Hi,

I'm not sure if the polymode works consistently with gams mode, but I'd like to see your code anyway, so can you send me a pull request?

@ShiroTakeda
Copy link
Owner

Hi

When defining a new polymode, it is often necessary to create a separate lisp program. Following the same method, I created a program called poly-gams.el to use polymode in GAMS.

https://www.dropbox.com/s/t7mtzijkb9rx8g2/poly-gams.el?dl=0

Could you please try to use this program? Put this in the folder included in the load-path and add the following code to init.el

(require 'poly-gams)

When you open gms files, you should be able to use polymode in GAMS mode automatically.

Please let me know if you find some problems and let me know if you have any requests.

@christophe-gouel
Copy link
Contributor Author

christophe-gouel commented Jun 28, 2022 via email

@ShiroTakeda
Copy link
Owner

Hi Christophe,

I want to check what the problem is. Could you upload (or send me by email) a file where the coloring feature doesn't work well?

@christophe-gouel
Copy link
Contributor Author

christophe-gouel commented Jun 30, 2022 via email

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

No branches or pull requests

2 participants