lisp.el 896 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. ;;;
  2. ;;; Elisp
  3. ;;;
  4. (defvar wi-elisp--prettify-symbols-alist
  5. '(("lambda" . ?λ)
  6. ("lambda*" . (?λ (Br . Bl) ?*)))
  7. "Alist of symbol prettifications for `emacs-lisp-mode'.")
  8. (add-hook 'emacs-lisp-mode-hook
  9. (lambda ()
  10. (set (make-local-variable 'prettify-symbols-alist)
  11. wi-elisp--prettify-symbols-alist)))
  12. (add-hook 'emacs-lisp-mode-hook #'(lambda () (setq fill-column 70)))
  13. ;;;
  14. ;;; Slime
  15. ;;;
  16. (setq slime-net-coding-system 'utf-8-unix)
  17. (setq slime-truncate-lines nil)
  18. (setq sldb-initial-restart-limit 12)
  19. ;;;
  20. ;;; hy
  21. ;;;
  22. (defconst wi-hy--prettify-symbols-alist
  23. '(("fn" . ?λ)
  24. ("True" . (?# (Br . Bl) ?t))
  25. ("False" . (?# (Br . Bl) ?f))))
  26. (when (functionp #'add-hooks)
  27. (add-hooks
  28. '(((hy-mode-hook)
  29. . (lambda ()
  30. (set (make-local-variable 'prettify-symbols-alist)
  31. wi-hy--prettify-symbols-alist))))))