[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Hook doesn't run as expected, if buffer mode is set from major-mode
From: |
Drew Adams |
Subject: |
RE: Hook doesn't run as expected, if buffer mode is set from major-mode |
Date: |
Fri, 8 Jan 2016 13:20:54 -0800 (PST) |
> If the major mode of a new buffer is determined by the variable
> major-mode (nothing from auto-mode-alist et. al matches), then the hooks
> of that major mode doesn't run, as I expect.
`major-mode' is a buffer-local variable.
It is set by the newly current major mode.
IOW, you cannot use it to set the mode, as the mode sets it.
- Hook doesn't run as expected, if buffer mode is set from major-mode, Rolf Ade, 2016/01/08
- Message not available
- Re: Hook doesn't run as expected, if buffer mode is set from major-mode, Rolf Ade, 2016/01/08
- RE: Hook doesn't run as expected, if buffer mode is set from major-mode, Drew Adams, 2016/01/08
- Re: Hook doesn't run as expected, if buffer mode is set from major-mode, Michael Heerdegen, 2016/01/08
- Message not available
- Re: Hook doesn't run as expected, if buffer mode is set from major-mode, Rolf Ade, 2016/01/09
- Re: Hook doesn't run as expected, if buffer mode is set from major-mode, Michael Heerdegen, 2016/01/09