Skip to content

ShiroTakeda/gams-ac

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is gams-ac.el?

This lisp provides an auto-complete source for GAMS mode.

Screenshot

gams-ac screenshot

Installation

First, you need auto-complete mode (auto-complete.el) and GAMS mode (gams-mode.el). I recommend using packages from MELPA.

To use gams-ac, put the following code in your init.el to

(require 'gams-ac)
(gams-ac-after-init-setup)

Usage

gams-ac should now automatically be enabled when you visit a buffer in which gams-mode is active and auto-complete is enabled.

If you want to add more keywords, for example, "computable", "general", "equilibrium", Add the following into your init.el.

(setq gams-ac-source-user-keywords-list
        '("computable" "general" "equilibrium"))

Candidates for completion

Candidates for completion are created from values of variables gams-statement-alist and gams-dollar-control-alist. So if you want a certain command to appear in candidates, you first needs to register the command by executing gams-insert-statement (C-cC-k) or gams-insert-dollar-control (C-cC-d). Or just register the command to gams-ac-source-user-keywords-list above.

Releases

No releases published

Packages