Code Monkey home page Code Monkey logo

psc-ide-emacs's Introduction

psc-ide-emacs

Very early stage Emacs integration for kRITZCREEK/psc-ide.

./screenshot-1.png

Installation

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)))

Usage

  • Optional: enable projectile-mode so psc-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.

Keybindings

keyfunction
C-c C-spsc-ide-server-start
C-c C-lpsc-ide-load-module
C-<SPC>company-complete
C-c C-tpsc-ide-show-type

psc-ide-emacs's People

Contributors

dbushenko avatar epost avatar kritzcreek avatar rexim avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.