chiark / gitweb /
profile
13 years agobin/svnwrap: Fix unjustifiably stupid error.
Mark Wooding [Sun, 19 Dec 2010 03:13:33 +0000 (03:13 +0000)]
bin/svnwrap: Fix unjustifiably stupid error.

13 years agodot/ercrc.el: Common configuration for ERC.
Mark Wooding [Sun, 19 Dec 2010 03:13:01 +0000 (03:13 +0000)]
dot/ercrc.el: Common configuration for ERC.

13 years agoMerge remote branch 'ponder/master'
Mark Wooding [Tue, 23 Nov 2010 16:54:55 +0000 (16:54 +0000)]
Merge remote branch 'ponder/master'

* ponder/master:
  el/dot-emacs.el: New command for SSH terminal buffers.

13 years agoel/dot-emacs.el: New command for SSH terminal buffers.
Mark Wooding [Tue, 23 Nov 2010 16:53:11 +0000 (16:53 +0000)]
el/dot-emacs.el: New command for SSH terminal buffers.

And some ugly hacking of `term-exec' to allow me to do this.

13 years agodot/emacs, el/Makefile: Random fixes from vampire.
Mark Wooding [Mon, 25 Oct 2010 10:05:36 +0000 (11:05 +0100)]
dot/emacs, el/Makefile: Random fixes from vampire.

I can't, alas, remember what the motivation for these was.

13 years agodot/emacs: Tell Emacs about my dictionaries.
Mark Wooding [Thu, 21 Oct 2010 13:53:12 +0000 (14:53 +0100)]
dot/emacs: Tell Emacs about my dictionaries.

Not quite sure why I had to do this here (ponder), because my other
installations seem happy.  Still, it doesn't seem to hurt.

13 years agoel/dot-emacs.el: Twiddle `eshell' settings.
Mark Wooding [Thu, 21 Oct 2010 13:52:06 +0000 (14:52 +0100)]
el/dot-emacs.el: Twiddle `eshell' settings.

  * Abbreviate the prompt, if possible.

  * Turn the aliases into real functions.  Seems slightly prettier.

13 years agodot/vimrc: Turn on mode-sensitive indentation, and tweak indent levels.
Mark Wooding [Thu, 21 Oct 2010 13:49:55 +0000 (14:49 +0100)]
dot/vimrc: Turn on mode-sensitive indentation, and tweak indent levels.

Not that I use vim for anything.

13 years agodot/bash_profile: Different strategy for finding gnome-keyring-daemon.
Mark Wooding [Sun, 27 Jun 2010 22:19:29 +0000 (23:19 +0100)]
dot/bash_profile: Different strategy for finding gnome-keyring-daemon.

If its environment variables exist and its socket is in the right place,
or we have a session bus and the keyring daemon is listening on it,
then start it up.

13 years agoel/dot-emacs.el: Disable Erlang electricity.
Mark Wooding [Sun, 27 Jun 2010 22:18:17 +0000 (23:18 +0100)]
el/dot-emacs.el: Disable Erlang electricity.

Electric insertions just wind me up wrong.

13 years agodot/putty-defaults: Don't scroll on output.
Mark Wooding [Sun, 27 Jun 2010 22:17:48 +0000 (23:17 +0100)]
dot/putty-defaults: Don't scroll on output.

It's really annoying.

14 years agoMerge remote branch 'ponder'
Mark Wooding [Thu, 3 Jun 2010 20:25:21 +0000 (21:25 +0100)]
Merge remote branch 'ponder'

* ponder:
  dot/Xdefaults: Add more Xft settings.
  el/dot-emacs.el: Configure dired faces.
  el/dot-emacs.el: Don't turn on outline-minor-mode all the time.
  dot/emacs: Remove lots of minor-mode verbiage.

14 years agodot/emacs: Improve shell-mode detection of password prompts.
Mark Wooding [Thu, 3 Jun 2010 18:32:51 +0000 (19:32 +0100)]
dot/emacs: Improve shell-mode detection of password prompts.

It's missing catacomb pixie prompts.

14 years agodot/Xdefaults: Add more Xft settings.
Mark Wooding [Thu, 3 Jun 2010 15:57:17 +0000 (16:57 +0100)]
dot/Xdefaults: Add more Xft settings.

These probably don't do any good, but it's worth a try.

14 years agoel/dot-emacs.el: Configure dired faces.
Mark Wooding [Thu, 3 Jun 2010 15:56:10 +0000 (16:56 +0100)]
el/dot-emacs.el: Configure dired faces.

Colour directories and symlinks to match usual `ls' preferences.  Don't
highlight group-writable permissions.

It's a shame that we can't highlight other things like executable
files.  Oh, well.

14 years agoel/dot-emacs.el: Don't turn on outline-minor-mode all the time.
Mark Wooding [Thu, 3 Jun 2010 15:55:01 +0000 (16:55 +0100)]
el/dot-emacs.el: Don't turn on outline-minor-mode all the time.

Instead, only do it if hideshow isn't there.  This isn't completely
ideal, but it saves mode-line space, removes a largely pointless thing
from the menu bar, and works pretty well.

14 years agodot/emacs: Remove lots of minor-mode verbiage.
Mark Wooding [Thu, 3 Jun 2010 15:52:39 +0000 (16:52 +0100)]
dot/emacs: Remove lots of minor-mode verbiage.

Hack `minor-mode-alist' so that boring things take up less space (or
none at all) in the mode line.  This means that we stand a chance of
being able to see the function name if which-func is on.

14 years agoMerge remote branch 'crybaby'
Mark Wooding [Thu, 20 May 2010 13:26:24 +0000 (14:26 +0100)]
Merge remote branch 'crybaby'

* crybaby:
  dot/emacs: Turn off Senator again.
  el/dot-emacs.el: Don't use a fancy face for `which-func'.

14 years agodot/emacs: Turn off Senator again.
Mark Wooding [Wed, 19 May 2010 23:44:28 +0000 (00:44 +0100)]
dot/emacs: Turn off Senator again.

It's eating way more CPU than it ought to.

14 years agoel/dot-emacs.el: Don't use a fancy face for `which-func'.
Mark Wooding [Wed, 19 May 2010 23:43:47 +0000 (00:43 +0100)]
el/dot-emacs.el: Don't use a fancy face for `which-func'.

It ends up being invisible against non-selected modelines.

14 years agodot/gitconfig.in: Turn on `git rerere'.
Mark Wooding [Mon, 17 May 2010 23:24:51 +0000 (00:24 +0100)]
dot/gitconfig.in: Turn on `git rerere'.

14 years agodot/emacs, el/dot-emacs.el: Fix `split-window-horizontally'.
Mark Wooding [Thu, 13 May 2010 13:45:18 +0000 (14:45 +0100)]
dot/emacs, el/dot-emacs.el: Fix `split-window-horizontally'.

The standard version takes the space used for fringes and scroll bars
out of the space you request for the left window.  (But, oddly, if you
give a negative width, for the right window, then you get what you asked
for.)  This is annoying, so fix it.

Actually fixing (or even advising) `split-window-horizontally' is too
risky to compatibility, so I've invented a new function
`mdw-split-window-horizontally' which does the job right, and rebound
C-x 3 to use the new version.

14 years agodot/bash_profile: Don't start new gnome-keyring-daemon processes.
Mark Wooding [Mon, 10 May 2010 23:07:24 +0000 (00:07 +0100)]
dot/bash_profile: Don't start new gnome-keyring-daemon processes.

Be careful only to kick ones which are already running, by poking D-Bus
and seeing what happens.

14 years agoMerge remote branches 'ponder' and 'crybaby'
Mark Wooding [Thu, 6 May 2010 14:28:22 +0000 (15:28 +0100)]
Merge remote branches 'ponder' and 'crybaby'

* ponder:
  dot/gnus.el: Hack for closing the summary view.
  dot/bashrc: Minor options tweaks.

* crybaby:
  dot/bash_profile: Use gnome-keyring-daemon's SSH agent if available.

14 years agoMerge branch 'master' of git+ssh://metalzone.distorted.org.uk/~mdw/etc/profile
Mark Wooding [Wed, 5 May 2010 16:19:01 +0000 (17:19 +0100)]
Merge branch 'master' of git+ssh://metalzone.distorted.org.uk/~mdw/etc/profile

* 'master' of git+ssh://metalzone.distorted.org.uk/~mdw/etc/profile:
  dot/emacs: Set some calendar variables which don't seem to have values.

14 years agodot/gnus.el: Hack for closing the summary view.
Mark Wooding [Wed, 5 May 2010 14:25:19 +0000 (15:25 +0100)]
dot/gnus.el: Hack for closing the summary view.

The problem is that `q' and `c' don't delete the summary window when
both the summary and message windows are showing, so the group buffer
takes its place in the old message window, and some other buffer appears
where the summary was.

Fix it with some advice.  Hack hack.

14 years agodot/bashrc: Minor options tweaks.
Mark Wooding [Wed, 5 May 2010 14:23:12 +0000 (15:23 +0100)]
dot/bashrc: Minor options tweaks.

Enable `**' wildcards and GNU-style errors; omit things beginning with a
space from the history.

14 years agodot/emacs: Set some calendar variables which don't seem to have values.
Mark Wooding [Mon, 3 May 2010 01:08:00 +0000 (02:08 +0100)]
dot/emacs: Set some calendar variables which don't seem to have values.

Not entirely sure why the calendar stuff isn't giving these default
values.  Hey, ho.

14 years agodot/bash_profile: Use gnome-keyring-daemon's SSH agent if available.
Mark Wooding [Sun, 2 May 2010 19:58:34 +0000 (20:58 +0100)]
dot/bash_profile: Use gnome-keyring-daemon's SSH agent if available.

Quick check before trying to crank up our own agent.

14 years agoMerge branch 'master' of metalzone:etc/profile
Mark Wooding [Mon, 12 Apr 2010 23:27:48 +0000 (00:27 +0100)]
Merge branch 'master' of metalzone:etc/profile

* 'master' of metalzone:etc/profile:
  dot/xinitrc: Punt a bunch of application startup stuff to `gnome-session'.
  setup, pulseaudio, git: Add PulseAudio configuration; substituted dotfiles.
  dot/emacs: Twiddle `{shell,comint}-file-name-chars'.
  bin/mdw-build: Insert missing space.

14 years agodot/xinitrc: Punt a bunch of application startup stuff to `gnome-session'.
Mark Wooding [Mon, 12 Apr 2010 20:01:14 +0000 (21:01 +0100)]
dot/xinitrc: Punt a bunch of application startup stuff to `gnome-session'.

Realization: if I let it do its thing, I have less work to do.  It knows
more about funny infrastructural stuff than I do, and things like
`gkrellm' might not be installed everywhere.

14 years agoMerge remote branch 'ponder'
Mark Wooding [Mon, 12 Apr 2010 18:32:29 +0000 (19:32 +0100)]
Merge remote branch 'ponder'

* ponder:
  setup, pulseaudio, git: Add PulseAudio configuration; substituted dotfiles.

14 years agosetup, pulseaudio, git: Add PulseAudio configuration; substituted dotfiles.
Mark Wooding [Mon, 12 Apr 2010 15:30:30 +0000 (16:30 +0100)]
setup, pulseaudio, git: Add PulseAudio configuration; substituted dotfiles.

Add a notion of a `substituted dotfile', which is installed by applying
a simple sed(1) script to a skeleton rather than messing with symbolic
links.

Install some basic PulseAudio configuration.  Pulse needs this hacking
because it doesn't let us refer to our home directory without an absolute
pathname, which is a total nuisance.

Adopt .gitconfig under this scheme.  The source moves to dot/gitconfig.in
now.

14 years agodot/emacs: Twiddle `{shell,comint}-file-name-chars'.
Mark Wooding [Thu, 8 Apr 2010 19:34:16 +0000 (20:34 +0100)]
dot/emacs: Twiddle `{shell,comint}-file-name-chars'.

At last, command completion works properly.

14 years agobin/mdw-build: Insert missing space.
Mark Wooding [Thu, 8 Apr 2010 19:33:45 +0000 (20:33 +0100)]
bin/mdw-build: Insert missing space.

Purely cosmetic.

14 years agodot/xinitrc: Lower the beep volume.
Mark Wooding [Sun, 4 Apr 2010 12:17:42 +0000 (13:17 +0100)]
dot/xinitrc: Lower the beep volume.

14 years agodot/xinitrc: Fix whitespace crapness.
Mark Wooding [Fri, 2 Apr 2010 16:24:18 +0000 (17:24 +0100)]
dot/xinitrc: Fix whitespace crapness.

Not sure how this crept in.

14 years agosetup, bin/aspell-hack, dot/emacs: Make `aspell' start in $HOME.
Mark Wooding [Thu, 1 Apr 2010 18:14:54 +0000 (19:14 +0100)]
setup, bin/aspell-hack, dot/emacs: Make `aspell' start in $HOME.

Otherwise it starts in some random directory and maybe stops me
unmounting removable media.  Bug reported to Debian.

14 years agodot/xinitrc: Run `gnome-screensaver' by preference.
Mark Wooding [Thu, 1 Apr 2010 08:49:10 +0000 (09:49 +0100)]
dot/xinitrc: Run `gnome-screensaver' by preference.

Now that we've got gnome-session running, there's no reason not to any
more.  And it also does the right thing with the keyring system.

14 years agodot/gnus.el: Use backquote in the tree display.
Mark Wooding [Wed, 31 Mar 2010 22:20:52 +0000 (23:20 +0100)]
dot/gnus.el: Use backquote in the tree display.

Looks more rounded, at least now that I have traditional quote glyphs.

14 years agoMerge remote branch 'crybaby'
Mark Wooding [Wed, 31 Mar 2010 09:13:14 +0000 (10:13 +0100)]
Merge remote branch 'crybaby'

* crybaby:
  dot/emacs: Mark the `edit-server' process as expendable.

14 years agodot/emacs: Mark the `edit-server' process as expendable.
Mark Wooding [Wed, 31 Mar 2010 09:11:34 +0000 (10:11 +0100)]
dot/emacs: Mark the `edit-server' process as expendable.

Don't want it holding up closedown.  I should submit a bug about this.

14 years agoMerge branch 'master' of git+ssh://metalzone.distorted.org.uk/~mdw/etc/profile
Mark Wooding [Tue, 30 Mar 2010 12:25:12 +0000 (13:25 +0100)]
Merge branch 'master' of git+ssh://metalzone.distorted.org.uk/~mdw/etc/profile

* 'master' of git+ssh://metalzone.distorted.org.uk/~mdw/etc/profile:
  el/dot-emacs.el: `mdw-whitespace-mode' changes trailing visibility.
  dot/xinitrc: Start gnome-session(1).
  Merge remote branches 'crybaby' and 'ponder'
  dot/xinitrc: Wait for e16 to start, and tweak cursor after it does.
  dot/e16-bindings: New bindings for moving and resizing windows.
  dot/e16-bindings: Use xinitcmd(1) rather than xatom(1).
  dot/xinitrc: Provide mnemonics for xgetline(1) prompts.
  dot/bash_profile (__mdw_addto): Quote new value properly.
  dot/emacs: Support the Chrome edit server.
  dot/vimrc: Use the right font and colours.  Turn on autoindent.
  dot/xinitrc: Whoops.  Spelt the Gnome authentication agent thing wrong.
  el/dot-emacs.el: Twiddle `variable-pitch' face size for Emacs 22.

14 years agoel/dot-emacs.el: Remove `turn-on-font-lock-if-enabled'.
Mark Wooding [Tue, 30 Mar 2010 12:22:16 +0000 (13:22 +0100)]
el/dot-emacs.el: Remove `turn-on-font-lock-if-enabled'.

Doesn't seem to exist any more in Emacs 23; doesn't do much of any use
in Emacs 22 anyway.

14 years agodot/emacs, el/dot-emacs.el: Use Chrome as the default URL browser.
Mark Wooding [Tue, 30 Mar 2010 12:21:43 +0000 (13:21 +0100)]
dot/emacs, el/dot-emacs.el: Use Chrome as the default URL browser.

Nothing particularly clever here.

14 years agodot/e16-bindings: Keyboard shortcut for `zoom'.
Mark Wooding [Tue, 30 Mar 2010 12:20:12 +0000 (13:20 +0100)]
dot/e16-bindings: Keyboard shortcut for `zoom'.

Doesn't seem to work properly right now.  Maybe later.

14 years agoel/dot-emacs.el: `mdw-whitespace-mode' changes trailing visibility.
Mark Wooding [Tue, 30 Mar 2010 09:02:41 +0000 (10:02 +0100)]
el/dot-emacs.el: `mdw-whitespace-mode' changes trailing visibility.

A one-stop shop for whitespace offences.

14 years agoMerge remote branch 'crybaby'
Mark Wooding [Tue, 30 Mar 2010 09:02:20 +0000 (10:02 +0100)]
Merge remote branch 'crybaby'

* crybaby:
  dot/xinitrc: Start gnome-session(1).

14 years agodot/xinitrc: Start gnome-session(1).
Mark Wooding [Tue, 30 Mar 2010 08:50:08 +0000 (09:50 +0100)]
dot/xinitrc: Start gnome-session(1).

I think I've rigged it to not actually start anything on all my machines
now.  Very annoying.

14 years agoMerge remote branches 'crybaby' and 'ponder'
Mark Wooding [Mon, 29 Mar 2010 20:34:17 +0000 (21:34 +0100)]
Merge remote branches 'crybaby' and 'ponder'

* crybaby:
  dot/xinitrc: Wait for e16 to start, and tweak cursor after it does.
  dot/e16-bindings: New bindings for moving and resizing windows.
  dot/e16-bindings: Use xinitcmd(1) rather than xatom(1).
  dot/xinitrc: Provide mnemonics for xgetline(1) prompts.

* ponder:

14 years agodot/xinitrc: Wait for e16 to start, and tweak cursor after it does.
Mark Wooding [Mon, 29 Mar 2010 20:16:11 +0000 (20:16 +0000)]
dot/xinitrc: Wait for e16 to start, and tweak cursor after it does.

This should also stop xterms and the like getting in before E does and
ending up in the wrong places as a result.

14 years agoMerge branch 'master' of metalzone:etc/profile
Mark Wooding [Mon, 29 Mar 2010 17:22:57 +0000 (18:22 +0100)]
Merge branch 'master' of metalzone:etc/profile

* 'master' of metalzone:etc/profile:
  dot/bash_profile (__mdw_addto): Quote new value properly.
  dot/xinitrc: Whoops.  Spelt the Gnome authentication agent thing wrong.
  dot/emacs: Have w3m display PDF files in Evince.
  dot/emacs: Remove Senator's unpleasant claws from isearch.
  el/dot-emacs.el: Remove further stray debugging code.
  el/dot-emacs.el: Allow `+' as a list item marker.
  dot/emacs: Remove VCS directories from `completion-ignored-extensions'
  .gitattributes: Diff Emacs Lisp files as Lisp.
  dot/bash_profile (__mdw_addto) SECURITY: Only set var if it changed.
  dot/xinitrc: Start policykit authentication agent if present.
  el/dot-emacs.el: Explicitly indent with spaces in Python-like modes.
  el/dot-emacs.el: Front-end function for turning on `whitespace-mode'.
  dot/emacs: Use `window-system-default-frame-alist'.
  dot/Xdefaults: Use server fonts by default in Emacs.
  dot/emacs: Turn on column number display.
  dot/emacs: More `dired' hacking: tweak keymap.
  dot/emacs: Tweak `dired' settings.
  dot/emacs: Force use of server-side X fonts.
  dot/emacs: Make `gnus' be the default mail reader.
  dot/emacs: Fix stupid bug in `tramp' setup.

14 years agodot/e16-bindings: New bindings for moving and resizing windows.
Mark Wooding [Mon, 29 Mar 2010 17:21:07 +0000 (18:21 +0100)]
dot/e16-bindings: New bindings for moving and resizing windows.

Not perfect: the focus can end up in the wrong place afterwards.  Could
be fixed for moving by warping the pointer -- except if the window isn't
at the top of the z-order.  Oh, well.

14 years agodot/e16-bindings: Use xinitcmd(1) rather than xatom(1).
Mark Wooding [Mon, 29 Mar 2010 17:20:21 +0000 (18:20 +0100)]
dot/e16-bindings: Use xinitcmd(1) rather than xatom(1).

It's shorter, and means I can change stuff more easily.

14 years agodot/xinitrc: Provide mnemonics for xgetline(1) prompts.
Mark Wooding [Mon, 29 Mar 2010 17:19:18 +0000 (18:19 +0100)]
dot/xinitrc: Provide mnemonics for xgetline(1) prompts.

14 years agodot/bash_profile (__mdw_addto): Quote new value properly.
Mark Wooding [Wed, 17 Mar 2010 16:57:35 +0000 (16:57 +0000)]
dot/bash_profile (__mdw_addto): Quote new value properly.

This surfaces on Windows, where directories on the PATH commonly have
spaces in their names (particularly `Program Files').

It doesn't look security critical: you have to be on the other side of
the airtight hatch to mess with my initial environment anyway.

14 years agoMerge remote branch 'crybaby'
Mark Wooding [Thu, 18 Feb 2010 15:33:26 +0000 (15:33 +0000)]
Merge remote branch 'crybaby'

* crybaby:
  dot/emacs: Support the Chrome edit server.
  dot/vimrc: Use the right font and colours.  Turn on autoindent.
  el/dot-emacs.el: Twiddle `variable-pitch' face size for Emacs 22.

14 years agodot/emacs: Support the Chrome edit server.
Mark Wooding [Wed, 17 Feb 2010 15:29:55 +0000 (15:29 +0000)]
dot/emacs: Support the Chrome edit server.

14 years agodot/vimrc: Use the right font and colours. Turn on autoindent.
Mark Wooding [Wed, 17 Feb 2010 15:29:15 +0000 (15:29 +0000)]
dot/vimrc: Use the right font and colours.  Turn on autoindent.

14 years agodot/xinitrc: Whoops. Spelt the Gnome authentication agent thing wrong.
Mark Wooding [Fri, 5 Feb 2010 18:57:18 +0000 (18:57 +0000)]
dot/xinitrc: Whoops.  Spelt the Gnome authentication agent thing wrong.

Fixfixfix.

14 years agodot/emacs: Have w3m display PDF files in Evince.
Mark Wooding [Thu, 4 Feb 2010 13:24:52 +0000 (13:24 +0000)]
dot/emacs: Have w3m display PDF files in Evince.

Maybe I'll prefer DocView eventually, but for now...

14 years agodot/emacs: Remove Senator's unpleasant claws from isearch.
Mark Wooding [Thu, 4 Feb 2010 13:24:07 +0000 (13:24 +0000)]
dot/emacs: Remove Senator's unpleasant claws from isearch.

This unbreaks Info mode search, so we can ramp Senator back up again.

14 years agoel/dot-emacs.el: Remove further stray debugging code.
Mark Wooding [Thu, 4 Feb 2010 13:22:27 +0000 (13:22 +0000)]
el/dot-emacs.el: Remove further stray debugging code.

From `mdw-last-one-out-turn-off-the-lights'.  Again.

14 years agoel/dot-emacs.el: Allow `+' as a list item marker.
Mark Wooding [Thu, 4 Feb 2010 13:21:52 +0000 (13:21 +0000)]
el/dot-emacs.el: Allow `+' as a list item marker.

This is useful for Org mode; while Org itself is happy enough with `*' as
a marker, the LaTeX exporter doesn't recognize it, so I'll use `+'
instead.

14 years agodot/emacs: Remove VCS directories from `completion-ignored-extensions'
Mark Wooding [Thu, 4 Feb 2010 13:20:14 +0000 (13:20 +0000)]
dot/emacs: Remove VCS directories from `completion-ignored-extensions'

What I /want/ to do is have Emacs not ignore `.git' as a suffix on a
directory name, but still ignore the VCS directory, but it doesn't seem
to work like that.  More on this later, probably.

14 years ago.gitattributes: Diff Emacs Lisp files as Lisp.
Mark Wooding [Thu, 4 Feb 2010 13:18:13 +0000 (13:18 +0000)]
.gitattributes: Diff Emacs Lisp files as Lisp.

14 years agodot/bash_profile (__mdw_addto) SECURITY: Only set var if it changed.
Mark Wooding [Mon, 18 Jan 2010 14:45:04 +0000 (14:45 +0000)]
dot/bash_profile (__mdw_addto) SECURITY: Only set var if it changed.

If this isn't done, we end up with empty variables where previously they
were unset.  This is especially bad for PYTHONPATH, which will pick
`site.py' out of the current directory.

14 years agodot/xinitrc: Start policykit authentication agent if present.
Mark Wooding [Tue, 12 Jan 2010 11:20:20 +0000 (11:20 +0000)]
dot/xinitrc: Start policykit authentication agent if present.

This will, with luck, be more convenient than without.  Maybe this is
the wrong approach and I ought to actually run the Gnome session manager
(which might start this agent automatically).

14 years agoMerge branch 'master' of git+ssh://metalzone.distorted.org.uk/~mdw/etc/profile
Mark Wooding [Mon, 11 Jan 2010 17:02:44 +0000 (17:02 +0000)]
Merge branch 'master' of git+ssh://metalzone.distorted.org.uk/~mdw/etc/profile

* 'master' of git+ssh://metalzone.distorted.org.uk/~mdw/etc/profile:
  dot/emacs: Use `window-system-default-frame-alist'.
  dot/Xdefaults: Use server fonts by default in Emacs.
  dot/emacs: Turn on column number display.
  dot/emacs: More `dired' hacking: tweak keymap.
  dot/emacs: Tweak `dired' settings.
  dot/emacs: Force use of server-side X fonts.
  dot/emacs: Make `gnus' be the default mail reader.
  dot/emacs: Fix stupid bug in `tramp' setup.
  el/dot-emacs.el: Complicated `exchange-point-and-mark' hack.
  dot/emacs: Insinuate `org' with `remember'.
  dot/emacs: Format line numbers prettily.
  dot/emacs: Turn password expiry off.
  dot/emacs: Tweak file-local variable settings.
  el/dot-emacs.el: Use `make-local-variable'.
  bin/mdw-build: Cross-check Git and Debian version numbers.
  dot/emacs, el/dot-emacs.el: Fix `tramp-methods' some more.
  dot/emacs, el/dot-emacs.el: Fix patterns for root prompt.
  emacs: Yet another spelling of `git' in `vc-handled-backends'.
  el/dot-emacs.el: Clobber `comint-highlight-input' properly.

14 years agoel/dot-emacs.el: Explicitly indent with spaces in Python-like modes.
Mark Wooding [Mon, 11 Jan 2010 16:59:28 +0000 (16:59 +0000)]
el/dot-emacs.el: Explicitly indent with spaces in Python-like modes.

The `python-mode' does this anyway, but if we do it ourselves at the
right time then `whitespace-mode' gets clued in and highlights tabs
(rather than tab-equivalent groups of spaces).

14 years agoel/dot-emacs.el: Front-end function for turning on `whitespace-mode'.
Mark Wooding [Mon, 11 Jan 2010 16:57:39 +0000 (16:57 +0000)]
el/dot-emacs.el: Front-end function for turning on `whitespace-mode'.

We (still) don't want to highlight trailing spaces because
`show-trailing-whitespace' does the job better.  But this is a useful
thing to be able to do interactively, so turn it into a command.

Maybe I should think about turning it into a derived minor mode.

14 years agodot/emacs: Use `window-system-default-frame-alist'.
Mark Wooding [Mon, 11 Jan 2010 09:50:02 +0000 (09:50 +0000)]
dot/emacs: Use `window-system-default-frame-alist'.

Rather than building `default-frame-alist' conditionally according to
the prevailing `window-system'.  We can now make do without the
`mdw-set-frame-parameters' hack.

Depending on when `window-system-default-frame-alist' was introduced, we
may yet need a compatibility hack for Emacs 22.

14 years agodot/Xdefaults: Use server fonts by default in Emacs.
Mark Wooding [Mon, 11 Jan 2010 09:48:10 +0000 (09:48 +0000)]
dot/Xdefaults: Use server fonts by default in Emacs.

Setting the `font-backend' parameter in `default-frame-alist' (or
`window-system-default-frame-alist') doesn't seem to work: it gets
applied too late and the font name gets badly mangled as a result.

14 years agodot/emacs: Turn on column number display.
Mark Wooding [Mon, 4 Jan 2010 11:34:22 +0000 (11:34 +0000)]
dot/emacs: Turn on column number display.

Why not?

14 years agodot/emacs: More `dired' hacking: tweak keymap.
Mark Wooding [Mon, 4 Jan 2010 11:32:08 +0000 (11:32 +0000)]
dot/emacs: More `dired' hacking: tweak keymap.

In Emacs23, C-x C-q is already bound to a slightly different function.
So don't fiddle if that key is already bound.  Also, bind C-c C-s for
making relative symlinks.  (Could have used plain `r' but that seems
weird.)

14 years agodot/emacs: Tweak `dired' settings.
Mark Wooding [Mon, 4 Jan 2010 11:28:58 +0000 (11:28 +0000)]
dot/emacs: Tweak `dired' settings.

Mainly reformatting, to group the settings together.  Set `wdired' to
use advanced mode for editing permissions.

14 years agodot/emacs: Force use of server-side X fonts.
Mark Wooding [Sun, 3 Jan 2010 17:05:57 +0000 (17:05 +0000)]
dot/emacs: Force use of server-side X fonts.

The client-side fonts through Xft are unreasonably slow.  This hack
seems to work fairly well; we still have most of the right international
characters.

14 years agodot/emacs: Make `gnus' be the default mail reader.
Mark Wooding [Sun, 3 Jan 2010 15:35:27 +0000 (15:35 +0000)]
dot/emacs: Make `gnus' be the default mail reader.

This gets used by the `biff'-a-like in the mode line.

14 years agodot/emacs: Fix stupid bug in `tramp' setup.
Mark Wooding [Sun, 3 Jan 2010 15:34:45 +0000 (15:34 +0000)]
dot/emacs: Fix stupid bug in `tramp' setup.

With a little luck, this will finally finish off the recursive `load'
errors.

14 years agoel/dot-emacs.el: Twiddle `variable-pitch' face size for Emacs 22.
Mark Wooding [Thu, 31 Dec 2009 00:05:10 +0000 (00:05 +0000)]
el/dot-emacs.el: Twiddle `variable-pitch' face size for Emacs 22.

Seems like 12pt was too big.  Go figure.

14 years agoel/dot-emacs.el: Complicated `exchange-point-and-mark' hack.
Mark Wooding [Sun, 27 Dec 2009 12:30:13 +0000 (12:30 +0000)]
el/dot-emacs.el: Complicated `exchange-point-and-mark' hack.

Inspired by a remark made in

http://www.emacswiki.org/emacs/TransientMarkMode

14 years agodot/emacs: Insinuate `org' with `remember'.
Mark Wooding [Sun, 27 Dec 2009 11:43:23 +0000 (11:43 +0000)]
dot/emacs: Insinuate `org' with `remember'.

Maybe I'll remember to use them.

14 years agodot/emacs: Format line numbers prettily.
Mark Wooding [Sun, 27 Dec 2009 11:43:01 +0000 (11:43 +0000)]
dot/emacs: Format line numbers prettily.

They'll take up eight columns, which makes tabs work; there's a space
after.

14 years agodot/emacs: Turn password expiry off.
Mark Wooding [Sun, 27 Dec 2009 11:09:52 +0000 (11:09 +0000)]
dot/emacs: Turn password expiry off.

It's annoying.  Emacs still has the running sessions, so it doesn't seem
sensible to stop it having the passwords.

14 years agodot/emacs: Tweak file-local variable settings.
Mark Wooding [Sun, 27 Dec 2009 11:08:50 +0000 (11:08 +0000)]
dot/emacs: Tweak file-local variable settings.

Don't be interactive; just be cautious and don't do things which seem
scary.  I'll fiddle with safe-local-variable-values if I feel inclined.

14 years agoel/dot-emacs.el: Use `make-local-variable'.
Mark Wooding [Sun, 27 Dec 2009 11:07:53 +0000 (11:07 +0000)]
el/dot-emacs.el: Use `make-local-variable'.

Previously I used `make-variable-buffer-local', which provokes warnings
from the byte compiler and doesn't mean at all the same thing.

14 years agobin/mdw-build: Cross-check Git and Debian version numbers.
Mark Wooding [Sat, 26 Dec 2009 20:09:36 +0000 (20:09 +0000)]
bin/mdw-build: Cross-check Git and Debian version numbers.

I don't think I've come a cropper over this before, but it seems like a
sensible thing to take care of.

14 years agoMerge branch 'master' of metalzone:etc/profile
Mark Wooding [Sat, 26 Dec 2009 11:26:37 +0000 (11:26 +0000)]
Merge branch 'master' of metalzone:etc/profile

* 'master' of metalzone:etc/profile:
  dot/emacs, el/dot-emacs.el: Fix patterns for root prompt.

14 years agodot/emacs, el/dot-emacs.el: Fix `tramp-methods' some more.
Mark Wooding [Sat, 26 Dec 2009 11:24:07 +0000 (11:24 +0000)]
dot/emacs, el/dot-emacs.el: Fix `tramp-methods' some more.

The change to the format of `tramp-login-args' is only in 2.1 and later,
it seems.  So conditionally twiddle the arguments appropriately,
depending on the version we find.  Because Tramp only provides its
version number as a string, this involves adding a new function to
order such strings.

Sneakily allow an empty hostname as a replacement for localhost, and use
`become' or `really' or whatever.

14 years agodot/emacs, el/dot-emacs.el: Fix patterns for root prompt.
Mark Wooding [Wed, 23 Dec 2009 10:38:21 +0000 (10:38 +0000)]
dot/emacs, el/dot-emacs.el: Fix patterns for root prompt.

If it's a root prompt on a deficient terminal, it'll have two `>' at the
end.  Of course, if it's on a stale terminal for a non-root session,
it'll only have one, so be careful.

14 years agoMerge remote branches 'ponder' and 'crybaby'
Mark Wooding [Sun, 20 Dec 2009 22:58:29 +0000 (22:58 +0000)]
Merge remote branches 'ponder' and 'crybaby'

* ponder:
  el/dot-emacs.el: Aliases for `eshell'.
  el/dot-emacs.el: Remove menu bar from dumb terminals.
  el/dot-emacs.el: Remove stray debugging code.
  el/dot-emacs.el: Emacs 22 doesn't have `whitespace-mode'.
  dot/bash_profile: Use Perforce configuration files.

* crybaby:
  emacs: Yet another spelling of `git' in `vc-handled-backends'.
  el/dot-emacs.el: Clobber `comint-highlight-input' properly.

14 years agoel/dot-emacs.el: Aliases for `eshell'.
Mark Wooding [Thu, 17 Dec 2009 17:52:54 +0000 (17:52 +0000)]
el/dot-emacs.el: Aliases for `eshell'.

Not entirely sure about these, but they support existing muscle memory
a little.

14 years agoel/dot-emacs.el: Remove menu bar from dumb terminals.
Mark Wooding [Thu, 17 Dec 2009 17:52:28 +0000 (17:52 +0000)]
el/dot-emacs.el: Remove menu bar from dumb terminals.

Now that Emacs can work on different terminal kinds at the same time,
it seems sensible that one might want different parameters for them.  But
it won't let me.  So I have an alist indexed by `window-system'.

14 years agoel/dot-emacs.el: Remove stray debugging code.
Mark Wooding [Thu, 17 Dec 2009 17:51:30 +0000 (17:51 +0000)]
el/dot-emacs.el: Remove stray debugging code.

14 years agoel/dot-emacs.el: Emacs 22 doesn't have `whitespace-mode'.
Mark Wooding [Thu, 17 Dec 2009 17:51:05 +0000 (17:51 +0000)]
el/dot-emacs.el: Emacs 22 doesn't have `whitespace-mode'.

So use `trap'.

14 years agodot/bash_profile: Use Perforce configuration files.
Mark Wooding [Thu, 17 Dec 2009 17:49:43 +0000 (17:49 +0000)]
dot/bash_profile: Use Perforce configuration files.

Don't need the various `mdw-conf' parameters any more.

14 years agoel/dot-emacs.el: Experimental tweaking for the Emacs shell.
Mark Wooding [Tue, 15 Dec 2009 14:41:05 +0000 (14:41 +0000)]
el/dot-emacs.el: Experimental tweaking for the Emacs shell.

Now Emacs is my shell.  Truly, I shall not want.

14 years agosetup: Consider `emacs23' to be an acceptable Emacs.
Mark Wooding [Tue, 15 Dec 2009 12:09:01 +0000 (12:09 +0000)]
setup: Consider `emacs23' to be an acceptable Emacs.

Prefer `emacs22', because the byte compiled code seems upwards
compatible.

14 years agoel/dot-emacs.el: Fix `whitespace' hacking.
Mark Wooding [Tue, 15 Dec 2009 12:06:27 +0000 (12:06 +0000)]
el/dot-emacs.el: Fix `whitespace' hacking.

Life is more complicated, because `whitespace' fiddles with font lock.
So we have to arrange to turn on `whitespace' /after/ doing the font
lock configuration for the individual modes.  Oh, well.

14 years agodot/emacs: Set `woman' fill column.
Mark Wooding [Mon, 14 Dec 2009 17:20:34 +0000 (17:20 +0000)]
dot/emacs: Set `woman' fill column.

Slightly wider text is easier to read.  Honest.