chiark / gitweb /
profile
5 years agoMerge branch 'master' into fairchild fairchild
Mark Wooding [Wed, 30 May 2018 14:56:12 +0000 (15:56 +0100)]
Merge branch 'master' into fairchild

* master: (21 commits)
  dot/ipython-key-bindings.py: Fix because IPython is now (fr)agile.
  dot/zshrc: Fix path ellipsization in the prompt.
  dot/emacs-calc: Add peta- and exa- prefixes for bits and bytes.
  el/dot-emacs.el: Add a useful `w3m' binding to open links in new tabs.
  dot/gitconfig.in: Don't have `git send-email' try to do threading.
  dot/gitconfig.in: Abolish the `git email' alias.
  dot/gitconfig.in: Remove output filename; force full indices.
  git/gitignore: Ignore toplevel `p/' and `p.*/' directories.
  git/gitignore: Only ignore `build' etc. if they're toplevel directories.
  git/gitignore: Deprecate `deb-build/' and `build-*/' directories.
  dot/gitconfig.in: Configure `format-patch' to do sensible things.
  el/dot-emacs.el: Override git's use of a pager more vigorously.
  dot/zshrc: Don't have `typeset -x' implicitly make variables global.
  el/dot-emacs.el: Suppress `/dev/null' filename when running `git grep'.
  dot/zshrc: Recognize the keypad keys.
  dot/zshrc: Commentary for running `~/.zshrc-local'.
  dot/zshrc: Interpret `**' to cover files too, where sensible.
  dot/zshrc: Include parser content in the second-level prompt.
  dot/shell-rc: Add a hook for shell-specific `PS2' customization.
  dot/shell-rc: Don't expand `TERM' or `INSIDE_EMACS' if they're not defined.
  ...

5 years agodot/ipython-key-bindings.py: Fix because IPython is now (fr)agile.
Mark Wooding [Wed, 30 May 2018 14:55:03 +0000 (15:55 +0100)]
dot/ipython-key-bindings.py: Fix because IPython is now (fr)agile.

5 years agodot/zshrc: Fix path ellipsization in the prompt.
Mark Wooding [Wed, 23 May 2018 13:42:22 +0000 (14:42 +0100)]
dot/zshrc: Fix path ellipsization in the prompt.

At exactly six directories down, the ellipsization kicked in and
inserted a pointless `/.../' ellipsis which didn't actually replace a
segment of the real path.  Fix this by leaving one fewer step on
the right when ellipsizing.

Also, `ellipsize' is a horrid word.

5 years agodot/emacs-calc: Add peta- and exa- prefixes for bits and bytes.
Mark Wooding [Wed, 23 May 2018 13:41:49 +0000 (14:41 +0100)]
dot/emacs-calc: Add peta- and exa- prefixes for bits and bytes.

5 years agoMerge remote-tracking branch 'staging'
Mark Wooding [Sun, 20 May 2018 19:22:16 +0000 (20:22 +0100)]
Merge remote-tracking branch 'staging'

* staging:
  dot/gitconfig.in: Don't have `git send-email' try to do threading.
  dot/gitconfig.in: Abolish the `git email' alias.
  dot/gitconfig.in: Remove output filename; force full indices.
  git/gitignore: Ignore toplevel `p/' and `p.*/' directories.
  git/gitignore: Only ignore `build' etc. if they're toplevel directories.
  git/gitignore: Deprecate `deb-build/' and `build-*/' directories.
  dot/gitconfig.in: Configure `format-patch' to do sensible things.

5 years agoel/dot-emacs.el: Add a useful `w3m' binding to open links in new tabs.
Mark Wooding [Sun, 20 May 2018 19:21:38 +0000 (20:21 +0100)]
el/dot-emacs.el: Add a useful `w3m' binding to open links in new tabs.

There are bindings for this, but they're awful.

5 years agodot/gitconfig.in: Don't have `git send-email' try to do threading.
Mark Wooding [Sun, 20 May 2018 19:15:44 +0000 (20:15 +0100)]
dot/gitconfig.in: Don't have `git send-email' try to do threading.

I've already arranged for `git format-patch' to do that.

5 years agodot/gitconfig.in: Abolish the `git email' alias.
Mark Wooding [Sun, 20 May 2018 19:15:12 +0000 (20:15 +0100)]
dot/gitconfig.in: Abolish the `git email' alias.

`git send-email' is enough of a footgun already.

5 years agodot/gitconfig.in: Remove output filename; force full indices.
Mark Wooding [Sun, 20 May 2018 19:13:28 +0000 (20:13 +0100)]
dot/gitconfig.in: Remove output filename; force full indices.

The output filename can't be overridden because Git is too picky.  There
doesn't seem to be a different way to force full-length hashes in diff
indices.

5 years agogit/gitignore: Ignore toplevel `p/' and `p.*/' directories.
Mark Wooding [Tue, 15 May 2018 13:44:55 +0000 (14:44 +0100)]
git/gitignore: Ignore toplevel `p/' and `p.*/' directories.

They're for patchbombs intended to go upstream.

5 years agogit/gitignore: Only ignore `build' etc. if they're toplevel directories.
Mark Wooding [Tue, 15 May 2018 13:44:34 +0000 (14:44 +0100)]
git/gitignore: Only ignore `build' etc. if they're toplevel directories.

5 years agogit/gitignore: Deprecate `deb-build/' and `build-*/' directories.
Mark Wooding [Tue, 15 May 2018 13:42:31 +0000 (14:42 +0100)]
git/gitignore: Deprecate `deb-build/' and `build-*/' directories.

My usual `debian/rules' arrangements use `debian/build' for this.
Otherwise, I should use `build.debian' or similar.

5 years agodot/gitconfig.in: Configure `format-patch' to do sensible things.
Mark Wooding [Mon, 14 May 2018 17:22:13 +0000 (18:22 +0100)]
dot/gitconfig.in: Configure `format-patch' to do sensible things.

At some point I need a mailing script, but I don't have one yet.

5 years agoel/dot-emacs.el: Override git's use of a pager more vigorously.
Mark Wooding [Sat, 12 May 2018 18:03:57 +0000 (19:03 +0100)]
el/dot-emacs.el: Override git's use of a pager more vigorously.

5 years agodot/zshrc: Don't have `typeset -x' implicitly make variables global.
Mark Wooding [Sat, 12 May 2018 17:31:24 +0000 (18:31 +0100)]
dot/zshrc: Don't have `typeset -x' implicitly make variables global.

This is compatibility cruft which isn't consistent with the way the rest
of the shell works.

5 years agoel/dot-emacs.el: Suppress `/dev/null' filename when running `git grep'.
Mark Wooding [Sat, 12 May 2018 09:30:05 +0000 (10:30 +0100)]
el/dot-emacs.el: Suppress `/dev/null' filename when running `git grep'.

Yay.  It works again.

5 years agodot/zshrc: Recognize the keypad keys.
Mark Wooding [Fri, 11 May 2018 19:17:48 +0000 (20:17 +0100)]
dot/zshrc: Recognize the keypad keys.

There's an unfortunate interaction between the Debian `/etc/zsh/zshrc'
file (setting application mode) and pterm(1) which causes zsh to get the
same escape sequences from the keypad regardless of the num-lock state.
I think I can live with this.

Also, sneakily, make the home/end keys actually work.

5 years agodot/zshrc: Commentary for running `~/.zshrc-local'.
Mark Wooding [Tue, 8 May 2018 16:06:52 +0000 (17:06 +0100)]
dot/zshrc: Commentary for running `~/.zshrc-local'.

5 years agodot/zshrc: Interpret `**' to cover files too, where sensible.
Mark Wooding [Fri, 11 May 2018 19:17:20 +0000 (20:17 +0100)]
dot/zshrc: Interpret `**' to cover files too, where sensible.

5 years agodot/zshrc: Include parser content in the second-level prompt.
Mark Wooding [Fri, 11 May 2018 19:16:47 +0000 (20:16 +0100)]
dot/zshrc: Include parser content in the second-level prompt.

5 years agodot/shell-rc: Add a hook for shell-specific `PS2' customization.
Mark Wooding [Fri, 11 May 2018 19:14:23 +0000 (20:14 +0100)]
dot/shell-rc: Add a hook for shell-specific `PS2' customization.

5 years agodot/shell-rc: Don't expand `TERM' or `INSIDE_EMACS' if they're not defined.
Mark Wooding [Fri, 11 May 2018 19:15:36 +0000 (20:15 +0100)]
dot/shell-rc: Don't expand `TERM' or `INSIDE_EMACS' if they're not defined.

5 years agodot/bashrc: Fix forcing history-expansion on.
Mark Wooding [Wed, 2 May 2018 12:42:12 +0000 (13:42 +0100)]
dot/bashrc: Fix forcing history-expansion on.

It's done through `set -o' instead of `shopt' and these are different
because... umm...

At least zsh gets this right.

5 years agoMerge branch 'master' into fairchild
Mark Wooding [Thu, 10 May 2018 15:32:34 +0000 (16:32 +0100)]
Merge branch 'master' into fairchild

* master:
  dot/zshrc: Some other tweaks.
  dot/zshrc: Use `hist_ignore_space' instead of the `zshaddhistory' hack.
  dot/bashrc, dot/zshrc: Turn on `!' expansion explicitly.

5 years agoMerge branch 'master' of git.distorted.org.uk:~mdw/publish/public-git/profile
Mark Wooding [Thu, 10 May 2018 15:31:52 +0000 (16:31 +0100)]
Merge branch 'master' of git.distorted.org.uk:~mdw/publish/public-git/profile

* 'master' of git.distorted.org.uk:~mdw/publish/public-git/profile:
  dot/zshrc: Some other tweaks.
  dot/zshrc: Use `hist_ignore_space' instead of the `zshaddhistory' hack.
  dot/bashrc, dot/zshrc: Turn on `!' expansion explicitly.

5 years agodot/gitconfig.in: Suppress the log filtering, because it doesn't work here.
Mark Wooding [Thu, 10 May 2018 15:31:00 +0000 (16:31 +0100)]
dot/gitconfig.in: Suppress the log filtering, because it doesn't work here.

5 years agoMakefile: Only take the last line from Emacs when discovering the version.
Mark Wooding [Thu, 10 May 2018 15:28:22 +0000 (16:28 +0100)]
Makefile: Only take the last line from Emacs when discovering the version.

It turns out that some Emacsen spew huge screeds of crud while they're
starting up, even if you ask them not to run all of the site
congiguration cruft.

5 years agodot/zshrc: Some other tweaks.
Mark Wooding [Wed, 2 May 2018 12:44:28 +0000 (13:44 +0100)]
dot/zshrc: Some other tweaks.

  * Explicitly turn on the feature where multiple input or output
    redirections can be applied to the same command.  (I think this is
    on by default, but I've decided that I definitely want it.)

  * Turn on rc(1)-style distributiveness of concatenation over lists.

5 years agodot/zshrc: Use `hist_ignore_space' instead of the `zshaddhistory' hack.
Mark Wooding [Wed, 2 May 2018 12:43:25 +0000 (13:43 +0100)]
dot/zshrc: Use `hist_ignore_space' instead of the `zshaddhistory' hack.

I think the behaviour -- retaining the command only for the next line --
is better.

5 years agodot/bashrc, dot/zshrc: Turn on `!' expansion explicitly.
Mark Wooding [Wed, 2 May 2018 12:42:12 +0000 (13:42 +0100)]
dot/bashrc, dot/zshrc: Turn on `!' expansion explicitly.

I like it, but others don't.  In particular, Debian #897422 seeks to
turn it off in Bash by default.  I don't actually object to this, but
it's good to be prepared.

5 years agobin/start-ssh-agent: Be more careful about keeping the agent alive.
Mark Wooding [Mon, 7 May 2018 10:23:13 +0000 (11:23 +0100)]
bin/start-ssh-agent: Be more careful about keeping the agent alive.

Try to split it off into a new session to prevent it getting `SIGHUP'.

5 years agoMakefile: Introduce an option to hack a prefix onto shebang lines.
Mark Wooding [Fri, 4 May 2018 23:49:59 +0000 (00:49 +0100)]
Makefile: Introduce an option to hack a prefix onto shebang lines.

The `Termux' distribution lives in a subdirectory of the weird Android
filesystem.  Rather than symlinking scripts into `~/bin', copy them and
hack the shebang lines so that they can still find their interpreters
properly.

5 years agoMakefile, dot/rcrc: Hack rc(1) profile for Plan 9 compatibility.
Mark Wooding [Thu, 3 May 2018 12:47:21 +0000 (13:47 +0100)]
Makefile, dot/rcrc: Hack rc(1) profile for Plan 9 compatibility.

Annoyingly, the native-Linux rc(1) port doesn't accept the same syntax
as Plan 9 From User Space.

  * Plan 9 requires braces around command substitutions, so `{hostname}
    rather than `hostname.

  * Plan 9 doesn't have here-strings, so use echo instead.

  * Plan 9 is pickier about concatenating unset variables, so set them
    empty explicitly.

  * Plan 9 has a bizarre `if not' syntax rather than allowing `else'
    clauses.

This last is the most annoying difference, since the only thing
acceptable to both implementations is to repeat the condition.

Prefer the Plan 9 version throughout, and seddery the script to make the
native port version.  Fortunately they end up in different places;
otherwise we'd be really stuffed.

5 years agodot/gnus.el: Add dummy root for loose threads.
Mark Wooding [Thu, 3 May 2018 12:32:06 +0000 (13:32 +0100)]
dot/gnus.el: Add dummy root for loose threads.

Gnus has a long-standing bug with `%B'-ish tree views and loose threads:
subsequent article trees are attached to the last article in the
previous tree, rather than to the original root, resulting in the tree
display marching off the right-hand side of the screen.

This doesn't seem to happen with the `dummy' strategy, which introduces
somewhat ugly false root nodes, but is otherwise fine.

5 years agodot/profile, mdw.conf: The proper spelling is `.UTF-8'.
Mark Wooding [Mon, 30 Apr 2018 16:54:37 +0000 (17:54 +0100)]
dot/profile, mdw.conf: The proper spelling is `.UTF-8'.

About time I fixed this, really.

5 years agodot/profile: Bodge to preserve `LANG' across SSH.
Mark Wooding [Mon, 30 Apr 2018 16:51:57 +0000 (17:51 +0100)]
dot/profile: Bodge to preserve `LANG' across SSH.

This is Debian #392856, OpenSSH upstream #1346.  Retain our chosen
`LANG' in another variable `LC_MDWSSHLANG', and reset the former from
the latter if it exists.  The bizarre name helps with transmitting our
new variable through SSH connections and suchlike which might have
random limitations on environment variables.

6 years agodot/Xdefaults: Make the XTerm cursor be red and blinky.
Mark Wooding [Fri, 27 Apr 2018 11:45:53 +0000 (12:45 +0100)]
dot/Xdefaults: Make the XTerm cursor be red and blinky.

6 years agoMakefile: Automatically refresh the X resources when they're changed.
Mark Wooding [Fri, 27 Apr 2018 11:43:27 +0000 (12:43 +0100)]
Makefile: Automatically refresh the X resources when they're changed.

6 years agoMakefile: Attach hooks to the main rules, for custom post-processing.
Mark Wooding [Fri, 27 Apr 2018 11:42:59 +0000 (12:42 +0100)]
Makefile: Attach hooks to the main rules, for custom post-processing.

6 years agodot/profile: Persuade Gtk and QT programs to use X compose sequences.
Mark Wooding [Fri, 27 Apr 2018 10:17:46 +0000 (11:17 +0100)]
dot/profile: Persuade Gtk and QT programs to use X compose sequences.

Without this, apparently, they use (different!) built-in hardwired
mappings.  This is crazy.  The XIM sequences are user-editable and
everything.

6 years agodot/profile: New preferred place for Plan 9 is `/opt/plan9'. chiark/master
Mark Wooding [Wed, 11 Apr 2018 10:12:12 +0000 (11:12 +0100)]
dot/profile: New preferred place for Plan 9 is `/opt/plan9'.

6 years agodot/emacs: Add some more Magit bindings. staging/master
Mark Wooding [Fri, 23 Mar 2018 10:29:21 +0000 (10:29 +0000)]
dot/emacs: Add some more Magit bindings.

`M-x magit-find-file' is awesome.

6 years agodot/emacs: Order the Magit keybindings by keystroke.
Mark Wooding [Fri, 23 Mar 2018 10:28:56 +0000 (10:28 +0000)]
dot/emacs: Order the Magit keybindings by keystroke.

6 years agodot/shell-rc: Only deploy the trivial prompt if not directly under Emacs.
Mark Wooding [Fri, 23 Mar 2018 10:27:13 +0000 (10:27 +0000)]
dot/shell-rc: Only deploy the trivial prompt if not directly under Emacs.

This lets TRAMP keep working -- which was the point of this hack --
without defeating complex prompts in Emacs `M-x shell' and similar.

6 years agodot/emacs-calc: Prefer lowercase `k' for kilobytes and kilobits.
Mark Wooding [Thu, 15 Mar 2018 21:01:51 +0000 (21:01 +0000)]
dot/emacs-calc: Prefer lowercase `k' for kilobytes and kilobits.

Include both for sanity's sake.

6 years agodot/emacs: Add a keybinding for `mdw-set-frame-width'.
Mark Wooding [Fri, 9 Mar 2018 00:16:06 +0000 (00:16 +0000)]
dot/emacs: Add a keybinding for `mdw-set-frame-width'.

6 years agodot/ipython-config.py: Hedge against the necessary modules not being there.
Mark Wooding [Fri, 9 Mar 2018 00:15:41 +0000 (00:15 +0000)]
dot/ipython-config.py: Hedge against the necessary modules not being there.

6 years agoel/dot-emacs.el: Abstract out the frame column-width logic.
Mark Wooding [Fri, 9 Mar 2018 00:14:49 +0000 (00:14 +0000)]
el/dot-emacs.el: Abstract out the frame column-width logic.

Now shared between `mdw-divvy-window' and `mdw-set-frame-width'.

6 years agodot/emacs: Add molly-guard against quitting long-term Emacsen.
Mark Wooding [Wed, 7 Mar 2018 18:35:21 +0000 (18:35 +0000)]
dot/emacs: Add molly-guard against quitting long-term Emacsen.

6 years agodot/inputrc: Wow, readline can do bracketd-paste.
Mark Wooding [Wed, 7 Mar 2018 18:35:00 +0000 (18:35 +0000)]
dot/inputrc: Wow, readline can do bracketd-paste.

6 years agodot/emacs: Inhibit autoresponses from Exchange.
Mark Wooding [Tue, 27 Feb 2018 12:31:35 +0000 (12:31 +0000)]
dot/emacs: Inhibit autoresponses from Exchange.

See https://msdn.microsoft.com/en-us/library/ee219609(v=exchg.80).aspx
for the details.  For now, inhibit delivery reports, read and non-read
notifications, and out-of-office notifications.

And there was much rejoicing.

6 years agodot/emacs: Fix paragraph comment style.
Mark Wooding [Tue, 27 Feb 2018 12:30:39 +0000 (12:30 +0000)]
dot/emacs: Fix paragraph comment style.

This one stayed for a long time.

6 years agodot/gitconfig.in: Follow files in `git log' automatically.
Mark Wooding [Wed, 24 Jan 2018 11:23:42 +0000 (11:23 +0000)]
dot/gitconfig.in: Follow files in `git log' automatically.

Why wouldn't you want this?

6 years agodot/mykermrc.in: Add a macro for talking to an Arduino-ish USB monitor port.
Mark Wooding [Wed, 24 Jan 2018 11:22:53 +0000 (11:22 +0000)]
dot/mykermrc.in: Add a macro for talking to an Arduino-ish USB monitor port.

Such things have rather transient serial devices which need to be
reopened every time.

6 years agoMakefile: Collect the correct dependencies for `DOTSUBST' files.
Mark Wooding [Wed, 24 Jan 2018 11:22:10 +0000 (11:22 +0000)]
Makefile: Collect the correct dependencies for `DOTSUBST' files.

6 years agobin/play-rawk: Import Tk hack for listening to my DisOrder Rawk stream.
Mark Wooding [Wed, 29 Nov 2017 20:21:58 +0000 (20:21 +0000)]
bin/play-rawk: Import Tk hack for listening to my DisOrder Rawk stream.

6 years agobin/un-backslashify-selection: Fix for newer `pterm'.
Mark Wooding [Wed, 29 Nov 2017 14:42:41 +0000 (14:42 +0000)]
bin/un-backslashify-selection: Fix for newer `pterm'.

It seems that `pterm' is trying to be more intelligent about newline
handling.  The result is that when you select a number of lines in an
Emacs ERC buffer, sometimes the final `\' of a line isn't actually
followed by a newline.

Tweak the seddery to cope with this.  In particular, zap spaces
following a `\' along with the `\' itself.

6 years agoel/dot-emacs.el: Hack Gnus to cope with IMAP literals properly.
Mark Wooding [Wed, 22 Nov 2017 18:57:45 +0000 (18:57 +0000)]
el/dot-emacs.el: Hack Gnus to cope with IMAP literals properly.

The bug manifests when Dovecot encounters a MIME-part header of the form

Content-Description:
BLAH...

Gnus requests `BODYSTRUCTURE' as part of its `FETCH' command.  In the
specific case shown above, Dovecot encodes the description using IMAP
`literal' quoting, as

{LEN}

BLAH...

(The first newline is part of the literal syntax; and the second is part
of the header data.  Actually, the first newline is an IETF-style
carriage-return/line-feed pair, and the second is a bare linefeed, but
that doesn't matter here.)

Gnus has a loop which converts such strings into plain double-quoted
strings, but it can't cope with two consecutive such strings.
Specifically, it ends up with

... " BLAH"| {LEN} ...

with point at the `|', but expects to find at least two characters
before the next `{LEN}'.  Hacky fix: move back by one place before
resuming the search.

Much worse is the need to include the entire function here so that I can
patch it just a little.

6 years agoel/dot-emacs.el: Hack Org mode package list.
Mark Wooding [Wed, 22 Nov 2017 18:57:13 +0000 (18:57 +0000)]
el/dot-emacs.el: Hack Org mode package list.

Specifically, remove `amsmath', because it plays badly with my standard
load-out.

6 years agoel/dot-emacs.el: Register `strayman' with newer-style Org mode.
Mark Wooding [Wed, 22 Nov 2017 18:56:08 +0000 (18:56 +0000)]
el/dot-emacs.el: Register `strayman' with newer-style Org mode.

The list of classes has changed name (grrr...), though fortunately the
data structure hasn't changed.

6 years agoel/dot-emacs.el: Remove `fontenc' from the `strayman' preamble.
Mark Wooding [Wed, 22 Nov 2017 18:55:02 +0000 (18:55 +0000)]
el/dot-emacs.el: Remove `fontenc' from the `strayman' preamble.

It's part of Org mode's default list anyway.

6 years agoel/dot-emacs.el: Fix bogus indentation.
Mark Wooding [Wed, 22 Nov 2017 18:53:59 +0000 (18:53 +0000)]
el/dot-emacs.el: Fix bogus indentation.

6 years agodot/emacs, dot/profile, el/dot-emacs.el: Moving back to Chromium.
Mark Wooding [Tue, 21 Nov 2017 14:21:44 +0000 (14:21 +0000)]
dot/emacs, dot/profile, el/dot-emacs.el: Moving back to Chromium.

Firefox is annoyingly slow.  Also, it's abolishing its old addon API, so
its rich ecosystem of powerful extensions, which was its main advantage,
is doing to disappear.  Chromium has become slightly less infuriating in
the meantime.

6 years agodot/zshrc: Inhibit line editing when terminal is `dumb'.
Mark Wooding [Thu, 16 Nov 2017 12:29:35 +0000 (12:29 +0000)]
dot/zshrc: Inhibit line editing when terminal is `dumb'.

6 years agodot/shell-rc: If terminal is `dumb' then use vanilla prompts.
Mark Wooding [Thu, 16 Nov 2017 12:25:12 +0000 (12:25 +0000)]
dot/shell-rc: If terminal is `dumb' then use vanilla prompts.

This avoids confusing Emacs's `TRAMP' facility.

6 years agodot/zshrc: Fix behaviour of M-l.
Mark Wooding [Thu, 16 Nov 2017 12:24:45 +0000 (12:24 +0000)]
dot/zshrc: Fix behaviour of M-l.

6 years agodot/gtk3-settings.ini: Inhibit ridiculous fine-tuning scrollbar behaviour.
Mark Wooding [Thu, 16 Nov 2017 12:24:02 +0000 (12:24 +0000)]
dot/gtk3-settings.ini: Inhibit ridiculous fine-tuning scrollbar behaviour.

This is a horrid kludge.

6 years agodot/emacs: Fix the integration of MuPDF.
Mark Wooding [Mon, 9 Oct 2017 11:27:38 +0000 (12:27 +0100)]
dot/emacs: Fix the integration of MuPDF.

6 years agoel/dot-emacs.el: Fix AUCTeX filling.
Mark Wooding [Mon, 9 Oct 2017 11:26:45 +0000 (12:26 +0100)]
el/dot-emacs.el: Fix AUCTeX filling.

Don't insert random spaces after comment delimiters.  Don't try to keep
equations on a single line.

6 years agoel/dot-emacs.el: Use advice to hack the fill prefix.
Mark Wooding [Mon, 9 Oct 2017 11:25:52 +0000 (12:25 +0100)]
el/dot-emacs.el: Use advice to hack the fill prefix.

The old thing with `fset' was awful, and presumably dates back to before
I knew about advice.

6 years agoel/dot-emacs.el: Fix incorrect indentation.
Mark Wooding [Mon, 9 Oct 2017 11:23:31 +0000 (12:23 +0100)]
el/dot-emacs.el: Fix incorrect indentation.

No idea how this ended up wrong.  Whitespace changes only.

6 years agoel/dot-emacs.el: Twiddle Magit blame heading faces.
Mark Wooding [Mon, 2 Oct 2017 11:48:07 +0000 (12:48 +0100)]
el/dot-emacs.el: Twiddle Magit blame heading faces.

Firstly, don't pick up face weight and slant from the surrounding text.
Secondly, highlight the parts of the heading in different ways.

6 years agodot/emacs: Don't override background colour of terminals.
Mark Wooding [Sat, 30 Sep 2017 12:56:05 +0000 (13:56 +0100)]
dot/emacs: Don't override background colour of terminals.

6 years agodot/lftp-rc: Turn on moar TLS.
Mark Wooding [Fri, 22 Sep 2017 10:43:38 +0000 (11:43 +0100)]
dot/lftp-rc: Turn on moar TLS.

I hadn't covered data connections before, which was a mistake.  Fix it.

6 years agodot/lftp-rc: Configuration for `lftp'.
Mark Wooding [Fri, 22 Sep 2017 10:31:08 +0000 (11:31 +0100)]
dot/lftp-rc: Configuration for `lftp'.

Pretty minimal: turn on TLS support where possible.  In particular,
telecaster is now running a full-featured TLS-enabled non-FTP server.

6 years agodot/zshrc: Sink completion setup.
Mark Wooding [Fri, 22 Sep 2017 10:30:03 +0000 (11:30 +0100)]
dot/zshrc: Sink completion setup.

Not quite sure why I did this, but I found it amid other wreckage on
crybaby.

6 years agodot/zshrc: Remove spurious blank line.
Mark Wooding [Fri, 22 Sep 2017 10:28:56 +0000 (11:28 +0100)]
dot/zshrc: Remove spurious blank line.

6 years agobin/git-copyright-dates: Pass arguments on to `git log'.
Mark Wooding [Fri, 22 Sep 2017 10:27:48 +0000 (11:27 +0100)]
bin/git-copyright-dates: Pass arguments on to `git log'.

This allows determining the copyright dates for subportions of a project.

6 years agodot/shell-rc: Only run tmpdir(1) if we actually found it.
Mark Wooding [Wed, 20 Sep 2017 15:27:44 +0000 (16:27 +0100)]
dot/shell-rc: Only run tmpdir(1) if we actually found it.

6 years agodot/shell-rc: Fix missing `;;' in `case'.
Mark Wooding [Wed, 20 Sep 2017 15:27:05 +0000 (16:27 +0100)]
dot/shell-rc: Fix missing `;;' in `case'.

6 years agodot/shell-rc: Throw `~/bin/' into the PATH if it's not there.
Mark Wooding [Wed, 20 Sep 2017 15:26:13 +0000 (16:26 +0100)]
dot/shell-rc: Throw `~/bin/' into the PATH if it's not there.

May make it easier to find tmpdir(1).

6 years agodot/shell-rc: Sink finding temporary directory.
Mark Wooding [Wed, 20 Sep 2017 15:25:20 +0000 (16:25 +0100)]
dot/shell-rc: Sink finding temporary directory.

We don't need this during the main body of the file.

6 years agoel/dot-emacs.el: Turn on `smerge-mode' if we see conflict markers.
Mark Wooding [Wed, 20 Sep 2017 15:07:23 +0000 (16:07 +0100)]
el/dot-emacs.el: Turn on `smerge-mode' if we see conflict markers.

This seems like generally a good thing.

6 years agodot/putty-defaults: Use SSH by default.
Mark Wooding [Tue, 19 Sep 2017 16:26:31 +0000 (17:26 +0100)]
dot/putty-defaults: Use SSH by default.

This is mostly for the benefit of `plink'.

6 years agodot/putty-defaults: Include `rsa' key exchange; but don't like it.
Mark Wooding [Tue, 19 Sep 2017 16:26:02 +0000 (17:26 +0100)]
dot/putty-defaults: Include `rsa' key exchange; but don't like it.

6 years agodot/putty-defaults: Include new shiny SSH settings.
Mark Wooding [Tue, 19 Sep 2017 16:26:20 +0000 (17:26 +0100)]
dot/putty-defaults: Include new shiny SSH settings.

6 years agodot/putty-defaults: Track font-name preference label changes.
Mark Wooding [Tue, 19 Sep 2017 16:25:31 +0000 (17:25 +0100)]
dot/putty-defaults: Track font-name preference label changes.

6 years agodot/putty-defaults: Express the font name in a more modern way.
Mark Wooding [Tue, 19 Sep 2017 16:25:01 +0000 (17:25 +0100)]
dot/putty-defaults: Express the font name in a more modern way.

6 years agodot/putty-defaults: PuTTY wants to sort the `TerminalModes' line.
Mark Wooding [Tue, 19 Sep 2017 16:16:25 +0000 (17:16 +0100)]
dot/putty-defaults: PuTTY wants to sort the `TerminalModes' line.

6 years agodot/Xdefaults: Enable `sendevents' for Xterm.
Mark Wooding [Tue, 19 Sep 2017 16:11:45 +0000 (17:11 +0100)]
dot/Xdefaults: Enable `sendevents' for Xterm.

These are used by `xduplic-copier', which is awesome.  Repeat after me:
the X server does not implement a security boundary.

6 years agoMakefile: Link in shell-specific logout functionality.
Mark Wooding [Tue, 19 Sep 2017 16:11:15 +0000 (17:11 +0100)]
Makefile: Link in shell-specific logout functionality.

6 years agoel/dot-emacs.el: New function to make Emacs frames a sensible width.
Mark Wooding [Sat, 2 Sep 2017 14:17:42 +0000 (15:17 +0100)]
el/dot-emacs.el: New function to make Emacs frames a sensible width.

6 years agobin/mdw-sbuild: Don't require build-deps to make the source package.
Mark Wooding [Wed, 16 Aug 2017 01:59:25 +0000 (02:59 +0100)]
bin/mdw-sbuild: Don't require build-deps to make the source package.

6 years agobin/git-copyright-dates: New script to work out copyright date lists.
Mark Wooding [Tue, 15 Aug 2017 13:25:14 +0000 (14:25 +0100)]
bin/git-copyright-dates: New script to work out copyright date lists.

6 years agodot/gitconfig.in: Map author names through `.mailmap' if available.
Mark Wooding [Tue, 15 Aug 2017 13:24:35 +0000 (14:24 +0100)]
dot/gitconfig.in: Map author names through `.mailmap' if available.

I can use this to fix the old CVS-generated names.

6 years agoMakefile: Only set up `bracketed-paste' on Emacs 24.3 or later.
Mark Wooding [Mon, 14 Aug 2017 17:14:54 +0000 (18:14 +0100)]
Makefile: Only set up `bracketed-paste' on Emacs 24.3 or later.

It depends on `cl-macs', which only became its own proper library in
24.2.90.  The tricky part was the new machinery to discover the Emacs
version in detail.

6 years agoMakefile: Contemplate the horrific possibility of not having Emacs.
Mark Wooding [Mon, 14 Aug 2017 17:14:27 +0000 (18:14 +0100)]
Makefile: Contemplate the horrific possibility of not having Emacs.

6 years agobin/mdw-build, bin/mdw-sbuild, bin/mdw-sbuild-server: Additional packages.
Mark Wooding [Sun, 13 Aug 2017 17:36:51 +0000 (18:36 +0100)]
bin/mdw-build, bin/mdw-sbuild, bin/mdw-sbuild-server: Additional packages.

Support supplying additional packages to the builder, in
`dist-BUILD.pkgs'.  Release builds don't do this, for obvious reasons.

There's an annoying fiddle where we have to separate out the supplied
packages into per-architecture sets because sbuild is too stupid to do
this for itself and ends up using the wrong architecture.

6 years agomdw-sbuild-server: Fix commentary typo.
Mark Wooding [Sun, 13 Aug 2017 17:36:31 +0000 (18:36 +0100)]
mdw-sbuild-server: Fix commentary typo.

6 years agobin/mdw-sbuild-server: Keep track of the target CPU architectures.
Mark Wooding [Sun, 13 Aug 2017 17:36:04 +0000 (18:36 +0100)]
bin/mdw-sbuild-server: Keep track of the target CPU architectures.

Nothing needs this yet, but it'll be handy soon.