Wrapping variable width text in emacs lisp

Posted by Jonathan Arkell on Stack Overflow See other posts from Stack Overflow or by Jonathan Arkell
Published on 2008-10-31T05:41:14Z Indexed on 2010/03/09 11:51 UTC
Read the original article Hit count: 486

Filed under:
|

I am hacking up a tagging application for emacs. I have got a tag cloud/weighted list successfully displaying on a buffer, but i am running into a snag. I need to be able to properly word-wrap the buffer, but I haven't a clue where to start.

The font I am using is a variable width font. On top of that, each tag is going to be in a different size, depending on how many times it shows up on the buffer. Finally, the window that displays the tagcloud could be in a window that is 200 pixels wide, or the full screen width.

I really have no idea where to start. I tried longlines mode on the tagcloud buffer, but that didn't work.

Source code is at: http://emacswiki.org/cgi-bin/emacs/free-tagging.el

© Stack Overflow or respective owner

Related posts about emacs

Related posts about elisp