Klimi's new dotfiles with stow.
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

40 satır
1.2 KiB

5 yıl önce
  1. ;;; slime-scheme.el --- Support Scheme programs running under Common Lisp
  2. ;;
  3. ;; Authors: Matthias Koeppe <mkoeppe@mail.math.uni-magdeburg.de>
  4. ;;
  5. ;; License: GNU GPL (same license as Emacs)
  6. ;;
  7. ;;; Installation:
  8. ;;
  9. ;; Add this to your .emacs:
  10. ;;
  11. ;; (add-to-list 'load-path "<directory-of-this-file>")
  12. ;; (add-hook 'slime-load-hook (lambda () (require 'slime-scheme)))
  13. ;;
  14. (eval-and-compile
  15. (require 'slime))
  16. (defun slime-scheme-mode-hook ()
  17. (slime-mode 1))
  18. (defun slime-scheme-indentation-update (symbol indent packages)
  19. ;; Does the symbol have an indentation value that we set?
  20. (when (equal (get symbol 'scheme-indent-function)
  21. (get symbol 'slime-scheme-indent))
  22. (put symbol 'slime-scheme-indent indent)
  23. (put symbol 'scheme-indent-function indent)))
  24. ;;; Initialization
  25. (defun slime-scheme-init ()
  26. (add-hook 'scheme-mode-hook 'slime-scheme-mode-hook)
  27. (add-hook 'slime-indentation-update-hooks 'slime-scheme-indentation-update)
  28. (add-to-list 'slime-lisp-modes 'scheme-mode))
  29. (defun slime-scheme-unload ()
  30. (remove-hook 'scheme-mode-hook 'slime-scheme-mode-hook)
  31. (remove-hook 'slime-indentation-update-hooks 'slime-scheme-indentation-update)
  32. (setq slime-lisp-modes (remove 'scheme-mode slime-lisp-modes)))
  33. (provide 'slime-scheme)