chiark / gitweb /
profile
32 hours agoel/dot-emacs.el (mdw-fontify-perl): Use the standard autofill function. master
Mark Wooding [Thu, 9 May 2024 22:22:41 +0000 (23:22 +0100)]
el/dot-emacs.el (mdw-fontify-perl): Use the standard autofill function.

Cperl mode has its own crazy autofill which messes up earlier lines and
doesn't get the dynamic fill prefix right.  So beat it up and use the
standard function.

32 hours agoel/dot-emacs.el (mdw-display-buffer-in-tolerable-window): Maybe reuse current.
Mark Wooding [Thu, 9 May 2024 22:20:44 +0000 (23:20 +0100)]
el/dot-emacs.el (mdw-display-buffer-in-tolerable-window): Maybe reuse current.

If the selected window is also the fallback window for the frame then
it's OK to use it.  That's what it's for.  So if there's a fallback
window then clear `selected' so that the later check doesn't complain.

11 days agobin/disorder-play-on-demand: Script to set up on-demand playing.
Mark Wooding [Mon, 29 Apr 2024 11:16:33 +0000 (12:16 +0100)]
bin/disorder-play-on-demand: Script to set up on-demand playing.

11 days agodot/emacs, el/dot-emacs.el: Another `display-window' hack: fallback.
Mark Wooding [Mon, 29 Apr 2024 10:03:33 +0000 (11:03 +0100)]
dot/emacs, el/dot-emacs.el: Another `display-window' hack: fallback.

Allow a window in each frame to be declared as the `victim' for random
pop-up buffers, overriding the usual policy.

11 days agoel/dot-emacs.el (mdw-designate-window): Say if no designation cleared.
Mark Wooding [Mon, 29 Apr 2024 10:00:38 +0000 (11:00 +0100)]
el/dot-emacs.el (mdw-designate-window): Say if no designation cleared.

Print a different message if we were asked to clear the designation, but
in fact no window was designated anyway.

11 days agoel/dot-emacs.el: Collapse to adjacent and related `setq' forms.
Mark Wooding [Mon, 29 Apr 2024 09:58:01 +0000 (10:58 +0100)]
el/dot-emacs.el: Collapse to adjacent and related `setq' forms.

11 days agoel/dot-emacs.el: Help `gud-find-expr' to not crash if prompts are read-only.
Mark Wooding [Mon, 29 Apr 2024 10:00:03 +0000 (11:00 +0100)]
el/dot-emacs.el: Help `gud-find-expr' to not crash if prompts are read-only.

Silly rabbit.

11 days agodot/emacs: Moderate horizontal scrolling; auto-scroll only one line.
Mark Wooding [Mon, 29 Apr 2024 09:58:34 +0000 (10:58 +0100)]
dot/emacs: Moderate horizontal scrolling; auto-scroll only one line.

I think the one-line auto-scroll is an improvement but I'm not
completely sure yet.

11 days agodot/emacs: Look for running server before leaping at starting a new one.
Mark Wooding [Mon, 29 Apr 2024 09:53:10 +0000 (10:53 +0100)]
dot/emacs: Look for running server before leaping at starting a new one.

I used to use `warning-suppress-types' to muffle this, but it doesn't
work any more because there's a new mechanism for `delayed warnings'.
If we're still starting up (and not being a daemon or noninteractive)
then warnings get put on a list to deal with later -- but the
suppression lists aren't saved, so the warning `escapes' from under my
attempt to muffle it.

Instead, look to see if there's a server already running, and just print
a message if there is.

11 days agoRevert "dot/inputrc: Show completions on the first `tab' keypress."
Mark Wooding [Sat, 16 Mar 2024 15:20:47 +0000 (15:20 +0000)]
Revert "dot/inputrc: Show completions on the first `tab' keypress."

This reverts commit 675455c2159ddadcc96a04b470d9516d54bd7fe7.

Turns out that I hate it after all.

11 days agoel/dot-emacs.el: Do basic whitespace highlighting in `nroff-mode'.
Mark Wooding [Sat, 16 Mar 2024 15:20:03 +0000 (15:20 +0000)]
el/dot-emacs.el: Do basic whitespace highlighting in `nroff-mode'.

11 days agodot/emacs, el/dot-emacs.el: Switch to using the `cl-lib' package.
Mark Wooding [Mon, 29 Apr 2024 09:00:47 +0000 (10:00 +0100)]
dot/emacs, el/dot-emacs.el: Switch to using the `cl-lib' package.

I can't say I'm thrilled about having to remember which functions I have
to stick `cl-...' on the front of now, but it will shut up some
deprecation warnings.

There are probably lurking runtime problems where I've failed to notice
that a function (or, worse, a macro) needs to be renamed.

2 months agodot/emacs: Inhibit server from raising windows.
Mark Wooding [Sun, 10 Mar 2024 17:47:18 +0000 (17:47 +0000)]
dot/emacs: Inhibit server from raising windows.

Annoying because Magit (ab)uses the server machinery.  At least there's
an actual option for this.

2 months agoel/dot-emacs.el: Treat the Python soft keywords more carefully.
Mark Wooding [Sun, 10 Mar 2024 17:46:19 +0000 (17:46 +0000)]
el/dot-emacs.el: Treat the Python soft keywords more carefully.

In particular, `match' gets used heavily as a method name when working
with regices, so bolding it everywhere is quite bad.

2 months agoel/dot-emacs.el: Hack in a null `entity' as a emphasis boundary.
Mark Wooding [Sun, 10 Mar 2024 17:44:40 +0000 (17:44 +0000)]
el/dot-emacs.el: Hack in a null `entity' as a emphasis boundary.

2 months agoel/dot-emacs.el: Delete stray blank line.
Mark Wooding [Sun, 10 Mar 2024 17:20:54 +0000 (17:20 +0000)]
el/dot-emacs.el: Delete stray blank line.

2 months agodot/parallel-hosts: Add temporary names for fender hosts at home.
Mark Wooding [Sun, 10 Mar 2024 17:20:27 +0000 (17:20 +0000)]
dot/parallel-hosts: Add temporary names for fender hosts at home.

2 months agodot/parallel-hosts: Use VPN name for `mdwdev'.
Mark Wooding [Sun, 10 Mar 2024 17:20:12 +0000 (17:20 +0000)]
dot/parallel-hosts: Use VPN name for `mdwdev'.

2 months agodot/parallel-hosts: Disable hosts which I know don't work at the moment.
Mark Wooding [Sun, 10 Mar 2024 17:19:48 +0000 (17:19 +0000)]
dot/parallel-hosts: Disable hosts which I know don't work at the moment.

2 months agodot/screenrc: Add a binding for the `kill' command.
Mark Wooding [Wed, 28 Feb 2024 15:12:39 +0000 (15:12 +0000)]
dot/screenrc: Add a binding for the `kill' command.

This is quite important for serial-terminal windows.

2 months agodot/emacs (compilation-scroll-output): Yes, I prefer `first-error'.
Mark Wooding [Wed, 21 Feb 2024 17:03:03 +0000 (17:03 +0000)]
dot/emacs (compilation-scroll-output): Yes, I prefer `first-error'.

2 months agoel/dot-emacs.el: Add the additional Python 3 keywords and builtins.
Mark Wooding [Sat, 17 Feb 2024 13:15:59 +0000 (13:15 +0000)]
el/dot-emacs.el: Add the additional Python 3 keywords and builtins.

2 months agoel/dot-emacs.el: Highlight Python builtins.
Mark Wooding [Sat, 17 Feb 2024 14:38:31 +0000 (14:38 +0000)]
el/dot-emacs.el: Highlight Python builtins.

Also special method names.

2 months agoel/dot-emacs.el (mdw-regexp): Sort the input list.
Mark Wooding [Sat, 17 Feb 2024 14:34:24 +0000 (14:34 +0000)]
el/dot-emacs.el (mdw-regexp): Sort the input list.

It's compile time.  Nobody cares about the extra time, and it's a weight
off of my mind as a caller.

2 months agoel/dot-emacs.el: Lay out Python keywords to allow additions.
Mark Wooding [Sat, 17 Feb 2024 13:15:15 +0000 (13:15 +0000)]
el/dot-emacs.el: Lay out Python keywords to allow additions.

2 months agodot/emacs: Scroll compilation spew by default.
Mark Wooding [Sat, 17 Feb 2024 13:06:29 +0000 (13:06 +0000)]
dot/emacs: Scroll compilation spew by default.

Maybe I actually want this as `first-error'.  We'll find out.

2 months agodot/zshrc: Enable option to substitute `BAR=...:~FOO:...:=BAZ:...'.
Mark Wooding [Sat, 17 Feb 2024 13:02:10 +0000 (13:02 +0000)]
dot/zshrc: Enable option to substitute `BAR=...:~FOO:...:=BAZ:...'.

Once upon a time I made a bad mistake which involved assuming that this
actually worked in Bash.  Make it work in honour of that disaster.

2 months agoel/dot-emacs.el: Unbreak `mdw-fontify-rust' so this file actually compiles.
Mark Wooding [Sat, 17 Feb 2024 14:55:06 +0000 (14:55 +0000)]
el/dot-emacs.el: Unbreak `mdw-fontify-rust' so this file actually compiles.

Apparently it hasn't worked for nearly a year.

2 months agoMakefile: Fix Emacs compilation so that it actually notices failures.
Mark Wooding [Sat, 17 Feb 2024 14:54:27 +0000 (14:54 +0000)]
Makefile: Fix Emacs compilation so that it actually notices failures.

5 months agoel/dot-emacs.el (mdw-merge-style-alists): Use correct length of `-alist'.
Mark Wooding [Thu, 27 Jul 2023 15:53:09 +0000 (16:53 +0100)]
el/dot-emacs.el (mdw-merge-style-alists): Use correct length of `-alist'.

5 months agodot/emacs: Only force primary selection rather than clipboard on X11.
Mark Wooding [Wed, 6 Dec 2023 14:28:32 +0000 (14:28 +0000)]
dot/emacs: Only force primary selection rather than clipboard on X11.

It makes working on Windows rather annoying.

5 months agoel/dot-emacs.el: Override the default `display-buffer' logic.
Mark Wooding [Wed, 6 Dec 2023 14:25:28 +0000 (14:25 +0000)]
el/dot-emacs.el: Override the default `display-buffer' logic.

Just use the `next' window in a fairly obvious sort of way.  The
objective here is to be less surprising and random.

5 months agodot/emacs, el/dot-emacs.el: Move `display-buffer-reuse-frames' setting.
Mark Wooding [Wed, 6 Dec 2023 14:24:40 +0000 (14:24 +0000)]
dot/emacs, el/dot-emacs.el: Move `display-buffer-reuse-frames' setting.

It belongs with the other `display-buffer' hacking.

5 months agoel/dot-emacs.el: Abstract out `mdw-frame-with-for-columns' function.
Mark Wooding [Wed, 6 Dec 2023 14:23:02 +0000 (14:23 +0000)]
el/dot-emacs.el: Abstract out `mdw-frame-with-for-columns' function.

5 months agodot/profile: Persuade `rsync' not to do silly things to arguments.
Mark Wooding [Wed, 6 Dec 2023 14:19:55 +0000 (14:19 +0000)]
dot/profile: Persuade `rsync' not to do silly things to arguments.

5 months agodot/infokey: Turn on xterm mouse support.
Mark Wooding [Wed, 6 Dec 2023 14:19:36 +0000 (14:19 +0000)]
dot/infokey: Turn on xterm mouse support.

5 months agodot/e16-bindings: Switch the volume and desktop-switch bindings.
Mark Wooding [Wed, 6 Dec 2023 14:17:48 +0000 (14:17 +0000)]
dot/e16-bindings: Switch the volume and desktop-switch bindings.

The former is the more common and natural, so it should have fewer
modifiers.

12 months agodot/zshrc: Fix Emacs integration properly.
Mark Wooding [Tue, 9 May 2023 11:35:39 +0000 (12:35 +0100)]
dot/zshrc: Fix Emacs integration properly.

This was a mess.  I'd had a hack to inhibit line-editing in `dumb'
terminals for ages, but grew an extra one as an overreaction against
TRAMP's allergy to bracketted-paste.  Rationalize all of this.

  * Move the logic to inhibit line-editing into the right configuration
    section.

  * Only inhibit line-editing in `dumb' terminals that aren't running in
    Emacs.

  * Inhibit bracketted-paste in `dumb' terminals, but not otherwise.

The result is that I can still use line editing in `dumb' terminals, but
Emacs -- and particularly TRAMP -- work properly.

12 months agoel/dot-emacs.el: Highlght make(1)'s directory-change messages better.
Mark Wooding [Tue, 9 May 2023 11:35:16 +0000 (12:35 +0100)]
el/dot-emacs.el: Highlght make(1)'s directory-change messages better.

12 months agobin/mdw-sbuild-server: Unbreak local package support.
Mark Wooding [Fri, 5 May 2023 23:32:02 +0000 (00:32 +0100)]
bin/mdw-sbuild-server: Unbreak local package support.

12 months agoel/dot-emacs.el: Fix compilation underlining properly.
Mark Wooding [Fri, 5 May 2023 00:49:35 +0000 (01:49 +0100)]
el/dot-emacs.el: Fix compilation underlining properly.

12 months agoel/dot-emacs.el: Hack on the faces used for compilations.
Mark Wooding [Tue, 25 Apr 2023 22:37:49 +0000 (23:37 +0100)]
el/dot-emacs.el: Hack on the faces used for compilations.

Make the errors be actually red.  Turn off the wretched underlining.

12 months agoel/dot-emacs.el: Set `font-lock-doc-face' (inherit `...-string-face').
Mark Wooding [Sun, 23 Apr 2023 22:25:23 +0000 (23:25 +0100)]
el/dot-emacs.el: Set `font-lock-doc-face' (inherit `...-string-face').

Mostly they're doc /strings/, not comments.

12 months agoel/dot-emacs.el: Don't highlight Rust doc comments specially.
Mark Wooding [Sun, 23 Apr 2023 22:38:51 +0000 (23:38 +0100)]
el/dot-emacs.el: Don't highlight Rust doc comments specially.

It's just bletcherous.

12 months agoel/dot-emacs.el: Inherit `font-lock-comment-delimiter-face'.
Mark Wooding [Sun, 23 Apr 2023 22:24:28 +0000 (23:24 +0100)]
el/dot-emacs.el: Inherit `font-lock-comment-delimiter-face'.

Rather than duplicating the defintion.

12 months agoel/dot-emacs.el: Override `font-lock-doc-face'.
Mark Wooding [Fri, 21 Apr 2023 16:09:48 +0000 (17:09 +0100)]
el/dot-emacs.el: Override `font-lock-doc-face'.

12 months agodot/w3m-config: Support xterm mouse (again?).
Mark Wooding [Fri, 21 Apr 2023 14:40:27 +0000 (15:40 +0100)]
dot/w3m-config: Support xterm mouse (again?).

12 months agogit/gitignore: Ignore `.nailing-cargo.lock' files.
Mark Wooding [Fri, 21 Apr 2023 14:38:10 +0000 (15:38 +0100)]
git/gitignore: Ignore `.nailing-cargo.lock' files.

These are not like `Cargo.lock' files, and just guard against concurrent
access by `nailing-cargo'.

12 months agoel/dot-emacs.el: Save and restore window configuration around `ediff'.
Mark Wooding [Fri, 14 Apr 2023 11:02:34 +0000 (12:02 +0100)]
el/dot-emacs.el: Save and restore window configuration around `ediff'.

12 months agodot/gdbinit: Tell Gdb that things in `~/src/' are basically OK.
Mark Wooding [Tue, 11 Apr 2023 12:43:14 +0000 (13:43 +0100)]
dot/gdbinit: Tell Gdb that things in `~/src/' are basically OK.

12 months agodot/gdbinit: Add an Emacs mode header.
Mark Wooding [Tue, 11 Apr 2023 12:42:52 +0000 (13:42 +0100)]
dot/gdbinit: Add an Emacs mode header.

Didn't know there was a mode for these!

12 months agodot/shell-rc (__mdw_xterm_settitle): Use the correct control code.
Mark Wooding [Mon, 17 Apr 2023 09:57:34 +0000 (10:57 +0100)]
dot/shell-rc (__mdw_xterm_settitle): Use the correct control code.

Set the icon name too.  `pterm' apparently doesn't care.  Other
emulators might, I suppose.

13 months agodot/jupyter-notebook.json: Set `tabSize' because the editor is broken.
Mark Wooding [Tue, 11 Apr 2023 12:00:01 +0000 (13:00 +0100)]
dot/jupyter-notebook.json: Set `tabSize' because the editor is broken.

The thing which handles deleting indentation when you press backspace
quantizes to the tab size, not the indentation unit, which is obviously
wrong.  Fortunately, I don't think I care what it thinks the tab size
is, so set it to match the indent unit.

13 months agodot/jupyter-notebook.json: Adopt Jupyter configuration.
Mark Wooding [Mon, 10 Apr 2023 11:18:33 +0000 (12:18 +0100)]
dot/jupyter-notebook.json: Adopt Jupyter configuration.

For Sage and Python notebooks.

13 months agodot/ipython-config.py: Set the indent level to two spaces like God intended.
Mark Wooding [Mon, 10 Apr 2023 09:00:48 +0000 (10:00 +0100)]
dot/ipython-config.py: Set the indent level to two spaces like God intended.

There's an option for every other thing, but not for this.

13 months agoel/dot-emacs.el: Use the older names for `cl' functions and macros.
Mark Wooding [Sat, 25 Mar 2023 13:04:03 +0000 (13:04 +0000)]
el/dot-emacs.el: Use the older names for `cl' functions and macros.

13 months agoel/dot-emacs.el: Open-code `string-suffix-p' for older Emacen.
Mark Wooding [Sat, 25 Mar 2023 13:02:01 +0000 (13:02 +0000)]
el/dot-emacs.el: Open-code `string-suffix-p' for older Emacen.

13 months agoel/dot-emacs.el: Fix designated-window machinery for Emacs 23.
Mark Wooding [Sat, 25 Mar 2023 13:00:02 +0000 (13:00 +0000)]
el/dot-emacs.el: Fix designated-window machinery for Emacs 23.

This lacks the `display-buffer-base-action' hook, so use
`display-buffer-function'.  This adds some messy conditional stuff, but
we'll survive.

13 months agoel/dot-emacs.el: Hoist `mdw-display-buffer-in-designated-window'.
Mark Wooding [Sat, 25 Mar 2023 12:58:22 +0000 (12:58 +0000)]
el/dot-emacs.el: Hoist `mdw-display-buffer-in-designated-window'.

I want to add a related functin nearby, and that function should precede
`mdw-designated-window'.

13 months agoel/dot-emacs.el: Wrap `trap' defintiion in `eval-and-compile'.
Mark Wooding [Sat, 25 Mar 2023 12:00:43 +0000 (12:00 +0000)]
el/dot-emacs.el: Wrap `trap' defintiion in `eval-and-compile'.

Otherwise it's not available at top-level in older Emacsen, for some
reason.

13 months agodot/inputrc: Guard `colored-stats' setting.
Mark Wooding [Mon, 20 Mar 2023 23:19:39 +0000 (23:19 +0000)]
dot/inputrc: Guard `colored-stats' setting.

Otherwise Emacs gets confused about whether Python can do completion.

13 months agodot/gitconfig.in: Run `diff-highlight' from the path, if it's there.
Mark Wooding [Sat, 18 Mar 2023 21:45:26 +0000 (21:45 +0000)]
dot/gitconfig.in: Run `diff-highlight' from the path, if it's there.

Don't expect it to be hiding away in `/usr/share/doc/...', because it's
only me that's crazy enough to do that, and it was a bad idea.

13 months agodot/gitconfig.in: Muffle warnings about non-executable hook scripts.
Mark Wooding [Sat, 18 Mar 2023 21:12:35 +0000 (21:12 +0000)]
dot/gitconfig.in: Muffle warnings about non-executable hook scripts.

These were left around by old versions of Git.

13 months agodot/emacs: Turn on `xterm-mouse-mode' experimentally.
Mark Wooding [Sat, 18 Mar 2023 18:55:49 +0000 (18:55 +0000)]
dot/emacs: Turn on `xterm-mouse-mode' experimentally.

I've tried this in the past, though it's apparently never made its way
into my profile.  I think it works better now.

13 months agodot/inputrc: Don't enable bracketed-paste when `$TERM' is `dumb'.
Mark Wooding [Sat, 18 Mar 2023 16:56:57 +0000 (16:56 +0000)]
dot/inputrc: Don't enable bracketed-paste when `$TERM' is `dumb'.

It confuses Emacs, which is the main (only?) thing that sets the
terminal to `dumb' in the first place.

13 months agodot/inputrc: Delete redundant setting of `enable-bracketed-paste'.
Mark Wooding [Sat, 18 Mar 2023 16:54:44 +0000 (16:54 +0000)]
dot/inputrc: Delete redundant setting of `enable-bracketed-paste'.

This was added spuriously in 40421d0b105e6e9ce9cbdff368aab4989ac6f184,
somehow without me noticing that it had already been switched on six
months earlier in c626c512d4420440410e22955c23cf0ea8b0d2b1.

13 months agodot/emacs: Tell `ediff' not to move the mouse pointer.
Mark Wooding [Sat, 18 Mar 2023 14:14:00 +0000 (14:14 +0000)]
dot/emacs: Tell `ediff' not to move the mouse pointer.

Everything still seems to work.

13 months agobin/xzoomscr, dot/e16-bindings: Allow fractional zooming.
Mark Wooding [Sat, 18 Mar 2023 14:12:11 +0000 (14:12 +0000)]
bin/xzoomscr, dot/e16-bindings: Allow fractional zooming.

This works and is useful.  Add a fractional zoom setting to the hotkeys
and shift the others along.

13 months agobin/xzoomscr: Remove spaces around multiplicative operators.
Mark Wooding [Sat, 18 Mar 2023 14:11:13 +0000 (14:11 +0000)]
bin/xzoomscr: Remove spaces around multiplicative operators.

As is my current style.

13 months agobin/xzoomscr: Add missing `$' in arithmetic.
Mark Wooding [Sat, 18 Mar 2023 14:00:59 +0000 (14:00 +0000)]
bin/xzoomscr: Add missing `$' in arithmetic.

POSIX requires this, though shells commonly don't.

13 months agobin/xzoomscr: New script and bindings to control XRANDR zoomy panny stuff.
Mark Wooding [Sat, 18 Mar 2023 12:51:07 +0000 (12:51 +0000)]
bin/xzoomscr: New script and bindings to control XRANDR zoomy panny stuff.

14 months agodot/gnus-local.el.distorted: Add the A&A sales address to `admin.aaisp'.
Mark Wooding [Tue, 21 Feb 2023 16:58:14 +0000 (16:58 +0000)]
dot/gnus-local.el.distorted: Add the A&A sales address to `admin.aaisp'.

18 months agobin/mdw-build: Force use of `bash' to allow file descriptors >= 10.
Mark Wooding [Thu, 27 Oct 2022 10:36:16 +0000 (11:36 +0100)]
bin/mdw-build: Force use of `bash' to allow file descriptors >= 10.

22 months agodot/gitconfig.in: Add explicit `pull' setting.
Mark Wooding [Wed, 6 Jul 2022 15:27:41 +0000 (16:27 +0100)]
dot/gitconfig.in: Add explicit `pull' setting.

Newer Git moans loudly without this because foolishness.

22 months agobin/wakey.sh: Include hostname in notification if SSH is implicated.
Mark Wooding [Sun, 3 Jul 2022 14:05:11 +0000 (15:05 +0100)]
bin/wakey.sh: Include hostname in notification if SSH is implicated.

22 months agobin/wakey.sh: Add missing `;;' in case.
Mark Wooding [Sun, 3 Jul 2022 14:04:58 +0000 (15:04 +0100)]
bin/wakey.sh: Add missing `;;' in case.

22 months agodot/shell-rc: Enable the `wakey' machinery by default, when it will work.
Mark Wooding [Sun, 3 Jul 2022 13:50:03 +0000 (14:50 +0100)]
dot/shell-rc: Enable the `wakey' machinery by default, when it will work.

22 months agodot/emacs-calc: Reformat some more definitions.
Mark Wooding [Sun, 3 Jul 2022 13:49:32 +0000 (14:49 +0100)]
dot/emacs-calc: Reformat some more definitions.

22 months agodot/emacs-calc: Use faces for highlighting selections.
Mark Wooding [Sat, 25 Jun 2022 11:25:00 +0000 (12:25 +0100)]
dot/emacs-calc: Use faces for highlighting selections.

22 months agodot/emacs-calc: Write `var-IntegNumerRules' as longhand sexp.
Mark Wooding [Sat, 25 Jun 2022 11:24:35 +0000 (12:24 +0100)]
dot/emacs-calc: Write `var-IntegNumerRules' as longhand sexp.

22 months agodot/emacs-calc: Lay out the rulesets properly.
Mark Wooding [Sat, 25 Jun 2022 11:24:19 +0000 (12:24 +0100)]
dot/emacs-calc: Lay out the rulesets properly.

22 months agodot/emacs-calc: Fix ugly close-paren formatting.
Mark Wooding [Sat, 25 Jun 2022 11:23:50 +0000 (12:23 +0100)]
dot/emacs-calc: Fix ugly close-paren formatting.

22 months agodot/emacs-calc: Sink `var-AlgSimpRules' to be with the other rulesets.
Mark Wooding [Sat, 25 Jun 2022 11:23:17 +0000 (12:23 +0100)]
dot/emacs-calc: Sink `var-AlgSimpRules' to be with the other rulesets.

22 months agodot/emacs-calc: Attach key bindings to definitions.
Mark Wooding [Sat, 25 Jun 2022 11:20:58 +0000 (12:20 +0100)]
dot/emacs-calc: Attach key bindings to definitions.

Also, slightly reformat.

23 months agodot/xinitrc: Invoke `unclutter' in a not-broken way.
Mark Wooding [Thu, 26 May 2022 08:33:58 +0000 (09:33 +0100)]
dot/xinitrc: Invoke `unclutter' in a not-broken way.

23 months agodot/a2psrc: Some minor tweaks.
Mark Wooding [Thu, 26 May 2022 08:32:56 +0000 (09:32 +0100)]
dot/a2psrc: Some minor tweaks.

2 years agoel/dot-emacs.el: Don't select the designated window when displaying buffer.
Mark Wooding [Tue, 3 May 2022 09:10:08 +0000 (10:10 +0100)]
el/dot-emacs.el: Don't select the designated window when displaying buffer.

2 years agoel/dot-emacs.el: Override Magit's displaying of file buffers from diffs.
Mark Wooding [Mon, 2 May 2022 22:19:10 +0000 (23:19 +0100)]
el/dot-emacs.el: Override Magit's displaying of file buffers from diffs.

2 years agoel/dot-emacs.el: Open non-Magit buffers in new windows.
Mark Wooding [Mon, 2 May 2022 22:18:00 +0000 (23:18 +0100)]
el/dot-emacs.el: Open non-Magit buffers in new windows.

Emacs doesn't have a function for asking whether a named major mode
is derived from a given mode, so I've had to write one.

2 years agoel/dot-emacs.el (mdw-switch-window-configuration): Print a message afterwards.
Mark Wooding [Mon, 2 May 2022 13:42:51 +0000 (14:42 +0100)]
el/dot-emacs.el (mdw-switch-window-configuration): Print a message afterwards.

2 years agodot/gitconfig.in: Push the current branch only by default.
Mark Wooding [Mon, 2 May 2022 12:36:24 +0000 (13:36 +0100)]
dot/gitconfig.in: Push the current branch only by default.

I think this was an experiment, and it failed.

2 years agoel/dot-emacs.el: Override Magit buffer display logic.
Mark Wooding [Mon, 2 May 2022 11:55:47 +0000 (12:55 +0100)]
el/dot-emacs.el: Override Magit buffer display logic.

It's actually nearly right, except that it wants to cover existing Magit
windows with commit log and that's a mistake.

Implement a new version of `magit-display-buffer-traditional' which (a)
uses a list of modes in a variable rather than hardcoding it, and (b)
honours a designated window if there is one.

2 years agodot/emacs, el/dot-emacs.el: New gadget to force window selection.
Mark Wooding [Mon, 2 May 2022 11:52:20 +0000 (12:52 +0100)]
dot/emacs, el/dot-emacs.el: New gadget to force window selection.

I'm fed up with Emacs `display-buffer', which seems carefully designed
to read my mind and choose the least convenient possible window display
a buffer in.

Introduce a new command `mdw-designate-window', bound to `C-c w SPC',
which marks a window as being the target for the next buffer shown by
`display-buffer' when its caller doesn't have a better plan.  This
leaves alone things like Magit popups, which already know that they want
to go at the bottom of the current window (and that's fine).

2 years agodot/emacs, el/dot-emacs.el: Add new command for switching window configs.
Mark Wooding [Sun, 1 May 2022 12:37:54 +0000 (13:37 +0100)]
dot/emacs, el/dot-emacs.el: Add new command for switching window configs.

Not sure if I'll like this new approach to working, but it seems OK so
far.

2 years agodot/mdw-build.conf: Don't force the setup rune.
Mark Wooding [Sat, 30 Apr 2022 23:52:06 +0000 (00:52 +0100)]
dot/mdw-build.conf: Don't force the setup rune.

2 years agobin/nocss: Add an option to inhibit the `libdvdcss.so.2' hack.
Mark Wooding [Fri, 8 Apr 2022 14:25:04 +0000 (15:25 +0100)]
bin/nocss: Add an option to inhibit the `libdvdcss.so.2' hack.

This breaks reading DVD images over HTTP for some reason I don't
currently understand.

2 years agodot/emacs: Bind a key to `magit-toggle-buffer-lock'.
Mark Wooding [Fri, 8 Apr 2022 14:24:43 +0000 (15:24 +0100)]
dot/emacs: Bind a key to `magit-toggle-buffer-lock'.

2 years agodot/xinitrc: Run `unclutter'.
Mark Wooding [Wed, 6 Apr 2022 15:42:18 +0000 (16:42 +0100)]
dot/xinitrc: Run `unclutter'.

2 years agoel/dot-emacs.el: Fix configuration for SQL mode.
Mark Wooding [Fri, 25 Mar 2022 20:22:17 +0000 (20:22 +0000)]
el/dot-emacs.el: Fix configuration for SQL mode.

2 years agobin/nocss: Handy script to inhibit CSS decryption by `libdvdread'.
Mark Wooding [Fri, 25 Mar 2022 11:24:46 +0000 (11:24 +0000)]
bin/nocss: Handy script to inhibit CSS decryption by `libdvdread'.

My DVD archive is already decrypted, so CSS is unnecessary; but
`libdvdread' still takes some time -- sometimes a long time -- trying to
`crack' the nonexistent keys, and, on rare occasions, this can actually
result in a failure to read the plain content of the DVD image.