... in addition to the arguments in the aforementioned link, this is wrong because it is executed for every buffer while it is enough to do it just once whenMessage 1 of 2 , Sep 11View Source
> * Dave Pawson <qnir.cnjfba@...> [2013-09-11 14:03:02 +0100]:in addition to the arguments in the aforementioned link, this is wrong
> Most / all mine are done this way
> (add-hook 'nxml-mode-hook
> (function (lambda ()
> (define-key nxml-mode-map [f5] 'sgml-comment)
because it is executed for every buffer while it is enough to do it just
once when nxml is loaded.
TRT is to use eval-after-load, not mode-hook.
Sam Steingold (http://sds.podval.org/) on Ubuntu 13.04 (raring) X 11.0.11303000
http://www.childpsy.net/ http://pmw.org.il http://thereligionofpeace.com
http://ffii.org http://americancensorship.org http://truepeace.org
A computer scientist is someone who fixes things that aren't broken.