chiark / gitweb /
profile
5 years agoel/dot-emacs.el (mdw-fontify-rust): Fix integer literal syntax.
Mark Wooding [Thu, 14 Feb 2019 13:09:05 +0000 (13:09 +0000)]
el/dot-emacs.el (mdw-fontify-rust): Fix integer literal syntax.

You're not allowed to write `is' or `us' as suffixes.

5 years agoel/dot-emacs.el (mdw-fontify-rust): Spell the `crate' keyword correctly.
Mark Wooding [Thu, 14 Feb 2019 13:08:48 +0000 (13:08 +0000)]
el/dot-emacs.el (mdw-fontify-rust): Spell the `crate' keyword correctly.

5 years agoel/dot-emacs.el (mdw-fontify-rust): Highlight `%' properly.
Mark Wooding [Thu, 14 Feb 2019 13:08:26 +0000 (13:08 +0000)]
el/dot-emacs.el (mdw-fontify-rust): Highlight `%' properly.

5 years agoel/dot-emacs.el (mdw-fontify-rexx): Highlight `¬' properly.
Mark Wooding [Thu, 14 Feb 2019 13:06:54 +0000 (13:06 +0000)]
el/dot-emacs.el (mdw-fontify-rexx): Highlight `¬' properly.

5 years agodot/bashrc, dot/zshrc: Do highlighting when `TERM' is `putty...'.
Mark Wooding [Thu, 24 Jan 2019 15:14:45 +0000 (15:14 +0000)]
dot/bashrc, dot/zshrc: Do highlighting when `TERM' is `putty...'.

This is the `proper' terminal-type family for `pterm', even though it
has some unfortunate behaviour which means that I still prefer
`xterm...' in general.

5 years agodot/emacs, dot/profile, el/dot-emacs.el: Back to Firefox/Iceweasel.
Mark Wooding [Wed, 23 Jan 2019 17:29:37 +0000 (17:29 +0000)]
dot/emacs, dot/profile, el/dot-emacs.el: Back to Firefox/Iceweasel.

This reverts commit 90ac1ffc018d15315a2e95deb822f3ca168a9fee,
"dot/emacs, dot/profile, el/dot-emacs.el: Moving back to Chromium."

Maybe I'll make up my mind some day.

5 years agoel/dot-emacs.el: Configure the default CSS indentation.
Mark Wooding [Wed, 23 Jan 2019 17:26:02 +0000 (17:26 +0000)]
el/dot-emacs.el: Configure the default CSS indentation.

Why have I only just noticed that this was silly?

5 years agocss/*: Add some HTML style hacks I use in a few places.
Mark Wooding [Wed, 23 Jan 2019 17:25:07 +0000 (17:25 +0000)]
css/*: Add some HTML style hacks I use in a few places.

These need to be stuffed into a browser extension such as Stylus to be
useful.

5 years agobin/mdw-sbuild: Ignore version-control cruft when making source package.
Mark Wooding [Mon, 24 Dec 2018 11:34:16 +0000 (11:34 +0000)]
bin/mdw-sbuild: Ignore version-control cruft when making source package.

5 years agoMakefile: Abbreviate `$(HOME)/...' things as `~/...' in silent-rules.
Mark Wooding [Sun, 9 Dec 2018 14:49:55 +0000 (14:49 +0000)]
Makefile: Abbreviate `$(HOME)/...' things as `~/...' in silent-rules.

5 years agodot/lesskey, dot/profile: Move constant `less' settings into `.lesskey'.
Mark Wooding [Sun, 9 Dec 2018 12:47:14 +0000 (12:47 +0000)]
dot/lesskey, dot/profile: Move constant `less' settings into `.lesskey'.

The `LESSCHARSET' and `LESSGLOBALTAGS' settings depend on runtime
probes, so I can't move those.

5 years agodot/lesskey: Add binding for backspace to scroll back a screen.
Mark Wooding [Sun, 9 Dec 2018 12:46:27 +0000 (12:46 +0000)]
dot/lesskey: Add binding for backspace to scroll back a screen.

I keep doing this, because of Info and Emacs `view-mode', and `less'
keeps dinging at me.  It stops now.

5 years agoMakefile: Build `~/.less' properly from our `dot/lesskey' file.
Mark Wooding [Sun, 9 Dec 2018 12:45:34 +0000 (12:45 +0000)]
Makefile: Build `~/.less' properly from our `dot/lesskey' file.

The documentation is clear about having to do this annoying thing, so
I'm not sure why I didn't do it.

Delete the old `~/.lesskey' file if we find it, because it doesn't do
any good there.

5 years agoel/dot-emacs.el: Don't raise frames on mode-line or header-line presses.
Mark Wooding [Sat, 8 Dec 2018 23:27:16 +0000 (23:27 +0000)]
el/dot-emacs.el: Don't raise frames on mode-line or header-line presses.

5 years agodot/emacs: Don't use dialogue boxes.
Mark Wooding [Sat, 8 Dec 2018 23:26:29 +0000 (23:26 +0000)]
dot/emacs: Don't use dialogue boxes.

Particularly with Magit asynchronous operations, they cause annoying
popups which are hard to dismiss from the keyboard.

5 years agodot/zshrc: Add in Bash-style completion-type override bindings.
Mark Wooding [Sat, 8 Dec 2018 12:51:10 +0000 (12:51 +0000)]
dot/zshrc: Add in Bash-style completion-type override bindings.

This dislodges the (otherwise useless anyway) previous binding of M-/ to
`_history-complete-older', which I've nudged to M-, (which was
previously the even less useful `_history-complete-newer').  As far as I
can tell, none of the other keys did anything at all previously.

5 years agoMakefile: Zap Zsh's secret `~/.zcompdump' file if `.zshrc' is newer.
Mark Wooding [Sat, 8 Dec 2018 13:09:17 +0000 (13:09 +0000)]
Makefile: Zap Zsh's secret `~/.zcompdump' file if `.zshrc' is newer.

Otherwise it can resurrect dead keybindings and other confusing
badness.  It does make a significant difference to Zsh startup speed,
but Zsh will recreate it automatically so it's all good.

5 years agoMakefile: Factor the printing out from `v_tag'.
Mark Wooding [Sat, 8 Dec 2018 13:05:37 +0000 (13:05 +0000)]
Makefile: Factor the printing out from `v_tag'.

5 years agoMakefile (v_tag): No, there's no second argument.
Mark Wooding [Sat, 8 Dec 2018 13:03:38 +0000 (13:03 +0000)]
Makefile (v_tag): No, there's no second argument.

I think this must have an aspiration which never worked out.  Bury it
properly.

5 years agoel/dot-emacs.el (mdw-fontify-pythonic): Recognize `0o...' and `0b...'.
Mark Wooding [Sun, 25 Nov 2018 13:53:03 +0000 (13:53 +0000)]
el/dot-emacs.el (mdw-fontify-pythonic): Recognize `0o...' and `0b...'.

I must have missed these being introduced.

5 years agoel/dot-emacs.el (mdw-fontify-pythonic): Numbers can't contain `_'.
Mark Wooding [Sun, 25 Nov 2018 13:52:25 +0000 (13:52 +0000)]
el/dot-emacs.el (mdw-fontify-pythonic): Numbers can't contain `_'.

Where did I get the idea that they could from?  This isn't even Python
3.

5 years agodot/shell-rc: Fix bungled prompt hack.
Mark Wooding [Thu, 22 Nov 2018 13:22:23 +0000 (13:22 +0000)]
dot/shell-rc: Fix bungled prompt hack.

5 years agodot/shell-rc: Notice `$MDW_BUILDENV' and add it to the prompt.
Mark Wooding [Thu, 22 Nov 2018 12:36:17 +0000 (12:36 +0000)]
dot/shell-rc: Notice `$MDW_BUILDENV' and add it to the prompt.

For things like cross-building environments.

5 years agodot/emacs: Add auto-mode magic for Sage.
Mark Wooding [Thu, 22 Nov 2018 12:35:46 +0000 (12:35 +0000)]
dot/emacs: Add auto-mode magic for Sage.

Why didn't I do this ages ago?

5 years agoel/dot-emacs.el: Fix `asm-mode' comment highlighting.
Mark Wooding [Tue, 16 Oct 2018 18:45:01 +0000 (19:45 +0100)]
el/dot-emacs.el: Fix `asm-mode' comment highlighting.

I think this actually works with all three comment syntaxes now.  Go me.

5 years agobin/mdw-build: Remove vestigial `-r' option.
Mark Wooding [Tue, 4 Sep 2018 23:34:17 +0000 (00:34 +0100)]
bin/mdw-build: Remove vestigial `-r' option.

It doesn't actually work, but is mentioned in the help synopsis and
`getopts' call.

5 years agoel/dot-emacs.el (mdw-fontify-java): Bring Java keyword list up-to-date.
Mark Wooding [Tue, 4 Sep 2018 23:31:04 +0000 (00:31 +0100)]
el/dot-emacs.el (mdw-fontify-java): Bring Java keyword list up-to-date.

Also reformat.  Added missing keywords `assert', `strictfp'.

5 years agoel/dot-emacs.el (mdw-fontify-java): Don't highlight `@' strangely.
Mark Wooding [Sat, 18 Aug 2018 19:07:46 +0000 (20:07 +0100)]
el/dot-emacs.el (mdw-fontify-java): Don't highlight `@' strangely.

5 years agobin/disorder-notify, dot/e16-bindings: Escape HTMLish stuff in notifications.
Mark Wooding [Thu, 26 Jul 2018 00:05:25 +0000 (01:05 +0100)]
bin/disorder-notify, dot/e16-bindings: Escape HTMLish stuff in notifications.

The documentation I found didn't obviously mention that this text was
HTMLish.  Oh, well.

5 years agobin/disorder-notify: Report when a track is scratched.
Mark Wooding [Sat, 21 Jul 2018 14:21:39 +0000 (15:21 +0100)]
bin/disorder-notify: Report when a track is scratched.

5 years agobin/disorder-notify: Improve startup notifications.
Mark Wooding [Sat, 21 Jul 2018 14:20:56 +0000 (15:20 +0100)]
bin/disorder-notify: Improve startup notifications.

Accumulate the startup state dump, and also report the current track if
there is one.

5 years agobin/disorder-notify: Maybe report currently playing track on state change.
Mark Wooding [Sat, 21 Jul 2018 14:18:07 +0000 (15:18 +0100)]
bin/disorder-notify: Maybe report currently playing track on state change.

This involves fiddling with the `now_playing' function so that it can
find out the current track for itself if necessary.

(Initially I did this on `enable_random' and `enable_play', but that
leads to duplicate now-playing reports because a `playing' notification
will follow unless we never actually stopped playing anything anwyay.
So now we only report on resume.)

5 years agobin/disorder-notify: Refactor the state reporting machinery.
Mark Wooding [Sat, 21 Jul 2018 14:16:15 +0000 (15:16 +0100)]
bin/disorder-notify: Refactor the state reporting machinery.

Accumulate the message in one step, and then report it.

5 years agobin/disorder-notify: Lift out the `now playing' machinery.
Mark Wooding [Sat, 21 Jul 2018 14:13:38 +0000 (15:13 +0100)]
bin/disorder-notify: Lift out the `now playing' machinery.

5 years agobin/disorder-notify: Fix accidental use of a bareword.
Mark Wooding [Sat, 21 Jul 2018 14:12:22 +0000 (15:12 +0100)]
bin/disorder-notify: Fix accidental use of a bareword.

5 years agobin/disorder-notify: Abstract out invoking the `disorder' client.
Mark Wooding [Sat, 21 Jul 2018 14:10:00 +0000 (15:10 +0100)]
bin/disorder-notify: Abstract out invoking the `disorder' client.

5 years agobin/media-keys: Cope with an additional `playing' state.
Mark Wooding [Sat, 21 Jul 2018 14:04:59 +0000 (15:04 +0100)]
bin/media-keys: Cope with an additional `playing' state.

5 years agobin/disorder-notify: Raise the notification timeout back to 5s.
Mark Wooding [Sat, 21 Jul 2018 13:29:22 +0000 (14:29 +0100)]
bin/disorder-notify: Raise the notification timeout back to 5s.

I reduced it because it seemed too long when I was testing it, but when
you do that you're expecting to see the notification.  In reality, what
happens is that this thing flickers in the corner of the screen, your
eye moves over to it, and then it vanishes just before you can read it
properly.  This is a little counterproductive.

5 years agobin/disorder-notify: New hack to pop up notifications about DisOrder.
Mark Wooding [Sat, 21 Jul 2018 00:49:46 +0000 (01:49 +0100)]
bin/disorder-notify: New hack to pop up notifications about DisOrder.

Useful now that it's mostly controlled from the keyboard.

5 years agodot/xsession: Wipe out our process group on exit.
Mark Wooding [Sat, 21 Jul 2018 00:46:05 +0000 (01:46 +0100)]
dot/xsession: Wipe out our process group on exit.

There may be other random hangers on which ought to die when we do.

5 years agodot/e16-bindings, bin/media-keys: Keybindings for media players.
Mark Wooding [Fri, 20 Jul 2018 20:34:30 +0000 (21:34 +0100)]
dot/e16-bindings, bin/media-keys: Keybindings for media players.

5 years agodot/e16-bindings: Remove `zoom' binding.
Mark Wooding [Sat, 21 Jul 2018 00:59:30 +0000 (01:59 +0100)]
dot/e16-bindings: Remove `zoom' binding.

I've no idea why this was a good idea.

5 years agodot/e16-bindings: Untabify completely.
Mark Wooding [Sat, 21 Jul 2018 01:01:38 +0000 (02:01 +0100)]
dot/e16-bindings: Untabify completely.

The layout is kind of weird here anyway.  Tabs don't seem to be helping.

5 years agodot/e16-bindings: Sort the bindings properly.
Mark Wooding [Sat, 21 Jul 2018 00:56:37 +0000 (01:56 +0100)]
dot/e16-bindings: Sort the bindings properly.

Also, some slight reformatting.

5 years agodot/shell-rc: Run `make' nicely by default.
Mark Wooding [Fri, 20 Jul 2018 20:34:11 +0000 (21:34 +0100)]
dot/shell-rc: Run `make' nicely by default.

5 years agodot/putty-defaults: Use client-side `Fixed' font.
Mark Wooding [Mon, 16 Jul 2018 13:16:26 +0000 (14:16 +0100)]
dot/putty-defaults: Use client-side `Fixed' font.

It makes redraw considerably faster.

5 years agoel/dot-emacs.el, dot/emacs: Add keybinding to update VC modelines.
Mark Wooding [Fri, 6 Jul 2018 19:38:48 +0000 (20:38 +0100)]
el/dot-emacs.el, dot/emacs: Add keybinding to update VC modelines.

Also autoreverts everything.  But that's OK.

5 years agodot/emacs: Sort the global keybindings list.
Mark Wooding [Fri, 6 Jul 2018 19:37:38 +0000 (20:37 +0100)]
dot/emacs: Sort the global keybindings list.

Astonishingly there don't appear to be any conflicts.

5 years agoel/dot-emacs.el: Defeat AUC-TeX's horrible fontification.
Mark Wooding [Fri, 6 Jul 2018 11:21:52 +0000 (12:21 +0100)]
el/dot-emacs.el: Defeat AUC-TeX's horrible fontification.

5 years agoel/dot-emacs.el: Fix the Rust keywords.
Mark Wooding [Wed, 4 Jul 2018 23:18:08 +0000 (00:18 +0100)]
el/dot-emacs.el: Fix the Rust keywords.

I'd missed out `proc' and `Self', duplicated `false' (but not `true') in
the two lists.

Add the missing keywords; mark both `true' and `false' as builtins, as
well as `self' and `Self'.

5 years agoel/dot-emacs.el: Configure `glasses' mode.
Mark Wooding [Wed, 4 Jul 2018 23:17:21 +0000 (00:17 +0100)]
el/dot-emacs.el: Configure `glasses' mode.

I'm not completely sure I like this yet, but I'm really not enjoying
Javaish CamelCase everywhere.

5 years agodot/emacs: Include the graph diagram in Magit status displays.
Mark Wooding [Tue, 26 Jun 2018 19:31:08 +0000 (20:31 +0100)]
dot/emacs: Include the graph diagram in Magit status displays.

5 years agodot/zshrc: Export the temporary directory as `~t'.
Mark Wooding [Tue, 26 Jun 2018 19:29:54 +0000 (20:29 +0100)]
dot/zshrc: Export the temporary directory as `~t'.

5 years agobin/play-rawk: The stream is served over HTTPS now.
Mark Wooding [Tue, 26 Jun 2018 19:29:09 +0000 (20:29 +0100)]
bin/play-rawk: The stream is served over HTTPS now.

5 years agoel/dot-emacs.el: Prevent GUD-Gdb from making its windows be `dedicated'.
Mark Wooding [Fri, 22 Jun 2018 16:54:20 +0000 (17:54 +0100)]
el/dot-emacs.el: Prevent GUD-Gdb from making its windows be `dedicated'.

Otherwise it's really hard to override its wrong decisions about where
to put things.

5 years agoMakefile: Don't shell out for `pwd' all the time.
Mark Wooding [Thu, 14 Jun 2018 10:50:22 +0000 (11:50 +0100)]
Makefile: Don't shell out for `pwd' all the time.

5 years agodot/profile: Support (and export) `$https_proxy' variable.
Mark Wooding [Mon, 11 Jun 2018 00:22:10 +0000 (01:22 +0100)]
dot/profile: Support (and export) `$https_proxy' variable.

5 years agodot/zshrc: Turn off `KSH_GLOB'.
Mark Wooding [Fri, 8 Jun 2018 12:24:41 +0000 (13:24 +0100)]
dot/zshrc: Turn off `KSH_GLOB'.

It breaks the more convenient `*(X|Y)*' patterns.

5 years agodot/emacs, el/dot-emacs: Trash files by default rather than deleting.
Mark Wooding [Sun, 3 Jun 2018 13:40:43 +0000 (14:40 +0100)]
dot/emacs, el/dot-emacs: Trash files by default rather than deleting.

But extend the prefix-argument-really-deletes convention to Dired and
Magit.

5 years agodot/inputrc: Guard `shell-mumble' bindings.
Mark Wooding [Sat, 2 Jun 2018 14:38:30 +0000 (15:38 +0100)]
dot/inputrc: Guard `shell-mumble' bindings.

Otherwise I get warnings from Scala, which is a bit annoying.

5 years agodot/inputrc: Categorize C-M-w properly.
Mark Wooding [Sat, 2 Jun 2018 14:38:17 +0000 (15:38 +0100)]
dot/inputrc: Categorize C-M-w properly.

5 years agoel/dot-emacs.el (mdw-fontify-scala): Highlight punctuation in identifiers.
Mark Wooding [Fri, 25 May 2018 17:26:20 +0000 (18:26 +0100)]
el/dot-emacs.el (mdw-fontify-scala): Highlight punctuation in identifiers.

I think it's best if pure-punctuation method names are highlighted as
punctuation, and for consistency I'm going to highlight punctuation
suffixes on mostly-alphanumeric names, e.g., `unary_-' or `slot_='.

This decision is nothing to do with the fact that I'm too lazy to figure
out how to highlight the `:' properly in `case _: TYPE => ...'.  Honest.

5 years agodot/emacs: Turn off `adaptive-fill-mode'.
Mark Wooding [Sun, 27 May 2018 10:59:47 +0000 (11:59 +0100)]
dot/emacs: Turn off `adaptive-fill-mode'.

I never used it, building my own machinery instead.  And, it seems,
this doesn't work with Emacs's default comment-filling machinery.

5 years agoel/dot-emacs.in (mdw-c-comment-fill-prefix): Fix it properly.
Mark Wooding [Sun, 27 May 2018 10:54:38 +0000 (11:54 +0100)]
el/dot-emacs.in (mdw-c-comment-fill-prefix): Fix it properly.

Apparently this has had two bugs since my last attempt to fix it (commit
0e7d960b998e7c6dc781dc37cb703cdb32232a5f).

  * It had only one backslash before the `*', which does nothing; this
    only worked because -- luckily -- Emacs treats a `*' not in
    postfix-operator position literally.

  * There was a stray `]' at the end of the `//' pattern, which caused
    most attempts to match single-line comments to fail.

Oh, dear.

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' 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 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.