Outline Mode in Gams-Mode for Emacs

Let’s get to know the great things you can do with Gams-mode. In the previous post I showed how Gams-mode nicely colors your code, the syntax-highlighting. In this post we will look at the great way Gams-mode shows the results of your model run. This is done in the Gams-Outline mode.
First run your model by hitting C-c C-s (C stands for Ctrl) or use the same command from the menu. Emacs will open a new window and you see how Gams solves your model. When Gams is finished you can hit F10 (or C-c C-v)  to show the listing
Read the rest “Outline Mode in Gams-Mode for Emacs”

Emacs Goodies

Often you have to repeat a series of keystrokes. That is probably boring if the number of repetitions is low, but gets really annoying if the number gets higher. A typical example is formatting data or text. Take the following text snippet where we have data coming from a comma separated file:
A;410
B;243
C;134
A;410
B;324
C;134
A;410
B;324
C;134
and you would like to have this text in the following format
A        410,
B        243,
Emacs makes this a very easy job: Start the macro recording with C-x (  or F3 (the C stands for the Control
Read the rest “Emacs Goodies”

Syntax Coloring in Gams-Mode

I suppose you have installed emacs and gams-mode for emacs (if not see my preceding posts) and now are eager to start working on your model.
Let us start simple and get a model from the Gams-library. If you started emacs you are not in gams-mode (you can check this by looking at the menu bar: there is no gams-entry). If you load a gams model (with the extension “gms”), Emacs automatically turns on gams-mode and the gams entry appears in the menu bar (blue arrow). The first thing you probably notice is the syntax coloring. The coloring you will
Read the rest “Syntax Coloring in Gams-Mode”

Installing Gams-Mode for Emacs

After installing Emacs (see my previous post), the next thing to do is install gams-mode. If you got Emacs running, installing gams-mode is not so difficult.
First of all download gams-mode from Shiro Takeda’s website: You will find it here: gams-mode-download.
Update: you can now directly install gams-mode from the package repository:
  • Alt-x and type ‘list-packages’
  • search for gams-mode
  • click on it and install.

That’s all.

The files are zipped and should be unzipped to a directory Emacs will find. I show you my settings (as usual, you can do it in another way).
I have all my additional … Read the rest “Installing Gams-Mode for Emacs”