conf-hideshowvis.el 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. ;(autoload 'hideshowvis-enable "hideshowvis" "Highlight foldable regions")
  2. ;(autoload 'hideshowvis-symbols "hideshowvis" "Highlight foldable regions")
  3. (autoload 'hideshowvis-minor-mode
  4. "hideshowvis"
  5. "Will indicate regions foldable with hideshow in the fringe."
  6. 'interactive)
  7. (require 'hideshowvis)
  8. (hideshowvis-symbols)
  9. (add-to-list 'hs-special-modes-alist
  10. '(ruby-mode
  11. "\\(def\\|do\\|{\\)" "\\(end\\|end\\|}\\)" "#"
  12. (lambda (arg) (ruby-end-of-block)) nil))
  13. (dolist (hook (list 'emacs-lisp-mode-hook
  14. 'lisp-mode-hook
  15. 'ruby-mode-hook
  16. 'perl-mode-hook
  17. 'php-mode-hook
  18. 'html-mode-hook
  19. 'sgml-mode-hook
  20. 'multi-web-mode-hook
  21. 'python-mode-hook
  22. 'lua-mode-hook
  23. 'c-mode-hook
  24. 'java-mode-hook
  25. 'js-mode-hook
  26. 'js2-mode-hook
  27. 'css-mode-hook
  28. 'c++-mode-hook))
  29. (add-hook hook 'hideshowvis-enable))
  30. ;(define-fringe-bitmap 'hideshowvis-hideable-marker [0 0 254 124 56 16 0 0])
  31. ;(define-fringe-bitmap 'hs-marker [0 32 48 56 60 56 48 32])
  32. (custom-set-faces
  33. '(hs-fringe-face ((t (:foreground "#afeeee" :box (:line-width 2 :color "grey75" :style released-button)))))
  34. '(hs-face ((t (:background "#444" :box t))))
  35. '(hideshowvis-hidable-face ((t (:foreground "#2f4f4f"))))
  36. )
  37. (provide 'conf-hideshowvis)