I am new on Emacs and I am working on modifying firefox interface. XUL is implemented as an XML dialect.

I just need basic syntax highlighting for XUL. I found that VIM and gedit are working out of box. If I change the file extension to .xml, it works perfectly.

Any thoughts?


I found the solution:

(setq auto-mode-alist 
  (append '((".*\\.xul\\'" . nxml-mode))
  • 4
    I suspect that should be "#.*\\.xul\\'" and nxml-mode`.
    – wasamasa
    Feb 11 '17 at 15:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.