stan-snippets

https://github.com/stan-dev/stan-mode.git

git clone 'git://github.com/stan-dev/stan-mode.git'
10

Emacs support for Stan

Build Status

This repository contains several Emacs packages and tools to make editing Stan files easier.

Installing

package.el

The recommended way to install these packages is using the built-in package manager: package.el. These packages are available from MELPA or MELPA stable. If you're not already using MELPA, follow its installation instructions.

You can then install the packages using the following commands:

M-x package-install [RET] stan-mode [RET]

M-x package-install [RET] stan-snippets [RET]

If the installation does not work, try refreshing the package list:

M-x package-refresh-contents [RET]

Or add the following to you init.el: lisp (package-refresh-contents) (mapc (lambda (p) (unless (package-installed-p p) (package-install p))) '(stan-mode stan-snippets))

Cask

Another way to manage dependencies is to to use Cask. See its docs for an argument as to why to use Cask to manage your configuration.

Simply add the following to your Cask file: lisp (source melpa) ;; (source melpa-stable) (depends-on "stan-mode") (depends-on "stan-snippets") and from the command line in the same directory as the Cask file use cask to install the packages, console $ cask install See the Cask documentation for more information.

stan-mode

MELPA MELPA Stable

To use, add the following to your init.el file: lisp (require 'stan-mode)

If you have autocomplete installed and would like to activate stan-mode's support for it, add the following line el (setq stan-use-auto-complete t)

stan-snippets

MELPA MELPA Stable

To use, add the following to your init.el file: lisp (require 'stan-snippets) To use yasnippet globally: lisp (yas-global-mode 1) Else, to use yasnippet only for stan-mode: lisp (add-hook 'stan-mode-hook '(lambda () (yas-minor-mode)))

See the documenation for yasnippet for more information on using yasnippet-mode.

License

All packages are free software under the GPL v3.

The file stan-lang/stan-lang.json is available under the Public Domain Dedication and License v1.0 whose full text can be found at: http://www.opendatacommons.org/licenses/pddl/1.0/ - See more at: http://opendatacommons.org/licenses/pddl/#sthash.UJfFWezm.dpuf