[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to apply a minor mode to all buffers
From: |
Leonardo Boiko |
Subject: |
Re: How to apply a minor mode to all buffers |
Date: |
Mon, 05 Feb 2007 15:07:48 -0200 |
User-agent: |
Wanderlust/2.15.5 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (Shijō) APEL/10.6 Emacs/22.0.93 (i486-pc-linux-gnu) MULE/5.0 (SAKAKI) |
At Sat, 3 Feb 2007 16:29:46 +0100, Juanma Barranquero wrote:
> > I want to be able to run arbitrary functions every time
> > a buffer is created.
> Wouldn't it work an `after' defadvice to `get-buffer-create' and
> `generate-new-buffer'?
Well, it probably would, I guess. And yet, don’t you agree that a
fundamental-mode-hook would be much cleaner? You can make mostly
anything with defadvice, but it’s a bit hackish.
--
Leonardo Boiko
http://namakajiri.net