Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@mtrsk
Last active March 2, 2024 16:58
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mtrsk/10a03927490f9edb1f7a2cd72792b0ec to your computer and use it in GitHub Desktop.
Save mtrsk/10a03927490f9edb1f7a2cd72792b0ec to your computer and use it in GitHub Desktop.
Spacemacs config for Proof General

Tutorial

This is a Spacemacs config, I only use it for Coq + Proof General.

Instalation

  • Make sure you have Emacs & Coq installed
  • Install Proof General
cd ~/.emacs.d/private/local
git clone git@github.com:ProofGeneral/PG.git ProofGeneral
cd ProofGeneral
make
  • Install Spacemacs layer
cd ~/.emacs.d/private
git clone git@github.com:mbrcknl/spacemacs-coq coq
  • Change ~/.spacemacs and add Coq to it's layers.
(.....)
   dotspacemacs-configuration-layers
   '(
     ;; ----------------------------------------------------------------
     ;; Example of useful layers you may want to use right away.
     ;; Uncomment some layer names and press <SPC f e R> (Vim style) or
     ;; <M-m f e R> (Emacs style) to install them.
     ;; ----------------------------------------------------------------
     helm
     ;; auto-completion
     ;; better-defaults
     emacs-lisp
     ;; git
     ;; markdown
     ;; org
     ;; (shell :variables
     ;;        shell-default-height 30
     ;;        shell-default-position 'bottom)
     ;; spell-checking
     ;; syntax-checking
     ;; version-control
     coq
     )
(.....)
@mtrsk
Copy link
Author

mtrsk commented Jan 11, 2019

If you're having trouble with autocomplete

Add this to yout .spacemacs config

 (setq coq-mode-abbrev-table '())

@luochen1990
Copy link

Thanks for this guide, but I got the following error after these steps:
image
I do executed cd ProofGeneral && make and it succeed (with a few warnnings).
Is there any suggestion?

@luochen1990
Copy link

I have solved this problem referencing this post.

The key point is set the pg path yourself:

(defun dotspacemacs/user-init ()
  (setq proof-general-path "/your/local/git/PG/generic/proof-site"))

@mtrsk
Copy link
Author

mtrsk commented Sep 20, 2019

I have solved this problem referencing this post.

The key point is set the pg path yourself:

(defun dotspacemacs/user-init ()
  (setq proof-general-path "/your/local/git/PG/generic/proof-site"))

Thanks! It's been a while since I've used Coq, so I'll try to set it up again and see what's goes wrong with the new version of PG.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment