Add basic idris support

This commit is contained in:
Patrick Elliott 2018-08-21 13:35:58 +02:00
parent 9e08620350
commit a2c1a62cd6
No known key found for this signature in database
GPG key ID: 7CA109C3974AF5FA
3 changed files with 24 additions and 0 deletions

View file

@ -0,0 +1,3 @@
#+TITLE: :lang idris
Adds support for the [[https://www.idris-lang.org/][idris]] programming language.

View file

@ -0,0 +1,17 @@
;;; lang/idris/config.el -*- lexical-binding: t; -*-
(def-package! idris-mode
:config
(add-hook! 'idris-mode-hook 'turn-on-idris-simple-indent)
(set-repl-handler! 'idris-mode 'idris-pop-to-repl)
(map! :map idris-mode-map
:localleader
:n "r" #'idris-load-file
:n "t" #'idris-type-at-point
:n "d" #'idris-add-clause
:n "l" #'idris-make-lemma
:n "c" #'idris-case-split
:n "w" #'idris-make-with-block
:n "m" #'idris-add-missing
:n "p" #'idris-proof-search
:n "h" #'idris-docs-at-point))

View file

@ -0,0 +1,4 @@
;; -*- no-byte-compile: t; -*-
;;; lang/idris/packages.el
(package! idris-mode)