Advertisement
Guest User

Untitled

a guest
Jul 1st, 2022
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. Btw here is a write up for an arch linux installation (yay can be remplaced by any AUR helper)
  2. - Install emacs
  3. sudo pacman -S emacs
  4.  
  5. - Install ghcup and stack
  6. yay -S ghcup-hs-bin
  7. ghcup install stack
  8.  
  9. - Add $HOME/.ghcup/bin to your path by adding
  10. export PATH=$HOME/.ghcup/bin:$PATH
  11. to your bashrc and reloading your shell
  12.  
  13. - Use stack to install Agda
  14. stack install Agda
  15. this may take a while to compile
  16. - ensure $HOME/.local/bin is in your path using echo $PATH, if not add
  17. export PATH="$HOME/.local/bin:$PATH"
  18. to your bashrc and re-log in into your session
  19.  
  20. - in ~/.emacs.d/init.el (create the directory .emacs.d if it doesn't exist) add
  21. (load-file (let ((coding-system-for-read 'utf-8))
  22. (shell-command-to-string "agda-mode locate")))
  23. (add-to-list 'auto-mode-alist '("\\.lagda\\.md'" . agda2-mode))
  24.  
  25. - Start emacs and edit some Agda files
  26.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement