chiark / gitweb /
profile
15 years agoemacs: Handle mutt files as email.
Mark Wooding [Wed, 8 Oct 2008 15:56:54 +0000 (16:56 +0100)]
emacs: Handle mutt files as email.

15 years agobash_profile: Set Perforce environment variables.
Mark Wooding [Wed, 8 Oct 2008 15:56:34 +0000 (16:56 +0100)]
bash_profile: Set Perforce environment variables.

15 years agoemacs, dot-emacs: Turn on RefTeX.
Mark Wooding [Wed, 8 Oct 2008 12:31:21 +0000 (13:31 +0100)]
emacs, dot-emacs: Turn on RefTeX.

RefTeX is made of win, so use it.

15 years agodot-emacs: Fix the C mode hacking.
Mark Wooding [Wed, 8 Oct 2008 12:31:02 +0000 (13:31 +0100)]
dot-emacs: Fix the C mode hacking.

Don't clobber the C mode map until the C mode is actually loaded!

15 years agoemacs: Don't explicitly set TeX-master any more.
Mark Wooding [Wed, 8 Oct 2008 12:30:23 +0000 (13:30 +0100)]
emacs: Don't explicitly set TeX-master any more.

If we do this, then newer Emacsen seem to think that TeX-master is
evil as a local variable and complain when visiting .tex files.

Also remove some old crufty TeX settings.

15 years agoemacs: Highlight full tables of contents in Info.
Mark Wooding [Wed, 8 Oct 2008 12:03:43 +0000 (13:03 +0100)]
emacs: Highlight full tables of contents in Info.

The default behaviour pegs out on largish `Top' nodes, which is rather
unhelpful.  We have the power to do the job properly.

15 years agotoprc: Random tweaking. Highlight sort columns.
Mark Wooding [Wed, 8 Oct 2008 12:02:51 +0000 (13:02 +0100)]
toprc: Random tweaking.  Highlight sort columns.

15 years agolisp-init.lisp: Make the CLisp namestring parsing less mad.
Mark Wooding [Wed, 8 Oct 2008 11:59:00 +0000 (12:59 +0100)]
lisp-init.lisp: Make the CLisp namestring parsing less mad.

The default behaviour has some crazy hacks for demented Micro$oft
operating systems, in particular distinguishing drive letters from
logical pathname hosts.

15 years agodot-emacs: Don't electrically indent on `*' or `/'.
Mark Wooding [Wed, 8 Oct 2008 11:56:24 +0000 (12:56 +0100)]
dot-emacs: Don't electrically indent on `*' or `/'.

This is really annoying on strangely indented lines when adding
commentary.

15 years agoemacs: Support for Erlang.
Mark Wooding [Wed, 8 Oct 2008 11:55:22 +0000 (12:55 +0100)]
emacs: Support for Erlang.

Sketchy but at least it's there.

Also sneak in a couple of bits of support for C# which somehow slipped
through the net before.

16 years agoMerge branch 'master' of git+ssh://ponder.ncipher.com/~mwooding/etc/profile
Mark Wooding [Tue, 20 May 2008 14:35:46 +0000 (15:35 +0100)]
Merge branch 'master' of git+ssh://ponder.ncipher.com/~mwooding/etc/profile

* 'master' of git+ssh://ponder.ncipher.com/~mwooding/etc/profile:
  emacs: Turn on mark-even-if-inactive.
  emacs: Add Timesheet magic.
  emacs: Local configuration files.

16 years agoemacs: Turn on mark-even-if-inactive.
Mark Wooding [Tue, 20 May 2008 14:29:23 +0000 (15:29 +0100)]
emacs: Turn on mark-even-if-inactive.

This means that the region always `works', even if it's not active and
visible.  Probably the best of both worlds.

16 years agoemacs: Add Timesheet magic.
Mark Wooding [Mon, 19 May 2008 14:49:09 +0000 (15:49 +0100)]
emacs: Add Timesheet magic.

16 years agoemacs: Local configuration files.
Mark Wooding [Mon, 19 May 2008 14:48:40 +0000 (15:48 +0100)]
emacs: Local configuration files.

  * Set up .emacs-local for local configuration (i.e., not handled
    by ~/etc/profile).

  * Set up .emacs-custom for the Emacs Customizer.

16 years agoMerge branch 'master' of git+ssh://ponder.ncipher.com/~mwooding/etc/profile
Mark Wooding [Thu, 15 May 2008 10:46:31 +0000 (11:46 +0100)]
Merge branch 'master' of git+ssh://ponder.ncipher.com/~mwooding/etc/profile

* 'master' of git+ssh://ponder.ncipher.com/~mwooding/etc/profile:
  emacs: Initial blogging support.
  emacs: Turn off fontification in shell mode.
  emacs: Force py-shell to start ipython with the right colours.
  bashrc, dircolors: Enable colouring for `dumb' terminals.
  dot-emacs: Clobber message-mode's header colours.

16 years agodot-emacs; Base mdwmail-mode on mail-mode rather than text-mode.
Mark Wooding [Thu, 15 May 2008 10:46:21 +0000 (11:46 +0100)]
dot-emacs; Base mdwmail-mode on mail-mode rather than text-mode.

This seems to do more useful fontification and (significantly) paragraph
motion.

16 years agoemacs: Initial blogging support.
Mark Wooding [Thu, 15 May 2008 10:44:46 +0000 (11:44 +0100)]
emacs: Initial blogging support.

It doesn't work very well; this might be a dead end.

16 years agoemacs: Turn off fontification in shell mode.
Mark Wooding [Thu, 15 May 2008 10:44:02 +0000 (11:44 +0100)]
emacs: Turn off fontification in shell mode.

It doesn't do anything useful anyway, and collides annoyingly with
natural colours of inferior programs.

16 years agoemacs: Force py-shell to start ipython with the right colours.
Mark Wooding [Thu, 15 May 2008 10:42:57 +0000 (11:42 +0100)]
emacs: Force py-shell to start ipython with the right colours.

It chooses LightBG by default, which is hopeless.

16 years agobashrc, dircolors: Enable colouring for `dumb' terminals.
Mark Wooding [Thu, 15 May 2008 10:41:56 +0000 (11:41 +0100)]
bashrc, dircolors: Enable colouring for `dumb' terminals.

Modern Emacsen understand colour codes in shell mode, so this is OK.

Also use tput to find the bolding codes, and add support for Emacs's
`eterm' terminal.

16 years agodot-emacs: Clobber message-mode's header colours.
Mark Wooding [Thu, 15 May 2008 10:29:25 +0000 (11:29 +0100)]
dot-emacs: Clobber message-mode's header colours.

They're almost unreadable on a black background.

16 years agoemacs, dot-emacs: Hacking outline mode.
Mark Wooding [Fri, 9 May 2008 22:49:12 +0000 (23:49 +0100)]
emacs, dot-emacs: Hacking outline mode.

  * C-c ... C-r (`reveal-mode') turns on or off reveal-mode.

  * C-c ... C-- (`mdw-outline-collapse-all') collapses the entire
    buffer.  C mode in particular doesn't collapse comments unless
    beaten over the head rather vigorously.  This command does the
    beating.

16 years agoMerge branch 'master' of git+ssh://ponder.ncipher.com/~mwooding/etc/profile
Mark Wooding [Fri, 9 May 2008 21:25:00 +0000 (22:25 +0100)]
Merge branch 'master' of git+ssh://ponder.ncipher.com/~mwooding/etc/profile

* 'master' of git+ssh://ponder.ncipher.com/~mwooding/etc/profile:
  emacs: In programming modes (at least) treat `------' as a page boundary.

16 years agoemacs: In programming modes (at least) treat `------' as a page boundary.
Mark Wooding [Fri, 9 May 2008 21:23:59 +0000 (22:23 +0100)]
emacs: In programming modes (at least) treat `------' as a page boundary.

16 years agoMerge branch 'master' of git+ssh://ponder.ncipher.com/~mwooding/etc/profile
Mark Wooding [Fri, 9 May 2008 21:22:37 +0000 (22:22 +0100)]
Merge branch 'master' of git+ssh://ponder.ncipher.com/~mwooding/etc/profile

* 'master' of git+ssh://ponder.ncipher.com/~mwooding/etc/profile:
  emacs: Add key bindings for timeclock functions.

Conflicts:

emacs: two independent lots of keybindings in the same place

16 years agoemacs: Add support for the org-mode.
Mark Wooding [Fri, 9 May 2008 21:19:48 +0000 (22:19 +0100)]
emacs: Add support for the org-mode.

org-mode is very impressive; but it'll need some key rebinding before
I can cope with it; in particular, its rebinding of S-<cursor> and
(particularly) M-<cursor> is just not on!

16 years agoemacs: Pull in foldout along with the outline mode.
Mark Wooding [Fri, 9 May 2008 21:18:45 +0000 (22:18 +0100)]
emacs: Pull in foldout along with the outline mode.

The foldout zooming stuff seems quite cool.

16 years agoemacs: Add key bindings for timeclock functions.
Mark Wooding [Thu, 8 May 2008 10:28:11 +0000 (11:28 +0100)]
emacs: Add key bindings for timeclock functions.

We don't yet have operations for extracting the data in the format
required by the timesheet system, but that can wait.  At least we can
collect the raw data now.

16 years agodot-emacs: Make the region show up in terminals.
Mark Wooding [Wed, 7 May 2008 17:33:11 +0000 (18:33 +0100)]
dot-emacs: Make the region show up in terminals.

This is ugly, but at least it makes the region visible.  This is valuable
for keystrokes like C-M-SPC, and M-h and C-M-h which incrementally
extend the region.

16 years agodot-emacs: Don't un-electrify characters in mdw-misc-mode-config.
Mark Wooding [Wed, 7 May 2008 17:32:07 +0000 (18:32 +0100)]
dot-emacs: Don't un-electrify characters in mdw-misc-mode-config.

I /want/ ?# to go back to the start of the line in C mode, I think.
(It doesn't, with the configuration in its current state; I still
need to think about this.  But at least the option is now there again.)

16 years agoemacs: Make C-u C-SPC C-SPC ... continue popping marks.
Mark Wooding [Wed, 7 May 2008 17:30:41 +0000 (18:30 +0100)]
emacs: Make C-u C-SPC C-SPC ... continue popping marks.

This is a neat feature I hadn't noticed before.

16 years agoemacs: Move SLIME hacking to one place.
Mark Wooding [Tue, 6 May 2008 17:37:00 +0000 (18:37 +0100)]
emacs: Move SLIME hacking to one place.

16 years agodot-emacs: Don't make ?_ or ?- be word characters any more.
Mark Wooding [Tue, 6 May 2008 17:36:37 +0000 (18:36 +0100)]
dot-emacs: Don't make ?_ or ?- be word characters any more.

Now that the sexp operations are working properly, compound identifiers
are better split into multiple words, while still being left as sexps.

16 years agodot-emacs: Turn mumble-tab-always-indent back on.
Mark Wooding [Tue, 6 May 2008 14:38:34 +0000 (15:38 +0100)]
dot-emacs: Turn mumble-tab-always-indent back on.

I've gotten used to this behaviour in Lisp and related modes, and M-i
(`tab-to-tab-stop') is just a more reliable thing for getting actual
tabs into a buffer.

16 years agoemacs: Apply the windmove bindings regardless of windmove presence.
Mark Wooding [Tue, 6 May 2008 14:37:31 +0000 (15:37 +0100)]
emacs: Apply the windmove bindings regardless of windmove presence.

It seems silly protecting the bindings, which can't fail anyway.

16 years agoThe great key rebinding (part 2).
Mark Wooding [Tue, 6 May 2008 14:36:35 +0000 (15:36 +0100)]
The great key rebinding (part 2).

We assume that the X server is running with DontZap.  Still, to make
C-M-DEL actually do the right thing, we need to do two more hacks.

  * xinitrc: Remove the mapping of BackSpace to Terminate_Server.
    Because DontZap is set, this keysym does nothing at all, which is
    much less helpful than just being a modified backspace.

  * emacs: For some reason, ESC C-DEL is bound by default, but C-M-DEL
    isn't.  Provide the binding ourselves.

16 years agoscreen: Always run as UTF-8.
Mark Wooding [Tue, 6 May 2008 14:21:17 +0000 (15:21 +0100)]
screen: Always run as UTF-8.

On a Linux VC, screen usually carries on using whatever charset it did
before.  But this is a waste: screen can do UTF-8 throughout and
translate the underlying terminal correctly to match, so we may as well.

16 years agodircolors: Do the right thing in screen(1) on a bare Linux VC.
Mark Wooding [Tue, 6 May 2008 14:20:34 +0000 (15:20 +0100)]
dircolors: Do the right thing in screen(1) on a bare Linux VC.

16 years agoGreat key rebinding.
Mark Wooding [Tue, 6 May 2008 14:04:12 +0000 (15:04 +0100)]
Great key rebinding.

  * Rebind Enlightenment keys to use right-hand Alt key, leaving left
    Alt available for Emacs.

  * Remove a bunch of old Emacs key bindings.  In particular, F9
    (`mdw-divvy-window') is now on C-x w d; `undo' is removed from F8
    and is now only (ahem) on C-x u, C-_ and C-/.  F4
    (`query-replace-regexp') moved to the default C-M-%.  F5
    (`goto-line') is on M-g M-g.  F6 (`auto-fill-mode') is moved to
    C-x /.  Finally, M-RET is no longer `kmacro-call-macro', but one can
    use C-x C-k C-k or (now we've stopped squatting on it) F4.

The remaining fly in the ointment is that C-M-DEL is still trapped by
the X server.  This needs some XKB hacking.

16 years agoscreenrc: Run inferiors in a UTF-8 locale.
Mark Wooding [Tue, 29 Apr 2008 17:12:59 +0000 (18:12 +0100)]
screenrc: Run inferiors in a UTF-8 locale.

16 years agomdw-conf: Prevent double-/ when doing ~-substitutions.
Mark Wooding [Tue, 29 Apr 2008 17:12:14 +0000 (18:12 +0100)]
mdw-conf: Prevent double-/ when doing ~-substitutions.

16 years agoMerge branch 'master' of git+ssh://ponder.ncipher.com/~mwooding/etc/profile
Mark Wooding [Mon, 28 Apr 2008 13:48:08 +0000 (14:48 +0100)]
Merge branch 'master' of git+ssh://ponder.ncipher.com/~mwooding/etc/profile

* 'master' of git+ssh://ponder.ncipher.com/~mwooding/etc/profile:
  emacs: New keybindings for windmove.
  emacs: Use vector notation consistently for key bindings.

16 years agoemacs: New keybindings for windmove.
Mark Wooding [Mon, 28 Apr 2008 13:42:40 +0000 (14:42 +0100)]
emacs: New keybindings for windmove.

The S-left etc. bindings don't work well in terminals.  Define new
bindings for C-x w left/down/up/right; and C-x w h/j/k/l.

16 years agoemacs: Use vector notation consistently for key bindings.
Mark Wooding [Mon, 28 Apr 2008 13:32:59 +0000 (14:32 +0100)]
emacs: Use vector notation consistently for key bindings.

16 years agoemacs: Stop Emacs from selecting buffers by raising other frames.
Mark Wooding [Fri, 25 Apr 2008 18:59:05 +0000 (19:59 +0100)]
emacs: Stop Emacs from selecting buffers by raising other frames.

The default behaviour of iswitchb, which is otherwise an excellent
thing, is to simply raise a frame if it's already showing the buffer I
want to use.  This is, of course, completely useless if (say) the frame
is actually on a different desktop, or attached to a different display.

Also force the default Emacs display-buffer behaviour, just in case that
becomes crazy later.

16 years agoemacs: Move the diary file to ~/etc/diary.
Mark Wooding [Fri, 25 Apr 2008 10:58:58 +0000 (11:58 +0100)]
emacs: Move the diary file to ~/etc/diary.

Less cruft in my home directory root is good.

16 years agoemacs: Teach Emacs about English (and Welsh) bank holidays.
Mark Wooding [Thu, 24 Apr 2008 23:18:23 +0000 (00:18 +0100)]
emacs: Teach Emacs about English (and Welsh) bank holidays.

Found at http://www.mundell.ukfsn.org/elisp/ew-hols.el; thanks to
Matthew Mundell for this.

16 years agoemacs: Rearrange mis-categorized things.
Mark Wooding [Thu, 24 Apr 2008 23:03:35 +0000 (00:03 +0100)]
emacs: Rearrange mis-categorized things.

For some reason, MailCrypt was in the middle of the calendar config.

16 years agoemacs: Allow files to declare that they don't want to be backed up.
Mark Wooding [Thu, 24 Apr 2008 15:53:55 +0000 (16:53 +0100)]
emacs: Allow files to declare that they don't want to be backed up.

16 years agoemacs: Don't back up boring files like commit messages.
Mark Wooding [Thu, 24 Apr 2008 15:53:00 +0000 (16:53 +0100)]
emacs: Don't back up boring files like commit messages.

16 years agoExpunge crufty old CVS Id tags.
Mark Wooding [Mon, 21 Apr 2008 11:35:53 +0000 (12:35 +0100)]
Expunge crufty old CVS Id tags.

16 years agoNew script `hyperspec'.
Mark Wooding [Mon, 21 Apr 2008 11:31:21 +0000 (12:31 +0100)]
New script `hyperspec'.

The new hyperspec script looks up an entry in the Common Lisp Hyperspec
and returns the URL.  Comes with bash completions!

16 years agoRepository reorganization.
Mark Wooding [Mon, 21 Apr 2008 11:26:43 +0000 (12:26 +0100)]
Repository reorganization.

  * Remove version numbers from the packages to be downloaded.  Updating
    the setup script just because some package has changed versions is
    silly; we'll just mess with symlinks appropriately instead.

  * Move the small scripts into the profile repository, so that they
    live a sensible version-controlled life.

16 years agoMerge commit 'metalzone/master'
Mark Wooding [Mon, 21 Apr 2008 11:09:58 +0000 (12:09 +0100)]
Merge commit 'metalzone/master'

* commit 'metalzone/master':
  Configuration for top.
  emacs: Start actually doing some Emacs-side SLIME customization.
  bash_profile: Force ncurses to use UTF8 line-drawing characters.
  dot-emacs: remove stray debugging code.
  tig: Fix colours, in particular the cursor line.
  gitconfig: New alias `git files'.
  dot-emacs: Hack dired-maybe-insert-subdir to honour marks.
  gitignore: Ignore more boring things.
  tigrc: Don't bold entries in the diff.
  dot-emacs: Force buffer-file-coding-system to utf-8 for news articles.

16 years agodot-emacs: Update mdw-hanging-indents for Doxygen-style lists.
Mark Wooding [Mon, 21 Apr 2008 11:03:49 +0000 (12:03 +0100)]
dot-emacs: Update mdw-hanging-indents for Doxygen-style lists.

Doxygen uses a leading `-' or `-#' for unordered or ordered lists
respectively.  Supporting this will probably interfere with poorly
wrapped inline mathematics, but that's probably OK.  We'll see...

16 years agoConfiguration for top.
Mark Wooding [Wed, 16 Apr 2008 13:41:54 +0000 (14:41 +0100)]
Configuration for top.

... which appears to have grown colour support while I wasn't looking.

16 years agoemacs: Start actually doing some Emacs-side SLIME customization.
Mark Wooding [Mon, 14 Apr 2008 09:34:50 +0000 (10:34 +0100)]
emacs: Start actually doing some Emacs-side SLIME customization.

Use UTF-8 to communicate with Lisps which understand it.  And make SBCL
the official default.

16 years agobash_profile: Force ncurses to use UTF8 line-drawing characters.
Mark Wooding [Mon, 14 Apr 2008 09:34:01 +0000 (10:34 +0100)]
bash_profile: Force ncurses to use UTF8 line-drawing characters.

The ACS versions don't work in PuTTY.

16 years agodot-emacs: remove stray debugging code.
Mark Wooding [Sun, 13 Apr 2008 14:11:31 +0000 (15:11 +0100)]
dot-emacs: remove stray debugging code.

16 years agotig: Fix colours, in particular the cursor line.
Mark Wooding [Sun, 13 Apr 2008 13:56:40 +0000 (14:56 +0100)]
tig: Fix colours, in particular the cursor line.

16 years agogitconfig: New alias `git files'.
Mark Wooding [Wed, 9 Apr 2008 15:33:52 +0000 (16:33 +0100)]
gitconfig: New alias `git files'.

Like `git ls-files' but understands default ignore lists.

16 years agodot-emacs: Hack dired-maybe-insert-subdir to honour marks.
Mark Wooding [Wed, 9 Apr 2008 15:25:55 +0000 (16:25 +0100)]
dot-emacs: Hack dired-maybe-insert-subdir to honour marks.

16 years agogitignore: Ignore more boring things.
Mark Wooding [Wed, 9 Apr 2008 14:19:47 +0000 (15:19 +0100)]
gitignore: Ignore more boring things.

16 years agotigrc: Don't bold entries in the diff.
Mark Wooding [Mon, 7 Apr 2008 14:34:43 +0000 (15:34 +0100)]
tigrc: Don't bold entries in the diff.

The colouring is sufficient to make them stand out.

16 years agodot-emacs: Force buffer-file-coding-system to utf-8 for news articles.
Mark Wooding [Mon, 7 Apr 2008 14:33:40 +0000 (15:33 +0100)]
dot-emacs: Force buffer-file-coding-system to utf-8 for news articles.

This is, after all, what slrn has been told to expect.

16 years agoemacs: Turn global-auto-revert-mode back on.
Mark Wooding [Mon, 7 Apr 2008 14:04:52 +0000 (15:04 +0100)]
emacs: Turn global-auto-revert-mode back on.

A recent X server/graphics driver change seems to have made the problem
go away, and it's sufficiently useful for tracking Git working trees
that I want it back.

However, don't bother turning it on if we' trying to start up
quickly: it triggers an autoload and slows stuff down.

16 years agoMerge commit 'metalzone/master'
Mark Wooding [Mon, 7 Apr 2008 14:00:13 +0000 (15:00 +0100)]
Merge commit 'metalzone/master'

* commit 'metalzone/master':
  emacs, dot-emacs: Fix WoMan configuration.
  dot-emacs: Fix mdw-check-autorevert.
  dot-emacs: Fix calls to mdw-regexps.
  dot-emacs: Fix divvy-window for Emacs 21.
  dot-emacs: Fix the eval-when-compile stanza.
  dot-emacs: Squash complaints about use of interactive commands.
  dot-emacs: Flush stray close-paren.
  Now that Emacs starts up pretty quick, favour it over lesser editors.
  emacs: Stuff for fast startup.
  emacs: Keep the bookmarks file up to date.
  dot-emacs, gitconfig, colordiffrc: Fix fontification for diffs.
  Emacs, aspell: Make Emacs use aspell; configure aspell for use.
  Fix pstree output.

Conflicts:

dot-emacs.el: Python keywords: add `with'; use mdw-regexps.

16 years agogitconfig: Some simple email configuration.
Mark Wooding [Mon, 7 Apr 2008 13:56:48 +0000 (14:56 +0100)]
gitconfig: Some simple email configuration.

16 years agoemacs: Remove obsolete GNUS configuration.
Mark Wooding [Mon, 7 Apr 2008 13:56:15 +0000 (14:56 +0100)]
emacs: Remove obsolete GNUS configuration.

16 years agodot-emacs: Add new Python `with' keyword.
Mark Wooding [Mon, 7 Apr 2008 13:55:15 +0000 (14:55 +0100)]
dot-emacs: Add new Python `with' keyword.

16 years agoxshutdown: Kill old-style xwait waiters too.
Mark Wooding [Mon, 7 Apr 2008 13:57:23 +0000 (14:57 +0100)]
xshutdown: Kill old-style xwait waiters too.

16 years agoemacs, dot-emacs: Fix WoMan configuration.
Mark Wooding [Fri, 4 Apr 2008 22:53:25 +0000 (23:53 +0100)]
emacs, dot-emacs: Fix WoMan configuration.

Stop WoMan from popping up extra frames.  Once this is done, for some
reason, the default bold face comes out green, so stop that too.

16 years agodot-emacs: Fix mdw-check-autorevert.
Mark Wooding [Fri, 4 Apr 2008 20:26:26 +0000 (21:26 +0100)]
dot-emacs: Fix mdw-check-autorevert.

Only mess with auto-revert if it's actually there.  Similarly, only mess
with Tramp if that's there.

16 years agodot-emacs: Fix calls to mdw-regexps.
Mark Wooding [Fri, 4 Apr 2008 20:17:09 +0000 (21:17 +0100)]
dot-emacs: Fix calls to mdw-regexps.

When I introduced mdw-regexps, I had it take a &rest argument rather than
a list of strings, but I didn't make the calls match!  I still think I
made the right choice, so strip the extra layer of parens on all of the
calls.

16 years agodot-emacs: Fix divvy-window for Emacs 21.
Mark Wooding [Fri, 4 Apr 2008 20:15:55 +0000 (21:15 +0100)]
dot-emacs: Fix divvy-window for Emacs 21.

In Emacs 22 (and since I last looked) fringe-columns has become a
defsubst (i.e., it's inline-expandable), and its expansion refers to
yet another function not available in Emacs 21.  Since I want to use the
byte-compiled result with Emacs 21 too, we engage in some chicanery to
hide the symbol names from the byte compiler.

Also make the interactive version accept a prefix argument controlling
the column width (on the grounds that the feature was already there
anyway, but not for some reason available).

16 years agodot-emacs: Fix the eval-when-compile stanza.
Mark Wooding [Fri, 4 Apr 2008 20:13:18 +0000 (21:13 +0100)]
dot-emacs: Fix the eval-when-compile stanza.

Firstly, it just wasn't spelt correctly!  Secondly, it didn't include
the cl macros, which are useful.  (I henceforth permit the use of CL
macros, but not functions, in dot-emacs.el, on condition that the
expansions don't require CL functions.)

Thirdly, fix mdw-regexps to quote its expansion.

16 years agodot-emacs: Squash complaints about use of interactive commands.
Mark Wooding [Fri, 4 Apr 2008 20:09:19 +0000 (21:09 +0100)]
dot-emacs: Squash complaints about use of interactive commands.

The Emacs 22 byte compiler (at least) moans about me using replace-regexp
and insert-file.  So use (respectively) re-search-forward/replace-match
and insert-file-contents.

I think this change also fixes a bug in mdw-config which failed to
transform half of the config-file entries.

16 years agodot-emacs: Flush stray close-paren.
Mark Wooding [Fri, 4 Apr 2008 20:07:24 +0000 (21:07 +0100)]
dot-emacs: Flush stray close-paren.

Oops.  Stops the whole thing from compiling.

16 years agoNow that Emacs starts up pretty quick, favour it over lesser editors.
Mark Wooding [Thu, 3 Apr 2008 09:03:08 +0000 (10:03 +0100)]
Now that Emacs starts up pretty quick, favour it over lesser editors.

16 years agoemacs: Stuff for fast startup.
Mark Wooding [Thu, 3 Apr 2008 09:02:45 +0000 (10:02 +0100)]
emacs: Stuff for fast startup.

Provide a command-line switch --mdw-fast-startup which inhibits loading
some long-winded things which aren't needed in simple cases.

Also preglue regular expressions together using make-regexp rather than
doing it at startup time.

16 years agoemacs: Keep the bookmarks file up to date.
Mark Wooding [Sat, 29 Mar 2008 15:11:43 +0000 (15:11 +0000)]
emacs: Keep the bookmarks file up to date.

16 years agodot-emacs, gitconfig, colordiffrc: Fix fontification for diffs.
Mark Wooding [Sat, 29 Mar 2008 15:11:20 +0000 (15:11 +0000)]
dot-emacs, gitconfig, colordiffrc: Fix fontification for diffs.

Now it (more or less) matches the Git settings, which seem pretty good
really.  Move the Git and colordiff configuration back to match. ;-)

16 years agoEmacs, aspell: Make Emacs use aspell; configure aspell for use.
Mark Wooding [Fri, 28 Mar 2008 12:36:42 +0000 (12:36 +0000)]
Emacs, aspell: Make Emacs use aspell; configure aspell for use.

16 years agoFix pstree output.
Mark Wooding [Fri, 28 Mar 2008 12:35:53 +0000 (12:35 +0000)]
Fix pstree output.

16 years agosetup: Fix bogosity in 2d07849b...
Mark Wooding [Tue, 25 Mar 2008 12:16:16 +0000 (12:16 +0000)]
setup: Fix bogosity in 2d07849b...

That was very stupid.  Sorry.

16 years agosetup: Stop using `pwd' so often.
Mark Wooding [Mon, 24 Mar 2008 10:48:36 +0000 (10:48 +0000)]
setup: Stop using `pwd' so often.

(Introduced with the gitconfig-generation change.)

16 years agoEterm: resurrect the configuration file.
Mark Wooding [Sun, 23 Mar 2008 20:20:44 +0000 (20:20 +0000)]
Eterm: resurrect the configuration file.

Since the xinitrc script might actually choose Eterm on some machine,
it's probably best to make sure it has a usable configuation.

16 years agogitconfig: Provide global ignores, and generate file from skeleton.
Mark Wooding [Sun, 23 Mar 2008 20:16:20 +0000 (20:16 +0000)]
gitconfig: Provide global ignores, and generate file from skeleton.

The latter follows from the former: we need to put a global gitignore
file somewhere, but we can't fix a location for it.  The only solution
is to have setup figure out where the ignores file is and plug that into
the config file.

Take the opportunity to un-hardcode the signing key too.

16 years agomdw-conf: Separate out config lookups into its own script.
Mark Wooding [Sun, 23 Mar 2008 20:13:17 +0000 (20:13 +0000)]
mdw-conf: Separate out config lookups into its own script.

16 years agogitconfig: Improve the git release alias.
Mark Wooding [Sun, 23 Mar 2008 19:34:33 +0000 (19:34 +0000)]
gitconfig: Improve the git release alias.

16 years agoxinitrc, setup: Overhaul of X session handling.
Mark Wooding [Sun, 23 Mar 2008 16:30:01 +0000 (16:30 +0000)]
xinitrc, setup: Overhaul of X session handling.

Requires 1.4.0 of xtoys.  The xinitrc now waits for and processes commands
when it's finished.  This involves a major restructuring of the code.

Also tweak window manager bindings to match, and provide useful support
scripts.

The inclusion of movemail-hack is sneaky: while we're moving things into
the collection, we might as well add this too.

16 years agogitconfig: New alias `amend' does the obvious thing.
Mark Wooding [Sun, 23 Mar 2008 16:27:37 +0000 (16:27 +0000)]
gitconfig: New alias `amend' does the obvious thing.

16 years agoguile: Turn on the persistent history.
Mark Wooding [Sun, 23 Mar 2008 16:26:48 +0000 (16:26 +0000)]
guile: Turn on the persistent history.

16 years agoemacs: Disable global-auto-revert-mode.
Mark Wooding [Tue, 4 Mar 2008 22:44:15 +0000 (22:44 +0000)]
emacs: Disable global-auto-revert-mode.

For some reason this seems to be clobbering my CPU every now and then.
This is something of an experiment -- I may be wrong.  But it's worth a
go.

16 years agogitconfig: New alias git-release.
Mark Wooding [Mon, 3 Mar 2008 12:51:47 +0000 (12:51 +0000)]
gitconfig: New alias git-release.

16 years agogitconfig: Insert my shiny Git signing key.
Mark Wooding [Sat, 1 Mar 2008 18:12:25 +0000 (18:12 +0000)]
gitconfig: Insert my shiny Git signing key.

16 years agoemacs: Don't start up xscheme.
Mark Wooding [Sat, 1 Mar 2008 18:12:07 +0000 (18:12 +0000)]
emacs: Don't start up xscheme.

I've gone off MIT Scheme rather since I put this in.  It seems like a
bad default now.

16 years agoGuile: Add initialization script.
Mark Wooding [Sat, 1 Mar 2008 18:10:16 +0000 (18:10 +0000)]
Guile: Add initialization script.

Currently this just turns on readline support.

16 years agoMerge branch 'master' of git+ssh://ponder.ncipher.com/~mwooding/etc/profile
Mark Wooding [Tue, 26 Feb 2008 17:50:21 +0000 (17:50 +0000)]
Merge branch 'master' of git+ssh://ponder.ncipher.com/~mwooding/etc/profile

* 'master' of git+ssh://ponder.ncipher.com/~mwooding/etc/profile:
  emerge-hack: A new script for Git merging.
  vncrc, xinitrc: Don't do so much Gnome fiddling.
  dot-emacs: Fiddle C indentation settings.
  emacs: Make postscript printing more sensible.

16 years agoemerge-hack: A new script for Git merging.
Mark Wooding [Tue, 26 Feb 2008 17:32:04 +0000 (17:32 +0000)]
emerge-hack: A new script for Git merging.

emerge-hack pretends to be an Emacs and takes arguments as for emerge;
but instead it runs ediff, which is much nicer.