Skip to content

Instantly share code, notes, and snippets.

@puffnfresh
Last active May 31, 2018 09:24
Show Gist options
  • Save puffnfresh/dc9842076d261c95f798 to your computer and use it in GitHub Desktop.
Save puffnfresh/dc9842076d261c95f798 to your computer and use it in GitHub Desktop.
Proof General under spacemacs
(defvar coq-pre-extensions
'(
proof-general
))
(defun coq/init-proof-general ()
"Initialize Proof General"
(use-package proof-site
:defer t
:mode ("\\.v\\'" . coq-mode)
:load-path
"~/.nix-profile/share/emacs/site-lisp/ProofGeneral/generic"))
(defvar coq-packages
'(
company-coq
))
(defun coq/init-company-coq ()
(use-package company-coq
:defer t
:config
(add-hook 'coq-mode-hook #'company-coq-initialize)))
@elfi
Copy link

elfi commented Jan 24, 2016

Could you please be more specific to which files to add these lines? There are many of the two in various subdirectories.

@olivierverdier
Copy link

I've put that layer in a basic repo. Install with

git clone https://github.com/olivierverdier/spacemacs-coq ~/.emacs.d/private/coq

You may have to modify the location of proof-general, though.

@bradediger
Copy link

Of course when I go looking for coq/spacemacs integration it turns out to be a fellow Nix user... 👍

@cgswords
Copy link

I can't figure out how this works. I cloned as above and modified it to point to the correct proof general location, but opening Test.v treats it as a Verilog file. Can you help?

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