Set `bug-reference-url-formart` to "http://drupal.org/node/%s" and enable `bug-reference-prog-mode' in core files and contrib projects.