Hello all, Found out how to fix my problems, and have a working implementation. I decided it was ready to push to Github, so you can find the repo here:
https://github.com/mwfogleman/tid-mode Jeremy, I updated the docs locally to reflect this change. Here's the pull request: https://github.com/Jermolene/TiddlyWiki5/pull/581 On Tuesday, April 22, 2014 12:05:05 PM UTC+5:30, Michael Fogleman wrote: > > I just wanted to let everyone know that I have some code locally for a > tid-mode. It uses some save hooks to call this function automatically, and > also implements orgstruct, which I like to use and makes sense for > Tid-Mode. However, I've never written a mode before, and am a little stuck. > If there are any Emacs folks out there who are using TiddlyWiki, I'd love > to talk to them about how to get this running. > > On Sunday, April 6, 2014 4:37:47 PM UTC+5:30, Michael Fogleman wrote: >> >> I have been editing .tid files in Emacs, and wrote some Elisp to update >> the modified time: >> >> (defun tid-time () >> "If called in a tiddler file, this function updates the metadata to >> reflect the modification time." >> (interactive) >> (when >> (and >> (> (length (buffer-file-name)) 4) >> (string-equal (substring (buffer-file-name) -4) ".tid")) >> (save-excursion >> (goto-char (point-min)) >> (forward-line) >> (kill-line) >> (insert (format-time-string "modified: %Y%m%d%H%M%S%3N"))))) >> >> I should probably make some modifications to it, including searching for >> the "modified" in case it is not the second line. >> >> Anybody else using Emacs to edit .tid files? I haven't figured out how to >> get CodeMirror to use Emacs bindings yet. >> > -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.

