Very early stage Emacs integration for kRITZCREEK/psc-ide.
Add the following to your ~/.emacs
:
;; specify the path to the plugin directory
(add-to-list 'load-path "~/.emacs.d/lisp/psc-ide-emacs/")
;; specify path to the 'psc-ide' executable
(customize-set-variable 'psc-ide-executable "/path/to/psc-ide")
(require 'psc-ide)
(add-hook 'purescript-mode-hook
(lambda ()
(psc-ide-mode)
(company-mode)))
- Optional: enable
projectile-mode
sopsc-ide
can find your PureScript project’s root dir. - Do
psc-ide-server-start
(C-c C-s
) and confirm the project dir. - Load the modules you want to use as completion sources (
C-c C-l
). - Visit a
.purs
buffer inside your PureScript project. - Put your cursor to the right of an identifier and press
C-<SPC>
to suggest completions. - Press
C-c C-t
to show the type of the identifier under the cursor.
key | function |
---|---|
C-c C-s | psc-ide-server-start |
C-c C-l | psc-ide-load-module |
C-<SPC> | company-complete |
C-c C-t | psc-ide-show-type |