shirotakeda / gams-mode Goto Github PK
View Code? Open in Web Editor NEWGAMS mode for Emacs
Home Page: http://shirotakeda.org/en/gams/gams-mode/
GAMS mode for Emacs
Home Page: http://shirotakeda.org/en/gams/gams-mode/
Hi,
I would like for gams-mode to have a standard emacs auto-completion. I am aware of your gams-ac package, but the auto-complete package is de facto no longer maintained and company-mode is the new standard.
I have started something that seems to work:
I barely know elisp, so I did it with a big help from ChatGPT.
Are you interested by a PR?
Hi,
The face inside slashes is the same as the face of the statement. See below
My (limited) understanding of the code is that this should be different, but it does not seem to work. The result is the same if I switch to another theme.
Depending on the statement, it can be quite confusing. See for example:
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
Hi,
I have put in my auto-completion branch which is in the last PR a file to test font-locking: https://github.com/christophe-gouel/gams-mode/blob/auto-completion/test_fontlocking.gms.
I have identified in it two small issues:
I am sorry but my elisp skills are not good enough to help fix these issues.
These are small issues (the first one is not even dealt with in GAMS Studio), but there may be an easy fix. If not, don't bother.
Hi,
Would it be possible to replace comment-region
in what follows by comment-or-uncomment-region
? This would allow the same key binding to comment and uncomment.
;; `gams-comment-region' is aliased as `comment-region'.
(if (fboundp 'comment-region)
(fset 'gams-comment-region 'comment-region)
(fset 'gams-buffer-substring 'buffer-substring))
Could you consider making gams-mode a mode derived from prog-mode? See https://www.emacswiki.org/emacs/ProgMode#:~:text='prog%2Dmode'%20is%20a,'prog%2Dmode'%20). for details. This would help automatically enable features that are enabled for all programming modes (for example in my case, rainbow delimiters and smart parenthesis).
If was able to program in elisp, I would propose a pull request, but I cannot do anything beyond tinkering with my init.el file.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.