Skip to content

ShiroTakeda/poly-gams

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

poly-gams

https://melpa.org/packages/poly-gams-badge.svg

poly-gams is an Emacs package that provides polymode support for GAMS (General Algebraic Modeling System), allowing for embedded Python and YAML code blocks within GAMS files. This package leverages polymode to enable seamless multi-mode editing.

Features

  • GAMS Mode: Syntax highlighting and editing support for GAMS code, inherited from gams-mode.
  • Embedded Python: Syntax highlighting and editing support for Python code blocks embedded within GAMS files.
  • Embedded YAML: Syntax highlighting and editing support for YAML code blocks embedded within GAMS files and used by GAMS Connect.

Installation

This package is available on MELPA. Using use-package, installation can be done by adding the following to your init.el

(use-package poly-gams
  :ensure t)

Usage

Once installed, poly-gams will automatically activate for files with the .gms extension.

Screenshots of code blocks with poly-gams

With poly-gamsWithout poly-gams
Connect blockimages/connect_with_poly.pngimages/connect_without_poly.png
Python blockimages/python_with_poly.pngimages/python_without_poly.png

Keybindings

poly-gams inherits keybindings from polymode, gams-mode, python-mode, and yaml-mode. Refer to the respective mode documentation for more information.

Customization

Currently, poly-gams does not expose customizable variables. The package is designed to work out of the box for most use cases. Refer to polymode, gams-mode, python-mode, and yaml-mode for customization.

Contributing

Contributions are welcome! If you find a bug or have a feature request, please open an issue on the GitHub repository. Pull requests are also appreciated.

License

This project is licensed under the GNU General Public License v3.0. See the LICENSE file for details.

About

Polymode for GAMS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •