Mark Wooding [Mon, 20 Feb 2012 10:06:45 +0000 (10:06 +0000)]
Merge branch 'master' of git://git.distorted.org.uk/~mdw/profile
* 'master' of git://git.distorted.org.uk/~mdw/profile:
dot/bash_profile: Select a sensible web browser.
Mark Wooding [Mon, 20 Feb 2012 10:05:29 +0000 (10:05 +0000)]
Improve Kermit configuration.
* Rename to mykermrc.
* Set up (currently empty) shared dialling and network directories,
and host-specific directories.
Mark Wooding [Mon, 20 Feb 2012 09:28:43 +0000 (09:28 +0000)]
dot/bash_profile: Select a sensible web browser.
Mark Wooding [Fri, 17 Feb 2012 01:23:43 +0000 (01:23 +0000)]
dot/mykermrc, bin/guest-console: Kermit configuration.
This seems the best solution to the guest-serial-comms problem.
Mark Wooding [Sat, 11 Feb 2012 20:54:50 +0000 (20:54 +0000)]
dot/bash_profile: Reorder PATH /usr/local before /usr before /.
In particular, this makes the `molly-guard' package effective. It will
also fix problems with ping(1) on chiark.
Mark Wooding [Sun, 5 Feb 2012 12:58:10 +0000 (12:58 +0000)]
dot/emacs: Fix keybinding for lemma references.
Must have been copied from the proposition line, and not fixed.
Mark Wooding [Sun, 5 Feb 2012 11:32:35 +0000 (11:32 +0000)]
dot/emacs: More hacking of AUC-TeX viewer selection: use Evince, dammit!
Mark Wooding [Tue, 31 Jan 2012 00:30:15 +0000 (00:30 +0000)]
dot/gitconfig.in: Define a plausible word-diff regexp.
Match sequences of alphanumerics and loose non-space punctuation. This
seems to give relatively good results on plain text with colour output.
Picking out differences in code might be harder, but line-based diffs
work better in such cases anyway: word diff is useful precisely because
it works well on reflowed text, and that's more likely to happen in a
text document than in code.
Mark Wooding [Mon, 30 Jan 2012 23:46:03 +0000 (23:46 +0000)]
dot/dircolors: Don't clobber background colour for dangling links.
Mark Wooding [Thu, 26 Jan 2012 10:01:18 +0000 (10:01 +0000)]
bin/mdw-build: Do parallel builds as instructed by DEB_BUILD_OPTIONS.
This wants to be set right anyway for the Debian build, and it's better
to say such things only once.
Mark Wooding [Thu, 26 Jan 2012 10:00:39 +0000 (10:00 +0000)]
dot/emacs: Fettle more modes which had previously been underfettled.
Mark Wooding [Thu, 26 Jan 2012 10:00:08 +0000 (10:00 +0000)]
dot/gitconfig: Whitespace fixing.
Mark Wooding [Thu, 26 Jan 2012 09:59:13 +0000 (09:59 +0000)]
el/dot-emacs.el: `mdw-kick-menu-bar' function.
Emacs sometimes fails to populate menus, which is annoying. This seems
to help.
Mark Wooding [Sat, 14 Jan 2012 20:00:36 +0000 (20:00 +0000)]
bin/mdw-pager: Don't intercept the pager in Emacs `ansi-term'.
It defeats the line truncation.
Mark Wooding [Sat, 14 Jan 2012 19:35:53 +0000 (19:35 +0000)]
dot/Xdefaults: Remove spurious blank line.
Right next to a blank line I actually wanted.
Mark Wooding [Wed, 11 Jan 2012 03:14:17 +0000 (03:14 +0000)]
Use Ian Jackson's `trad' versions of 6x13 for general display.
This persuades `pterm', Emacs, and traditional Xt-based programs which
read resources to use the server-side font directly, and hacks
`fontconfig' so that `MiscFixed6x13' maps to the trad version.
Mark Wooding [Mon, 9 Jan 2012 12:06:05 +0000 (12:06 +0000)]
dot/ercrc.el: Reduce the right-hand margin slightly.
This prevents Emacs's slightly over-eager word wrapping from making a
mess of stuff in the narrower windows in X frames.
Mark Wooding [Sun, 8 Jan 2012 00:14:13 +0000 (00:14 +0000)]
bin/un-backslashify-selection: Trim leading spaces in selection.
Recent Emacs configuration changes insert spaces at the beginnings of
wrapped lines in IRC, so this is necessary to strip them out again.
Mark Wooding [Sat, 7 Jan 2012 22:56:31 +0000 (22:56 +0000)]
dot/ercrc.el: Fix the indent marker to be all spaces.
Easier to strip out when capturing a selection.
Mark Wooding [Sat, 7 Jan 2012 22:52:11 +0000 (22:52 +0000)]
el/dot-emacs.el: Fix fonts for better terminal display.
Mark Wooding [Sat, 7 Jan 2012 22:33:05 +0000 (22:33 +0000)]
el/dot-emacs.el: Colour for continuation and truncation display marks.
Makes them stand out better.
Mark Wooding [Sat, 7 Jan 2012 17:15:23 +0000 (17:15 +0000)]
dot/ercrc.el: Do something more useful for long input lines.
Don't truncate; word wrap and include a distinctive prefix for wrapped
lines.
Mark Wooding [Sat, 7 Jan 2012 17:17:13 +0000 (17:17 +0000)]
dot/emacs: Truncate long lines by default.
Wrapped lines generally cause trouble and make stuff hard to read. The
right solution, given a file with lots of long lines, is either to fix
the long lines, or to view in a wider window.
Mark Wooding [Sat, 7 Jan 2012 16:18:25 +0000 (16:18 +0000)]
dot/bash_profile: Make `less' scroll, not wrap.
I find myself turning this on more or less every time I want to read a
wide thing, so it makes to make it the default.
Mark Wooding [Sat, 7 Jan 2012 16:03:27 +0000 (16:03 +0000)]
dot/emacs: Turn on `mdw-misc-mode-config' for some new modes.
Now there is whitespace highlighting in configuration files and
makefiles. I'm surprised I never did this for make.
Mark Wooding [Sat, 7 Jan 2012 16:02:41 +0000 (16:02 +0000)]
bin/mdw-build: Describing the build system conventions needed.
Mark Wooding [Sat, 7 Jan 2012 16:01:54 +0000 (16:01 +0000)]
bin/mdw-build: Accept a `.git' directory as a top-level.
Most projects are likely to have one of these, even if they don't have
anything else distinctive.
Mark Wooding [Sat, 7 Jan 2012 15:58:49 +0000 (15:58 +0000)]
bin/mdw-build: Discard `tar' errors when searching for `.../RELEASE'.
GNU `tar' reports a vague `write error' as a result of the broken pipe
caused by the following `grep' finding a successful match. This isn't
useful. In our case, we don't care about this, since either we've found
the file anyway (so we're happy) or we didn't (in which case we'll fail
anyway).
The report, which makes its way to stderr even in quiet mode, is
worrying until you learn to ignore it, at which point it may hide a more
serious problem.
Mark Wooding [Fri, 6 Jan 2012 10:54:53 +0000 (10:54 +0000)]
el/dot-emacs.el: Hack quotes in configuration files.
`conf-mode' has a convenient tweak which makes quote characters not be
special, which you invoke using C-c C-q (M-x conf-quote-normal).
Unfortunately, there's no way to force this setting for a particular
file, which means that the display is wrong until you clobber it
manually. Worse, the setting applies equally to both quote characters.
Institute a new variable for controlling whether quotes should be given
special syntax, and honour it in a hook function. This turns out to be
fiddly: read the docstrings for details.
Mark Wooding [Thu, 29 Dec 2011 18:30:19 +0000 (18:30 +0000)]
el/dot-emacs.el: Single quotes are quote-like.
Mark Wooding [Thu, 29 Dec 2011 16:45:59 +0000 (16:45 +0000)]
dot-emacs.el: Tweak diff fontification.
Turn off highlighting for header lines; more legible background for
refined diff.
Mark Wooding [Wed, 28 Dec 2011 17:53:23 +0000 (17:53 +0000)]
dot/rcrc: Add some creature comforts from dot/bashrc.
Mark Wooding [Wed, 28 Dec 2011 17:43:11 +0000 (17:43 +0000)]
dot/rcrc: Reformat in line with usual conventions.
This is `diff -b' clean.
Mark Wooding [Wed, 28 Dec 2011 17:11:43 +0000 (17:11 +0000)]
dot/bash*, dot/rcrc: Force correct shell support in Emacs.
Mark Wooding [Wed, 28 Dec 2011 17:10:11 +0000 (17:10 +0000)]
el/dot-emacs.el: Shell-mode hacking for non-Bourne shells.
This is surprisingly grim. The rc support botches fontification of
backquotes surprisingly badly. And it's really hard to force the use of
a particular shell for a given file because local variables get set
after the mode is chosen.
Mark Wooding [Wed, 28 Dec 2011 17:09:06 +0000 (17:09 +0000)]
el/dot-emacs.el: Use CPerl mode rather than Perl mode.
It's just so much better...
Mark Wooding [Sun, 18 Dec 2011 16:25:32 +0000 (16:25 +0000)]
dot/gitconfig.in: Turn on rebase.autosquash.
Mark Wooding [Sun, 18 Dec 2011 16:26:04 +0000 (16:26 +0000)]
dot/emacs: Recognize some Autoconf tokens in shebang lines.
Maybe more of these later.
Mark Wooding [Sun, 18 Dec 2011 16:24:59 +0000 (16:24 +0000)]
el/dot-emacs.el: Make `sh-mode' use `/bin/sh' rules by default.
Mark Wooding [Fri, 16 Dec 2011 10:38:01 +0000 (10:38 +0000)]
dot/emacs: Use text-mode for `.topmsg' files.
Mark Wooding [Mon, 12 Dec 2011 23:48:43 +0000 (23:48 +0000)]
bin/mdw-editor: Set TMPDIR from TMP if it's unset.
Setuid programs drop the TMPDIR environment variable. This means that
emacsclient can't find the correct socket directory if it's started via
`sudo -e', which is annoying. Fortunately, we have a copy of the
correct directory lying around, so we can use it to fix things up.
Mark Wooding [Tue, 6 Dec 2011 12:57:40 +0000 (12:57 +0000)]
setup: OpenBSD make(1) doesn't have `-C'.
Change directory the old-fashioned way.
Mark Wooding [Tue, 6 Dec 2011 10:22:32 +0000 (10:22 +0000)]
setup: Help finding locally installed libraries.
pkg-config isn't as clever as the old mLib-finding macro, so help it
out.
Mark Wooding [Mon, 5 Dec 2011 23:21:49 +0000 (23:21 +0000)]
dot/gitconfig.in: Various cosmetic tweaks.
* Use RFC822 date format rather than the default in logs.
* Decorate logs with ref names.
* New alias for drawing a convenient commit graph.
Mark Wooding [Mon, 5 Dec 2011 13:49:26 +0000 (13:49 +0000)]
dot/emacs: Different tweak for Python indent level.
There appear to be two Python modes, and I'm not sure how they get
selected.
Mark Wooding [Sat, 3 Dec 2011 14:12:18 +0000 (14:12 +0000)]
dot/emacs, el/dot-emacs.el: Javascript support
Mark Wooding [Wed, 30 Nov 2011 19:15:14 +0000 (19:15 +0000)]
dot/emacs: Trap a failure to find the `remember' package.
Mark Wooding [Wed, 30 Nov 2011 19:14:32 +0000 (19:14 +0000)]
dot/bash_profile: Move establishment of TMPDIR until after PATH is set up.
Otherwise we can't find a locally installed copy of `tmpdir'.
Mark Wooding [Sat, 25 Jun 2011 13:40:05 +0000 (14:40 +0100)]
dot/bashrc: Portability: use termcap if terminfo doesn't work.
Grumble grumble FreeBSD grumble.
Mark Wooding [Sun, 20 Nov 2011 22:41:28 +0000 (22:41 +0000)]
hacks/ssh: Trivial formatting change.
Mark Wooding [Sun, 20 Nov 2011 22:41:04 +0000 (22:41 +0000)]
el/dot-emacs.el: More Perl keywords.
Mark Wooding [Sun, 20 Nov 2011 22:38:16 +0000 (22:38 +0000)]
dot/emacs: Change email address style.
I think I lost this one. Give up.
Mark Wooding [Sun, 20 Nov 2011 13:40:31 +0000 (13:40 +0000)]
dot/gitconfig.in: Tweak email preferences.
Also rearrange the substitution mechanism. There's no point in checking
the gitignore preference if the gitignore file is tweakable anyway.
Mark Wooding [Sun, 20 Nov 2011 13:41:13 +0000 (13:41 +0000)]
dot/mc-panels.ini: More useful default.
Mark Wooding [Fri, 11 Nov 2011 17:57:13 +0000 (17:57 +0000)]
Merge remote-tracking branch 'ponder/master'
* ponder/master:
dot/emacs: Fix awful calendar snafu.
el/dot-emacs.el: Define org-mode variables to make Docbook output work.
dot/e16-bindings: New bindings for fiddling with window opacity.
Mark Wooding [Fri, 11 Nov 2011 17:56:44 +0000 (17:56 +0000)]
dot/emacs: Turn off warning about the change to message-mode.
Also reformat that settings stanza.
Mark Wooding [Fri, 11 Nov 2011 17:56:30 +0000 (17:56 +0000)]
dot/mailrc: Add some new aliases.
Mark Wooding [Fri, 11 Nov 2011 17:52:42 +0000 (17:52 +0000)]
dot/emacs: Fix awful calendar snafu.
Don't locally bind view-diary-entries-initially when showing the
calendar. If you do, then, for some reason,
calendar-view-diary-initially-flag gets unbound, and then org-mode will
get confused and introduce a variable-alias loop. This results in
Badness.
This bug took a little while to track down...
Mark Wooding [Fri, 11 Nov 2011 17:52:12 +0000 (17:52 +0000)]
el/dot-emacs.el: Define org-mode variables to make Docbook output work.
Mark Wooding [Thu, 28 Jul 2011 08:34:48 +0000 (09:34 +0100)]
dot/e16-bindings: New bindings for fiddling with window opacity.
Surprisingly useful, though E is buggy about the initial value.
Mark Wooding [Fri, 16 Sep 2011 10:56:41 +0000 (11:56 +0100)]
Merge remote-tracking branch 'crybaby'
* crybaby:
hacks/ssh: Pass the requested port to `ssh -Ocheck'.
Mark Wooding [Sat, 16 Jul 2011 13:54:49 +0000 (14:54 +0100)]
dot/ercrc.el: Actually make ERC notice when it connects to chiark.
Surprisingly, everything works out despite going through an awful SSH
tunnel lash-up.
Mark Wooding [Thu, 2 Jun 2011 22:22:22 +0000 (23:22 +0100)]
dot/lisp-init.lisp: Ignore shebang lines.
This makes it possible to load programs which were expecting to run
under CL-LAUNCH.
Mark Wooding [Sat, 9 Jul 2011 13:53:42 +0000 (14:53 +0100)]
hacks/ssh: Pass the requested port to `ssh -Ocheck'.
Otherwise it doesn't find the correct master socket.
Mark Wooding [Sat, 9 Jul 2011 12:32:39 +0000 (13:32 +0100)]
hacks/ssh: Redirect the master's output and error.
Otherwise it inherits our streams, and something waiting from EOF from
us will become seriously disappointed. It's not like the master has
anything especially interesting to say on stdout anyway. The error
stream is captured into a logfile for later perusal.
Just stdout wasn't enough.
Mark Wooding [Sat, 9 Jul 2011 13:24:03 +0000 (14:24 +0100)]
dot/mailrc: Some minor tweaks for use with GNU Mailutils.
Mark Wooding [Mon, 4 Jul 2011 00:30:16 +0000 (01:30 +0100)]
el/dot-emacs.el: Distinctive highlighting for ellipses.
Now I can tell whether Emacs is hiding something or I actually typed a
bunch of dots...
Mark Wooding [Sat, 25 Jun 2011 13:25:49 +0000 (14:25 +0100)]
Merge remote-tracking branches 'distorted/master' and 'ponder/master'
* distorted/master:
bin/mdw-conf, dot/bashrc, setup: Portability fixes.
* ponder/master:
dot/lisp-init.lisp: Make sure that ASDF is available.
Mark Wooding [Sat, 25 Jun 2011 13:21:58 +0000 (14:21 +0100)]
bin/mdw-conf, dot/bashrc, setup: Portability fixes.
Mark Wooding [Thu, 23 Jun 2011 10:13:25 +0000 (11:13 +0100)]
dot/lisp-init.lisp: Make sure that ASDF is available.
The Debian Lisp packaging isn't providing ASDF by default any more, so
we must do it ourselves.
Mark Wooding [Thu, 23 Jun 2011 08:17:09 +0000 (09:17 +0100)]
dot/tclshrc: Tcl configuration.
Currently just readline.
Mark Wooding [Tue, 7 Jun 2011 11:01:14 +0000 (12:01 +0100)]
mdw.conf: Use `sudo' instead of `become'.
It's more standard, and `rdist' is less annoying than fiddling with key
distribution.
Mark Wooding [Tue, 7 Jun 2011 10:58:10 +0000 (11:58 +0100)]
bin/mdw-build: Update archive location.
Mark Wooding [Sun, 5 Jun 2011 10:47:36 +0000 (11:47 +0100)]
Merge branch 'master' of vampire:etc/profile
* 'master' of vampire:etc/profile:
dot/xinitrc: Shut down the Gnome session properly on exit.
dot/xinitrc: Fiddle with window manager selection.
dot/xinitrc: Run an early user hook script.
setup: Modify URL for the FTP repository.
mdw.conf: Use rôle address for the default web cache.
dot/bash_profile: Use `kbd_mode' to check for UTF-8 console.
bin/sendmail-hack: Grim hack for Emacs to invoke sendmail.
Mark Wooding [Sun, 5 Jun 2011 10:47:18 +0000 (11:47 +0100)]
dot/emacs: Fix the tramp hacking from last time.
Seems that I botched it a bit and it tried to proxy local `sudo'
connections via SSH. Seems better now.
Mark Wooding [Sun, 5 Jun 2011 01:44:21 +0000 (02:44 +0100)]
Merge remote-tracking branch 'crybaby'
* crybaby:
dot/emacs: Tramp hacking: use `sudo', and set up magic proxies.
Mark Wooding [Sun, 5 Jun 2011 01:43:48 +0000 (02:43 +0100)]
dot/emacs: Tramp hacking: use `sudo', and set up magic proxies.
Mark Wooding [Sat, 4 Jun 2011 13:22:57 +0000 (14:22 +0100)]
Merge remote-tracking branch 'crybaby'
* crybaby:
dot/bashrc: Fix `rootly' to make a shell on demand.
dot/emacs: Use `sudo' for local editing.
Gnome hacking: Introduce a custom session file.
Mark Wooding [Sat, 4 Jun 2011 13:15:22 +0000 (14:15 +0100)]
dot/bashrc: Fix `rootly' to make a shell on demand.
Annoyingly, `sudo' doesn't start a shell if you don't give it a command
to run. So turn `rootly' into a shell function which does the right
thing for me.
Mark Wooding [Sat, 4 Jun 2011 12:57:27 +0000 (13:57 +0100)]
dot/emacs: Use `sudo' for local editing.
Mark Wooding [Sat, 14 May 2011 13:21:36 +0000 (14:21 +0100)]
Gnome hacking: Introduce a custom session file.
The morons behind Gnome have decided that everyone must have a window
manager, and can't understand that someone might have started one up
already. As a result, they flail about trying to start the abortion
known as Metacity, which immediately exits because E already has the
magic selection.
Kill this absurd behaviour.
Mark Wooding [Thu, 2 Jun 2011 15:00:20 +0000 (16:00 +0100)]
dot/xinitrc: Shut down the Gnome session properly on exit.
This seems kinder to the various random Gnomey bits of desktop. I was
hoping that it would persuade Tracker to leave its databases in a good
state, but that doesn't seem to happen. Oh, well.
Mark Wooding [Thu, 2 Jun 2011 14:58:55 +0000 (15:58 +0100)]
dot/xinitrc: Fiddle with window manager selection.
The name `enlightenment' is used by E17, which I definitely don't prefer
to E16 right now. Compiz seems plausible, though not all of the eye
candy necessarily works on every server.
Mark Wooding [Thu, 2 Jun 2011 14:57:38 +0000 (15:57 +0100)]
dot/xinitrc: Run an early user hook script.
I need this on ponder to set the screen resolution. In particular, then,
it must be earlier than the xscsize(1) call.
Mark Wooding [Sun, 15 May 2011 11:38:45 +0000 (12:38 +0100)]
Merge branch 'master' of vampire:~mdw/etc/profile
* 'master' of vampire:~mdw/etc/profile:
dot/bash*: Reformat.
mc: Store configuration and arrange for linkage.
Mark Wooding [Sun, 15 May 2011 11:38:14 +0000 (12:38 +0100)]
setup: Modify URL for the FTP repository.
Mark Wooding [Sun, 15 May 2011 11:37:38 +0000 (12:37 +0100)]
mdw.conf: Use rôle address for the default web cache.
Mark Wooding [Sun, 15 May 2011 11:35:09 +0000 (12:35 +0100)]
Merge remote-tracking branch 'crybaby'
* crybaby:
dot/bash*: Reformat.
mc: Store configuration and arrange for linkage.
Mark Wooding [Fri, 13 May 2011 19:59:06 +0000 (20:59 +0100)]
dot/bash_profile: Use `kbd_mode' to check for UTF-8 console.
Unfortunately, `vt-is-UTF8' isn't always available.
Mark Wooding [Sun, 8 May 2011 19:14:02 +0000 (20:14 +0100)]
dot/bash*: Reformat.
Some other changes:
* Remove the NC_SITES setting, which is only relevant to nCipher: it
should end up in a local tweak.
* Drop the MANPATH setting, because it wasn't working anyway. We can
resurrect that later if we need to.
Mark Wooding [Sun, 8 May 2011 18:21:31 +0000 (19:21 +0100)]
mc: Store configuration and arrange for linkage.
Mark Wooding [Wed, 27 Apr 2011 09:38:10 +0000 (10:38 +0100)]
bin/sendmail-hack: Grim hack for Emacs to invoke sendmail.
Emacs gets upset by the LD_PRELOAD warning, issued because sendmail
(actually qmail-send in my case) is setuid.
Mark Wooding [Wed, 27 Apr 2011 00:52:41 +0000 (01:52 +0100)]
dot/emacs: Persuade Message to use sendmail.
For some reason I caught it trying to do something daft with Chrome.
Mark Wooding [Wed, 27 Apr 2011 00:51:32 +0000 (01:51 +0100)]
Merge branch 'master' of vampire:etc/profile
* 'master' of vampire:etc/profile:
dot/ditz-config: Configuration for `ditz' bug tracker.
el/dot-emacs.el: Load ERC configuration in advance.
hacks/ssh: Add new hack for setting up background SSH master connections.
bin/svnwrap: Fix unjustifiably stupid error.
dot/ercrc.el: Common configuration for ERC.
Mark Wooding [Thu, 10 Mar 2011 16:59:21 +0000 (16:59 +0000)]
dot/ditz-config: Configuration for `ditz' bug tracker.
Mark Wooding [Mon, 20 Dec 2010 14:16:28 +0000 (14:16 +0000)]
el/dot-emacs.el: Load ERC configuration in advance.
Mark Wooding [Sun, 19 Dec 2010 03:14:17 +0000 (03:14 +0000)]
hacks/ssh: Add new hack for setting up background SSH master connections.
I don't really know why SSH doesn't do this by default; but it damned
well ought to.
Mark Wooding [Sun, 19 Dec 2010 03:13:33 +0000 (03:13 +0000)]
bin/svnwrap: Fix unjustifiably stupid error.
Mark Wooding [Sun, 19 Dec 2010 03:13:01 +0000 (03:13 +0000)]
dot/ercrc.el: Common configuration for ERC.
Mark Wooding [Tue, 14 Dec 2010 15:37:43 +0000 (15:37 +0000)]
Merge branch 'master' of metalzone:etc/profile
* 'master' of metalzone:etc/profile:
el/dot-emacs.el: New command for SSH terminal buffers.
dot/emacs, el/Makefile: Random fixes from vampire.