» Binding nxml-complete in Aquamacs Emacs #

Paul R. Brown @ 2008-11-14

The folks who bundled up nXML mode for inclusion with Aquamacs Emacs did think to include the useful schemas bundled with nXML mode, e.g., for XSLT 1.0, but I can't figure out why they didn't bind nxml-complete (context-sensitive, schema-driven completion and suggestion) to a keystroke. (If memory serves, C-Return used to work.)

It's an easy fix, but I always forget just how to do it. As a reminder to myself or a hint to others, the fix is to add the following to ~/Library/Preferences/Aquamacs Emacs/:

(add-hook 'nxml-mode-hook
	  '(lambda ()
	     (define-key nxml-mode-map "\C-c\C-c"
	       'nxml-complete)))

My preference is for C-c C-c but yours may be different. In any case, that's about as blissful as editing XSLT gets.

 

← 2008-11-13 — Pseudoscorpions in the Mushrooms
→ 2008-11-19 — @Override Idiosyncrasies