Closed tpapp closed 10 years ago
I very much agree. So much, so that I've incorporated auto-completing using ac-mode
and yasnippet
in the development branch. I just haven't merged it into the main branch. Try using the develop
branch and let me know how it works for you.
I could not use it, I get the following debug trace when I try to open a file:
Debugger entered--Lisp error: (void-variable stan--load-ac)
(if stan--load-ac (progn stan-ac-mode-setup))
stan-mode()
set-auto-mode-0(stan-mode nil)
set-auto-mode()
normal-mode(t)
after-find-file(nil t)
find-file-noselect-1(#<buffer foo.stan> "/tmp/foo.stan" nil nil "/tmp/foo.stan" (11511902 65025))
find-file-noselect("/tmp/foo.stan" nil nil)
ido-file-internal(raise-frame)
ido-find-file()
call-interactively(ido-find-file nil nil)
Sorry about that. I just fixed it in the current devel commit.
autocomplete features using ac-mode and yasnippet are now included in the package.
It would be nice to have
normal(...)
it would display something likenormal(mu, sigma)
. Since STAN sometimes uses different semantics for functions that are also present in R etc (eg in R thenormal
uses variance), this could help prevent some coding errors.I don't know how to implement these features in Emacs, but once a framework is in place, I would be happy to fill it in the actual definitions.