Last update: 2018/03/26      

GAMS mode for Emacs

Home (en) > GAMS > GAMS mode for Emacs

This is a macro for using GAMS (General Algebraic Modeling System) in Emacs.

Release information of GAMS mode is posted at

If you want to know about GAMS and Emacs, please see the following sites.

Main features

GAMS mode for Emacs offers the integrated and flexible environment for using GAMS in Emacs.

For the details, please see in GitHub. GAMS mode for Emacs is developed in ShiroTakeda/gams-mode: GAMS mode for Emacs in GitHub.

Screenshots page

See Screenshots of GAMS mode for Emacs.

Download and installation

Renger van Nieuwkoop provides a nice introduction of GAMS mode in his blog (The Lazy Economist). If you newly install GAMS mode, you had better look at his blog.

[Note for installation]
Add the following line to your ".emacs.el"

    (setq font-lock-support-mode '((gams-mode . nil) (t . jit-lock-mode)))
Without this setting, coloring function of Emacs is not likely to work well in GAMS mode.

You can download developing version of GAMS mode from In addition, you can install GAMS mode from MELPA (developing version) or MELPA-stable (stable version). To use MELPA, put the following code in your init.el file.

    (add-to-list 'package-archives
                 '("melpa" . "") t)
    (add-to-list 'package-archives
                 '("melpa-stable" . "") t)
But note that this only installs gams-mode.el file and does not install other files.

The files included in the zip archive. First read this file. Change log file. If you want to know changes and newly added functions, please read it.
BUGS_PROBLES.txt Known bugs and problems. If you faces problems, please read this file first.
gams-mode.el The main lisp program.
gams-setting-sample.el A sample file for setting. Copy and paste the content of this file into your "~/.emacs.d/init.el"
gams-sample.gms A sample file to show how to use GAMS mode for Emacs.
sample-include.gms Put this file at the same directory as gams-sample.gms.
outline-sample.gms A sample file to show how to use GAMS-OUTLINE mode.
gams-template.txt A sample file of templates. Save this file in "~/.emacs.d/" directory.
refcard-gams.pdf Reference card for key-bindings.


Please read file.

Older versions

The zip archives of the older versions. The latest version of GAMS mode is provided in GitHub.

Changelogs of this page

  • 2009-07-19: Release GAMS mode ver. 3.0
  • 2009-03-10: Release GAMS mode ver. 2.7
  • 2009-01-07: Release GAMS mode ver. 2.6.1
  • 2008-12-20: Release GAMS mode ver. 2.6.
  • 2008-07-22: Release GAMS mode ver. 2.5.1: Minor change (bug fix)
  • 2008-03-29: Release GAMS mode ver. 2.5.