[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: table-recognize and default-major-mode
From: |
Dr Roland Winkler |
Subject: |
Re: table-recognize and default-major-mode |
Date: |
Fri, 5 Aug 2005 04:39:42 +0200 |
On Thu Aug 4 2005 Tak Ota wrote:
> What is the rational behind this default-major-mode design that runs
> hooks on a premature buffer?
>
> Isn't it a design flaw to run a hook twice (before and after buffer
> setup) in this case? Or do all hooks responsible to determine which
> stage (pre or post setup) it is running at?
It seems to me that the following is much closer to what I want than
using default-major-mode
(setq auto-mode-alist (append auto-mode-alist (list (cons "." 'text-mode))))
Of course, this works only if the new cons cell is indeed the last
one.
Roland