bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#9214: `fundamental-mode-hook' not run when setting up `fundamental-m


From: Chong Yidong
Subject: bug#9214: `fundamental-mode-hook' not run when setting up `fundamental-mode' under certain circumstances; Info documentation incorrect
Date: Sun, 29 Jan 2012 09:40:43 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux)

Juanma Barranquero <lekktu@gmail.com> writes:

> 2012/1/28 Štěpán Němec <stepnem@gmail.com>:
>
>> 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.

Or use after-change-major-mode-hook.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]