Merge pull request #822 from patrl/idris

:lang idris
This commit is contained in:
Henrik Lissner 2018-08-31 03:48:54 +02:00 committed by GitHub
commit 3ff5c801a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 26 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,19 @@
;;; lang/idris/config.el -*- lexical-binding: t; -*-
(after! idris-mode
(add-hook! 'idris-mode-hook 'turn-on-idris-simple-indent)
(set-repl-handler! 'idris-mode 'idris-pop-to-repl)
(set-lookup-handlers! 'idris-mode
:documentation #'idris-docs-at-point
:file #'idris-load-file)
(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)