conf-fringe.el 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. (setq indicate-buffer-boundaries 'right)
  2. (setq visual-line-fringe-indicators '(left-curly-arrow nil))
  3. (setq left-fringe-width 8)
  4. (setq left-fringe-width 8)
  5. ;;; Empty lines
  6. ;; (define-fringe-bitmap 'empty-line (vector 2 2 4 5 4 2 2) 8 8 '(center t))
  7. ;; (define-fringe-bitmap 'empty-line (vector 0 0 0 8) 8 4 '(top t))
  8. ;; (define-fringe-bitmap 'empty-line (vector 0 8 0 0 0 8 0 0) 8 8 '(top t))
  9. (define-fringe-bitmap 'empty-line (vector 0 4 0 0) 8 4 '(top t))
  10. ;;; Top and bottom of buffer
  11. ;; Thin lines:
  12. ;(define-fringe-bitmap 'top-left-angle (vector 255 1 1 1 1 1 1 1) 8 8 'top)
  13. ;(define-fringe-bitmap 'bottom-left-angle (vector 1 1 1 1 1 1 1 255) 8 8 'bottom)
  14. ;(define-fringe-bitmap 'top-right-angle (vector 1 1 1 1 1 1 1 1) 8 8 'bottom)
  15. ;; More delicate, dotted lines:
  16. ;(define-fringe-bitmap 'top-left-angle (vector 85 0 1 0 1 0 0 0) 8 8 'top)
  17. ;(define-fringe-bitmap 'top-right-angle (vector 0 1 0 1 0 1 0 1) 8 8 'bottom)
  18. ;(define-fringe-bitmap 'bottom-left-angle (vector 0 0 0 1 0 1 0 85) 8 8 'bottom)
  19. ;(define-fringe-bitmap 'left-bracket (vector 85 0 1 0 0 1 0 85) 8 8 'center)
  20. ;; Delicate arrows:
  21. (define-fringe-bitmap 'up-arrow (vector 8 20 34 65 0 0 0 0) 8 8 'top)
  22. (define-fringe-bitmap 'down-arrow (vector 0 0 0 0 65 34 20 8) 8 8 'bottom)
  23. ;;; Arrows
  24. ;; Delicate, more visible but asymmetryc arrows:
  25. ;(define-fringe-bitmap 'up-arrow (vector 1 0 5 0 17 0 65 0) 8 8 'top)
  26. ;(define-fringe-bitmap 'down-arrow (vector 0 65 0 17 0 5 0 1) 8 8 'bottom)
  27. ;; Replacements for curly arrow for wrapped lines
  28. ;(define-fringe-bitmap 'left-curly-arrow (vector 5 0 5 0 0 0 0 0) 8 8 'top)
  29. ;(define-fringe-bitmap 'right-curly-arrow (vector 0 0 0 0 0 160 0 160) 8 8 'bottom)
  30. ;; Left and right arrows for truncated lines
  31. ;(define-fringe-bitmap 'right-arrow (vector 0 16 4 1 4 16 0 0) 8 8 'center)
  32. ;(define-fringe-bitmap 'left-arrow (vector 0 8 32 128 32 8 0 0) 8 8 'center)
  33. (provide 'conf-fringe)