Subject: bug#9214: `fundamental-mode-hook' not run when setting up `fundamental-mode' under certain circumstances; Info documentation incorrect

From: Juanma Barranquero <[email-masked]>
Date: Sun, 29 Jan 2012 00:34:53 +0100

2012/1/28 Štěpán Němec <[email-masked]>:

> And, how can I run code whenever a new buffer is setup (in
> fundamental-mode), if `fundamental-mode-hook' is not meant for that?

You can perhaps fake it with some combination of (setq-default
major-mode my-fundamental-mode), `buffer-list-update-hook', and
advices. It won't be pretty, though.

    Juanma