Inasmuch as I moved xslide to GitHub (and updated it for XSLT 3.0) about 11 years ago without anybody noticing, here’s it’s ‘new’ location: https://github.com/tkg/xslide.
Emacs mode for Ant build files
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 git@github.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”
Getting started with Wisent
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”
Flymake for RELAX NG compact syntax
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 .emacs
so `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)
imenu-generic-expression
Inasmuch as `imenu-generic-expression`
makes using Emacs’ “Imenu” simpler, it’s this triennial’s “Obscure Emacs variable of the week“.
Continue reading “imenu-generic-expression”
xslide alive!
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.
X11 connection rejected because of wrong authentication
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”
Converting RNG to RNC
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”
xml-model processing instruction with nXML mode
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”
Opening EPUB in Emacs
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))