Fuco1 / justify-kp

Paragraph justification for emacs using Knuth/Plass algorithm
55 stars 7 forks source link

It looks wonderful, but how does it work? #1

Closed priyadarshan closed 8 years ago

priyadarshan commented 8 years ago

I have just found out about justify-kp, it looks like what I have been looking for so long, but how does it work?

I have cloned the repo, and require it via use-package:

(use-package justify-kp-new
  :load-path "site-lisp/justify-kp")

I can see now there is a new command, pj-justify, working on one line, but it does not seem to do anything.

I looked into justify-kp-old.el too, I can see there is pj-justify-paragraph and pj-justify-paragraph-2, but they do not seem to do anything too.

Is there anything to set first?

Thanks!

Fuco1 commented 8 years ago

There seems to be a bug in dash dependency. I pushed a fix.

All you need to do is to load justify-kp.el and call pj-justify, it will justify the line (paragraph).

priyadarshan commented 8 years ago

Wow, thank you. It does look much better that default set-justification-full. A real gem, thank you!