chiark / gitweb /
profile
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.

14 years agodot/emacs, el/dot-emacs.el: Use `whitespace' mode to show anomalies.
Mark Wooding [Mon, 14 Dec 2009 14:34:39 +0000 (14:34 +0000)]
dot/emacs, el/dot-emacs.el: Use `whitespace' mode to show anomalies.

Unfortunately, `whitespace' doesn't suppress highlighting of trailing
space when the cursor is at end-of-line, so we hack `trailing' out of
`whitespace-style' when turning on the fontification.

14 years agodot/emacs, el/dot-emacs.el: Whitespace fixing.
Mark Wooding [Mon, 14 Dec 2009 14:33:32 +0000 (14:33 +0000)]
dot/emacs, el/dot-emacs.el: Whitespace fixing.

Detected by `whitespace' package, installed in the next commit.

14 years agoemacs: Yet another spelling of `git' in `vc-handled-backends'.
Mark Wooding [Sat, 12 Dec 2009 11:17:26 +0000 (11:17 +0000)]
emacs: Yet another spelling of `git' in `vc-handled-backends'.

Worth clobbering, I suppose.

14 years agoel/dot-emacs.el: Clobber `comint-highlight-input' properly.
Mark Wooding [Sat, 12 Dec 2009 11:12:50 +0000 (11:12 +0000)]
el/dot-emacs.el: Clobber `comint-highlight-input' properly.

Just leaving it empty seemed to work on Emacs 23, but doesn't on 22.

14 years agoMerge commit 'ponder'
Mark Wooding [Thu, 10 Dec 2009 17:48:11 +0000 (17:48 +0000)]
Merge commit 'ponder'

* commit 'ponder':
  el/dot-emacs.el: Lots of face settings for monochrome terminals.
  dot/emacs: Remove frame background setting.
  dot/emacs: Expunge `quilt' support.
  dot/emacs: Fix tramp runes.

14 years agoel/dot-emacs.el: Lots of face settings for monochrome terminals.
Mark Wooding [Thu, 10 Dec 2009 17:45:58 +0000 (17:45 +0000)]
el/dot-emacs.el: Lots of face settings for monochrome terminals.

14 years agodot/emacs: Remove frame background setting.
Mark Wooding [Thu, 10 Dec 2009 17:44:53 +0000 (17:44 +0000)]
dot/emacs: Remove frame background setting.

This makes Emacs draw the mode line wrongly in monochrome terminals, for
some reason I don't rightly understand.

14 years agodot/emacs: Expunge `quilt' support.
Mark Wooding [Thu, 10 Dec 2009 13:24:52 +0000 (13:24 +0000)]
dot/emacs: Expunge `quilt' support.

It interacts badly with `tramp', causing specpdl overflows.

Sneaky: Check for `Git' VC support using different case, to avoid
duplication and repetition.

14 years agodot/emacs: Fix tramp runes.
Mark Wooding [Thu, 10 Dec 2009 13:23:17 +0000 (13:23 +0000)]
dot/emacs: Fix tramp runes.

It appears the arguments are meant to be a list of lists.  Otherwise
strange things happen.

14 years agoMerge commit 'ponder'
Mark Wooding [Wed, 9 Dec 2009 00:45:50 +0000 (00:45 +0000)]
Merge commit 'ponder'

* commit 'ponder':
  dot/emacs: Tweaking for `proced'.
  bg/lovelace.jpg: New background of Ada.
  dot/emacs: Remove multihop tramp stuff.

14 years agodot/emacs: Tweaking for `proced'.
Mark Wooding [Tue, 8 Dec 2009 14:21:14 +0000 (14:21 +0000)]
dot/emacs: Tweaking for `proced'.

Show all processes by default; sort by user.  Maybe we'll do something
more intelligent later.

14 years agobg/lovelace.jpg: New background of Ada.
Mark Wooding [Tue, 8 Dec 2009 11:59:36 +0000 (11:59 +0000)]
bg/lovelace.jpg: New background of Ada.

By Sydney Padua, http://2dgoggles.com/.

14 years agodot/emacs: Remove multihop tramp stuff.
Mark Wooding [Tue, 8 Dec 2009 11:57:24 +0000 (11:57 +0000)]
dot/emacs: Remove multihop tramp stuff.

It appears that this is no longer supported (replaced by proxy hacking),
and it makes tramp not load, requiring mighty hacking to load-history
and eval-after-alist to bring it back to sanity.

14 years agobin/emacsclient-hack: Open the window on the right display.
Mark Wooding [Mon, 7 Dec 2009 10:20:53 +0000 (10:20 +0000)]
bin/emacsclient-hack: Open the window on the right display.

By default, Emacsclient doesn't open frames on the client's display.
This grotty shim program does the right magic, by simply passing the
appropriate command-line option.  It's intended for use in `.desktop'
files, because they don't allow shell expansion of environment variables
in the right way.

Silly rabbits.

14 years agoel/dot-emacs.el: Bug fix to last-one-out.
Mark Wooding [Mon, 7 Dec 2009 09:57:49 +0000 (09:57 +0000)]
el/dot-emacs.el: Bug fix to last-one-out.

Silly me.

14 years agoMerge commit 'origin'
Mark Wooding [Mon, 7 Dec 2009 09:45:50 +0000 (09:45 +0000)]
Merge commit 'origin'

* commit 'origin':
  el/dot-emacs.el: Make my writing be legible in ERC.
  bin/mdw-{editor,pager}: Recognize other Emacs terminal types.
  el/dot-emacs.el: Restore `gtags' mouse bindings.
  dot/emacs: Some Perforce tweaks.
  el/dot-emacs.el: Various bits of minor face hacking.
  el/dot-emacs.el: Force an update of the screen when setting faces.
  el/dot-emacs.el: Add `strayman' support at the right time.
  dot/emacs: Fix command to start the server.

Conflicts:
dot/emacs
el/dot-emacs.el

Resolved by removing gnuclient altogether.  Now it's Emacsclient only.

14 years agodot/emacs, el/dot-emacs.el: Add support for the Go programming language.
Mark Wooding [Mon, 7 Dec 2009 09:43:47 +0000 (09:43 +0000)]
dot/emacs, el/dot-emacs.el: Add support for the Go programming language.

Interesting and worth playing with.

14 years agoel/dot-emacs.el: Make my writing be legible in ERC.
Mark Wooding [Mon, 7 Dec 2009 09:41:29 +0000 (09:41 +0000)]
el/dot-emacs.el: Make my writing be legible in ERC.

The default shade of red is way too dark.

14 years agodot/xinitrc: On second thoughts, stalonetray sucks.
Mark Wooding [Mon, 7 Dec 2009 09:33:27 +0000 (09:33 +0000)]
dot/xinitrc: On second thoughts, stalonetray sucks.

It leaks memory and goes mad periodically.  I'm currently using the
Enlightenment systray.

14 years agodot/lisp-init.lisp: Don't signal errors on compile failures in SBCL.
Mark Wooding [Mon, 7 Dec 2009 09:29:42 +0000 (09:29 +0000)]
dot/lisp-init.lisp: Don't signal errors on compile failures in SBCL.

For some reason, ASDF sets *compile-file-failure-behaviour* to :error
specially on SBCL.  Turn it back to :warn.

14 years agobin/mdw-{editor,pager}: Recognize other Emacs terminal types.
Mark Wooding [Thu, 3 Dec 2009 13:34:28 +0000 (13:34 +0000)]
bin/mdw-{editor,pager}: Recognize other Emacs terminal types.

The `emacs' type is there precisely because it isn't `dumb', which will
make `git' apply colouring.  But I think that `M-x ansi-term' is actually
better so I doubt that this will get much use.

It's important to recognize the `term' and `ansi-term' terminals because
trying to start `emacsclient -nw' in them makes Emacs deadlock.  Besides,
plain `emacsclient' is almost certainly more convenient.

14 years agoel/dot-emacs.el: Restore `gtags' mouse bindings.
Mark Wooding [Thu, 3 Dec 2009 13:30:41 +0000 (13:30 +0000)]
el/dot-emacs.el: Restore `gtags' mouse bindings.

Sort of.  I've required C-S-... modifiers so that they don't conflict
with anything else.

14 years agodot/emacs: Some Perforce tweaks.
Mark Wooding [Thu, 3 Dec 2009 13:25:57 +0000 (13:25 +0000)]
dot/emacs: Some Perforce tweaks.

  * Load Perforce support if it's available and we don't mind taking
    some time over it.

  * Persuade `shell' mode to notice `Enter password:' as soliciting a
    password.

14 years agoel/dot-emacs.el: Wrap `save-excursion' around `hs-hide-all' hack.
Mark Wooding [Sat, 28 Nov 2009 17:54:57 +0000 (17:54 +0000)]
el/dot-emacs.el: Wrap `save-excursion' around `hs-hide-all' hack.

Stops point from moving to the top of the buffer.

14 years agobin/mdw-editor: Find out about the Emacs server version.
Mark Wooding [Sat, 21 Nov 2009 11:46:18 +0000 (11:46 +0000)]
bin/mdw-editor: Find out about the Emacs server version.

Emacs 22's client doesn't like the `-nw' option, unsurprisingly.  So
interrogate it first to find out what's going on.

I suppose this also means that there's not a great deal of point in
using the `-a' option, but it doesn't do a great deal of harm.

14 years agoel/dot-emacs.el: In hideshow mode, hide the initial comment.
Mark Wooding [Sat, 21 Nov 2009 11:45:13 +0000 (11:45 +0000)]
el/dot-emacs.el: In hideshow mode, hide the initial comment.

It usually contains boring copyright stuff and so on.  Other comments
are often more interesting, so we (still) don't hide them.

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

* 'master' of metalzone:etc/profile:
  dot/emacs: Consolidate chunks of `add-hook' settings and similar.
  el/dot-emacs.el: Turn on `reveal-mode' because it wins.
  bin/mdw-editor: Use `emacsclient' to edit files.
  dot/emacs: Always start the servers in Emacs 23.
  dot/emacs: Set frame parameters unconditionally.
  el/dot-emacs.el: Add `indent' and `debug' declarations to macros.
  dot/emacs, el/dot-emacs.el: Fix font configuration.
  dot/gnus.el: Use fancy tree drawing if using window-system output.
  dot/xinitrc: Run Emacs with GDK_NATIVE_WINDOWS=1.
  dot/xinitrc: Search for Emacs 23, and prefer it over other Emacsen.

Conflicts:
dot/emacs -- server startup differences

14 years agoel/dot-emacs.el: Disconnect from display when last frame closes.
Mark Wooding [Sat, 21 Nov 2009 11:18:28 +0000 (11:18 +0000)]
el/dot-emacs.el: Disconnect from display when last frame closes.

Now Emacs won't crash when the connection gets severed.  Woohoo.

14 years agoel/dot-emacs.el: Configure `ielm'.
Mark Wooding [Sat, 21 Nov 2009 11:17:41 +0000 (11:17 +0000)]
el/dot-emacs.el: Configure `ielm'.

Why did I never find this before?  It's basically a nice REPL for
Emacs Lisp.

14 years agoel/dot-emacs.el: Add a bunch of search shortcuts for `w3m'.
Mark Wooding [Sat, 21 Nov 2009 11:17:02 +0000 (11:17 +0000)]
el/dot-emacs.el: Add a bunch of search shortcuts for `w3m'.

These are taken from my Firefox search shortcuts.  Putting them here
means that I can look them up easily.

14 years agodot/emacs: Various Emacs-server hacks.
Mark Wooding [Sat, 21 Nov 2009 11:13:33 +0000 (11:13 +0000)]
dot/emacs: Various Emacs-server hacks.

  * Start up server on Emacs 23 regardless of whether there's a window
    system.

  * Start up the Emacs server as well, because it's actually pretty
    good.  And it's better on Emacs 23.

  * Protect the individual server-start operations with `trap's so that
    either can fail without preventing the other one from starting.

14 years agoel/dot-emacs.el: Various bits of minor face hacking.
Mark Wooding [Fri, 13 Nov 2009 17:55:56 +0000 (17:55 +0000)]
el/dot-emacs.el: Various bits of minor face hacking.

14 years agoel/dot-emacs.el: Force an update of the screen when setting faces.
Mark Wooding [Fri, 13 Nov 2009 17:55:29 +0000 (17:55 +0000)]
el/dot-emacs.el: Force an update of the screen when setting faces.

Seems to work.  Very unpleasant, anyway.

14 years agoel/dot-emacs.el: Add `strayman' support at the right time.
Mark Wooding [Fri, 13 Nov 2009 17:54:37 +0000 (17:54 +0000)]
el/dot-emacs.el: Add `strayman' support at the right time.

Avoid unbound-variable errors.

14 years agodot/emacs: Fix command to start the server.
Mark Wooding [Fri, 13 Nov 2009 17:53:01 +0000 (17:53 +0000)]
dot/emacs: Fix command to start the server.

I'm stupid.

14 years agodot/emacs: Consolidate chunks of `add-hook' settings and similar.
Mark Wooding [Mon, 9 Nov 2009 15:09:54 +0000 (15:09 +0000)]
dot/emacs: Consolidate chunks of `add-hook' settings and similar.

This makes hideshow more useful.  More could still be done; the file
is a mess in general.

14 years agoel/dot-emacs.el: Turn on `reveal-mode' because it wins.
Mark Wooding [Mon, 9 Nov 2009 15:05:15 +0000 (15:05 +0000)]
el/dot-emacs.el: Turn on `reveal-mode' because it wins.

14 years agobin/mdw-editor: Use `emacsclient' to edit files.
Mark Wooding [Mon, 9 Nov 2009 15:04:04 +0000 (15:04 +0000)]
bin/mdw-editor: Use `emacsclient' to edit files.

Emacs 23 can open new frames in terminals quite happily.  So we may as
well use it rather than starting up new Emacsen.

14 years agodot/emacs: Always start the servers in Emacs 23.
Mark Wooding [Mon, 9 Nov 2009 15:03:13 +0000 (15:03 +0000)]
dot/emacs: Always start the servers in Emacs 23.

We can always open frames and terminal sessions, so it makes sense to
just have the one Emacs.

14 years agodot/emacs: Set frame parameters unconditionally.
Mark Wooding [Mon, 9 Nov 2009 15:00:16 +0000 (15:00 +0000)]
dot/emacs: Set frame parameters unconditionally.

Now that Emacs 23 can have terminals and native frames simultaneously,
it seems good to always set everything.  And it seems to work OK.

14 years agoel/dot-emacs.el: Add `indent' and `debug' declarations to macros.
Mark Wooding [Mon, 9 Nov 2009 14:53:30 +0000 (14:53 +0000)]
el/dot-emacs.el: Add `indent' and `debug' declarations to macros.

This makes indentation and debugging work properly.  Surprising, no?

14 years agodot/emacs, el/dot-emacs.el: Fix font configuration.
Mark Wooding [Mon, 9 Nov 2009 14:51:13 +0000 (14:51 +0000)]
dot/emacs, el/dot-emacs.el: Fix font configuration.

Remove the unpleasant hacking with mdw-set-font and friends, and all of
the repeated font setting.  It doesn't work properly with Emacs 23,
because it can run in native frames and terminals simultaneously.

Instead, configure the fonts correctly at startup.  Unfortunately,
`defface' doesn't override the existing settings, so we hack the face
properties the hard way.  This actually seems to work, although it doesn't
have a particular right to.

14 years agodot/gnus.el: Use fancy tree drawing if using window-system output.
Mark Wooding [Mon, 9 Nov 2009 14:45:36 +0000 (14:45 +0000)]
dot/gnus.el: Use fancy tree drawing if using window-system output.

There's no terminal coding system for window systems, because there's
no terminal; but Emacs can still show Unicode characters, so we should
use them.

14 years agodot/xinitrc: Run Emacs with GDK_NATIVE_WINDOWS=1.
Mark Wooding [Mon, 9 Nov 2009 14:44:37 +0000 (14:44 +0000)]
dot/xinitrc: Run Emacs with GDK_NATIVE_WINDOWS=1.

This bodges around an Emacs bug which causes menus to be empty and
scroll bars to disappear randomly.  The bug appears in Emacs 22 too.

14 years agodot/xinitrc: Search for Emacs 23, and prefer it over other Emacsen.
Mark Wooding [Mon, 9 Nov 2009 14:43:47 +0000 (14:43 +0000)]
dot/xinitrc: Search for Emacs 23, and prefer it over other Emacsen.

14 years agodot/Xdefaults: Use the full name of `fixed'.
Mark Wooding [Tue, 3 Nov 2009 18:39:32 +0000 (18:39 +0000)]
dot/Xdefaults: Use the full name of `fixed'.

Emacs 23 sees `fixed' and tries to find it as a client-side font.  <sigh>
Now it sees -misc-fixed-... and it does the Right Thing.

14 years agoel/dot-emacs.el: Start hideshow mode /after/ outline.
Mark Wooding [Tue, 3 Nov 2009 17:36:04 +0000 (17:36 +0000)]
el/dot-emacs.el: Start hideshow mode /after/ outline.

Hideshow mode has the more useful keybindings, so let it steal them from
outline rather than 'tother way around.

14 years agoMerge branch 'master' of git+ssh://ponder.ncipher.com/~mwooding/etc/profile
Mark Wooding [Tue, 3 Nov 2009 17:24:58 +0000 (17:24 +0000)]
Merge branch 'master' of git+ssh://ponder.ncipher.com/~mwooding/etc/profile

* 'master' of git+ssh://ponder.ncipher.com/~mwooding/etc/profile:
  dot/fonts.conf: If `Geneva' is requested, supply `FreeSans'.
  el/dot-emacs.el: Use define-derived-mode to make C# mode.
  el/dot-emacs.el: Org-mode hacking to use Strayman class.
  dot/bash_profile: Read bashrc if it's been lost.
  dot/e16-bindings: Add binding to show menu list.

14 years agodot/fonts.conf: If `Geneva' is requested, supply `FreeSans'.
Mark Wooding [Tue, 3 Nov 2009 17:23:53 +0000 (17:23 +0000)]
dot/fonts.conf: If `Geneva' is requested, supply `FreeSans'.

Seems like a better fit.

14 years agoel/dot-emacs.el: Support for hideshow mode.
Mark Wooding [Tue, 3 Nov 2009 17:21:55 +0000 (17:21 +0000)]
el/dot-emacs.el: Support for hideshow mode.

hideshow is mighty and winning.  Turn it on a lot.

14 years agoel/dot-emacs.el: Fix auto-fill magic for `//' comments in C-like modes.
Mark Wooding [Tue, 3 Nov 2009 17:21:26 +0000 (17:21 +0000)]
el/dot-emacs.el: Fix auto-fill magic for `//' comments in C-like modes.

Factor out the hairy regexp into a separate variable, and fix it to
recognize a `//' comment properly.

Also remove the override forcing `/* ... */' comments in Java and C#.

14 years agodot/fonts.conf: More hacking.
Mark Wooding [Wed, 28 Oct 2009 10:36:07 +0000 (10:36 +0000)]
dot/fonts.conf: More hacking.

Surprisingly, not for the Fixed font!  Use the URW Symbols font in
preference to any Windows one kicking around, because it's correctly
encoded.

14 years agoMerge branch 'master' of git+ssh://metalzone.distorted.org.uk/~mdw/etc/profile
Mark Wooding [Fri, 23 Oct 2009 15:50:48 +0000 (16:50 +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: Turn off fancy double-quote handling in TeX modes.
  dot/emacs: Make C-x C-q do editable-Dired.
  git/gitconfig: Add diff rules for Lisp.
  dot/fonts.conf: The saga never ends.
  el/dot-emacs.el: Fix stupid botch in earlier Python mode hacking.

14 years agoMerge branch 'master' of git+ssh://metalzone.distorted.org.uk/~mdw/etc/profile
Mark Wooding [Fri, 23 Oct 2009 15:46:12 +0000 (16:46 +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/fonts.conf: Prevent finding of Fixed Normal.
  dot/mailrc: Parents changed email addresses again.
  bg/bsg-supper: Galactica backdrop of win.
  dot/emacs, el/dot-emacs.el: Fontification for Pyrex code.
  el/dot-emacs.el: Turn electric star and slash back on.
  dot/emacs: Put semantic's droppings somewhere central.
  e16-bindings: Move conservative-maximize bindings off S5.
  dot/e16-bindings: Make 5-F6 toggle keyboard mouse control.
  Go back to xscreensaver.  Mostly.

14 years agoel/dot-emacs.el: Use define-derived-mode to make C# mode.
Mark Wooding [Fri, 23 Oct 2009 15:46:04 +0000 (16:46 +0100)]
el/dot-emacs.el: Use define-derived-mode to make C# mode.

This way actually does the fontification right.

14 years agoel/dot-emacs.el: Org-mode hacking to use Strayman class.
Mark Wooding [Fri, 23 Oct 2009 15:45:39 +0000 (16:45 +0100)]
el/dot-emacs.el: Org-mode hacking to use Strayman class.

Much prettier.