We’re rewarding the question askers & reputations are being recalculated! Read more.

The variable nxml-mode-map is defined in the library nxml-mode. This library is not yet loaded when you try to execute the form (define-key nxml-mode-map "\C-c t" 'tidy-xml). Replace that line with: (eval-after-load "nxml-mode" (lambda () (define-key nxml-mode-map "\C-c t" 'tidy-xml))) That will delay the execution of the form contained in the ...

Only top voted, non community-wiki answers of a minimum length are eligible