Add ignore pattern.
Ignore KDevelop files.
Fix trailing buffer hack.