I have to sift through 6 really boring config files. To stay sane, I call in Emacs for support.
My task looks like this:
(click for full size)
In the lower left window I check the identifier in the table I have to complete (left column), then I search for all instances of that identifier in the right window and insert the instrument type, the SIGMA (uncertainty due to representation error defined for the type of the instrument and the location of the site) and note whether the site is marked as assimilated in the config file.
Then I also check all the other config files and note whether the site is assimilated there.
Drudge work. There are people who can do this kind of work. My wife would likely be able to do it faster without tool support than I can do it with tool support. But I’m really bad at that: When the task gets too boring I tend to get distracted - for example by writing this article.
To get the task done anyway, I create tools which make it more enjoyable. And with Emacs that’s actually quite easy, because Emacs provides most required tools out of the box.
Firstoff: My workflow before adding tools was like this:
xoto switch from the lower left window to the config file at the right.
M-x occurthen type the station identifier. This displays all occurances of the station identifier within the config file in the upper left window.
xotwice to switch to the lower left window again.
I now want to simplify this to a single command per line. I’ll use
F9 as key, because that isn’t yet used for other things in my Emacs setup and because it is easy to reach and my default keybinding as “useful shortcut for this file”. Other single-keystroke options would be
F8. All other F-keys are already used :)
To make this easy, I define a macro:
C-SPACEand select the whole identifier with
M-x downcase-region, copy it with
M-wand undo the downcasing with
C-x u(or use the undo key; I defined one in my xmodmap).
M-x occur, inserting the identifier with
C-x o(yes, twice) to get back into the list of sites.
M-fand kill the word with
My workflow is now reduced to this:
I’m pretty sure that this will save me more time today than I spent writing this text ☺
The European Copyright directive threatens online communication in Europe.
But thanks to massive shared action earlier this year, the European parliament can still prevent the problems. For each of the articles there are proposals which fix them. The parliamentarians (MEPs) just have to vote for them. And since they are under massive pressure from large media companies, that went as far as defaming those who took action as fake people, the MEPs need to hear your voice to know that your are real.
If you care about the future of the Internet in the EU, please Call your MEPs.