experimental Emacs modules in Go
Go C C++
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
examples
include
.gitignore
LICENSE
README.md
environment.go
errors.go
function.go
module.go
pointers.go
registry.go
stdlib.go
types.go
wrapper.c

README.md

goemacs

experimental Emacs modules in Go

Requires dynamic modules support to be built into Emacs (obviously): check that module-file-suffix is not nil.

Example

$ cd examples/hello
$ make test
emacs --batch --load hello.so --eval '(when (featurep (quote hello)) (hello "world"))'
INFO[0000] module initialization started
hello from go init
INFO[0000] creating native function
INFO[0000] creating symbol
INFO[0000] calling function
Hello function!
INFO[0000] calling symbol before it's bound
symbol is not a function
INFO[0000] binding symbol to function
INFO[0000] calling symbol after it's bound
Hello symbol!
INFO[0000] module initialization complete
Hello world!

Credits

The following resources have been immensely useful: