Skip to content

RubenAstudillo/spacemacs-agda

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Agda Layer for Spacemacs

This is a very rudimentary agda layer for spacemacs.

It loads Agda-mode automatically using the agda-mode executable. Ensure it is in your $PATH.

On OSX, you will have to do this by adding to your dotspacemacs/init function, as emacs for OS X ignores your $PATH.

(defun dotspacemacs/init ()
  (add-to-list 'exec-path "~/.cabal/bin/")
  (add-to-list 'exec-path "~/bin/")
)

Key bindings

These are loosely based on the original emacs bindings (which still work, if you need them).

Key commandM-x commandDescription
<SPC> mmagda2-loadLoad
<SPC> mCagda2-compleCompile
<SPC> mQagda2-quitQuit
<SPC> mRagda2-restartRestart Agda
<SPC> mDagda2-remove-annotationsDeactivate (remove highlighting and goals)
<SPC> mimagda2-display-implicit-argumentsToggle display of implicit arguments
<SPC> m=agda2-show-constraintsShow constraints
<SPC> msagda2-solve-constraintsSolve constraints
<SPC> m?agda2-show-goalsShow goals
<SPC> mjagda2-next-goalNext goal
<SPC> mkagda2-previous-goalPrevious goal
<SPC> mgagda2-giveGive
<SPC> mragda2-refineRefine
<SPC> maagda2-autoAuto (agsy)
<SPC> mcagda2-make-caseCase split
<SPC> mtagda2-goal-typeDisplay goal type
<SPC> meagda2-show-contextShow context (environment)
<SPC> mhagda2-helper-function-typeHelper function type
<SPC> mdagda2-infer-type-maybe-toplevelInfer (deduce) type
<SPC> mwagda2-why-in-scope-maybe-toplevelExplain why a particular name is in scope
<SPC> m,agda2-goal-and-contextGoal type, and context
<SPC> m.agda2-goal-and-context-and-inferredGoal type, context, and inferred type
<SPC> moagda2-module-and-contents-maybe-toplevelModule contents
<SPC> mnagda2-compute-normalised-maybe-toplevelEvaluate an expression to normal form

About

A little agda layer for spacemacs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Emacs Lisp 100.0%