Giter Site home page Giter Site logo

aiken-mode's Introduction

Emacs mode for aiken

An emacs major mode providing syntax highlighting, indentation and formatting commands for the Aiken smart contract language.

Features

  • Syntax highlighting
  • aiken fmt command and on-save
  • Indentation
  • Aiken LSP client

Installation

The package is not yet on MELPA, so pointing your emacs config to this repository is the way to go for now.

doom-emacs (recommended ๐Ÿ˜ˆ)

Add this to your packages.el:

(package! aiken-mode
  :recipe (:host github
           :repo "xxAVOGADROxx/aiken-mode"))

Add this to your config.el:

(use-package! aiken-mode
  :config
  (use-package! lsp
    :hook
    (aiken-mode . lsp))
  :bind
  (("C-c C-b" . aiken-format-buffer)
   ("C-c C-r" . aiken-format-region)))

(after! lsp-mode
  (add-to-list 'lsp-language-id-configuration '(aiken-mode . "aiken"))
  (lsp-register-client
   (make-lsp-client
    :new-connection (lsp-stdio-connection '("aiken" "lsp"))
    :major-modes '(aiken-mode)
    :server-id 'aiken-ls
    :activation-fn (lsp-activate-on "aiken")
    :priority -1
    :multi-root t
    :initialization-options (lambda () (list :aiken)))
   )
  )

and run doom sync.

For faster feedback time during development:

(package! aiken-mode
  :recipe (:local-repo "~/path/to/aiken-mode"))

use-package

(use-package aiken-mode
  :load-path "~/path/to/aiken-mode")

vanilla

(add-to-list 'load-path "~/path/to/aiken-mode")
(load-library "aiken-mode")

aiken-mode's People

Contributors

ch1bo avatar xxavogadroxx 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.