Inasmuch as it’s useful, when editing an Ant build file, to have a list of the targets in the file and the ability to jump to any of them, my Ant mode at email@example.com:tkg/ant-mode.git currently only does two things: make a “Ant” menu that lists all the targets and associates a RELAX NG compact syntax schema with build files. Continue reading “Emacs mode for Ant build files”
Inasmuch as I’d wanted for a long time to have an excuse to write an Emacs mode that uses a Semantic Wisent parser, I recently started writing a new mode for RELAX NG compact syntax files. The mode-in-progress is available on GitHub at https://github.com/tkg/nrnc.git, and here’s my thoughts so far on using Wisent: Continue reading “Getting started with Wisent”
Inasmuch as the Wisent parsing and other CEDET/Speedbar/Semantic goodness for RELAX NG compact syntax files that I’m currently working on may not be ready for prime time for a while, here’s something to add to your
`flymake' runs Jing in the background to find syntax errors in your RELAX NG compact syntax files:
(require 'flymake) (defun flymake-rnc-init () (let* ((temp-file (flymake-init-create-temp-buffer-copy 'flymake-create-temp-inplace)) (local-file (file-relative-name temp-file (file-name-directory buffer-file-name)))) (list "jing" (list "-c" local-file)))) (add-to-list 'flymake-allowed-file-name-masks '(".+\\.rnc$" flymake-rnc-init flymake-simple-cleanup flymake-get-real-file-name)) (add-hook 'rnc-mode-hook 'flymake-mode)
Inasmuch as you, like me, may have missed xslide’s “Template” menu when editing XSLT using Emacs’ nXML-mode, I’ve made available my “xslide2” XSLT mode for Emacs that I’ve been using for a while. This new xslide is a derived mode that uses nXML-mode for nearly everything and adds back some of the XSLT-specific parts of xslide.
Future development is happening on the Trac and Subversion for the xslide SourceForge project. See https://sourceforge.net/apps/trac/xslide/wiki/WikiStart.
Inasmuch as using a frame from Emacs running on the laptop on the larger screen of the desktop machine using
`make-frame-on-display' is one of life’s pleasures, it was less than a pleasure when it stopped working with a “ï»¿X11 connection rejected because of wrong authentication” message after an upgrade of one of the machines.
Several upgrades and much thrashing later, the solution by Gregory Grubbs at http://gregorygrubbs.com/development/get-remote-x-working-in-karmic/ works for me, and the script in the fifth comment by Ben Hyde for running emacsclient makes things even easier than I was used to. Continue reading “X11 connection rejected because of wrong authentication”
Inasmuch as the customised version of the “xmlspec” schema being used for the next version of the XSL spec is maintained in RELAX NG XML syntax (RNG) and Emacs’s nXML-mode only uses RELAX NG compact syntax (RNC), I yet again wanted to convert a schema from RNG to RNC.Â As you would expect, there’s more than one way to do it. Continue reading “Converting RNG to RNC”
Inasmuch as the
<?xml-model?> processing instruction (jointly developed by W3C and ISO/IEC JTC1/SC34) is the new, standard way to associate schemas with XML documents and I already had code for using a similar, oXygen-specific PI, it was easy to make a hook function to put in your .emacs file so nXML mode will use
<?xml-model?> to find a RNC schema: Continue reading “xml-model processing instruction with nXML mode”
Inasmuch as there’s not, yet, an EPUB reader for Emacs, you can still set up Emacs to be able to open
.epub files to see what’s inside them, since they are, after all, just ZIP files:
(setq auto-mode-alist (append (list '("\\.epub$" . archive-mode)) auto-mode-alist)) (setq auto-coding-alist (append (list '("\\.epub$" . no-conversion)) auto-coding-alist))
`fancy-splash-image’ points to the image to show when Emacs starts up. I can think of only two groups who’d need this: the Emacs maintainers and the XEmacs maintainers who’d set it to their respective logos. So naturally I customized mine: