Here is the definition of fundamental-mode
:
(defun fundamental-mode ()
"Major mode not specialized for anything in particular.
Other major modes are defined by comparison with this one."
(interactive)
(kill-all-local-variables)
(run-mode-hooks))
There does not seem to be a fundamental-mode-hook
defined.
I would like to call some code for all "fundamental-mode" buffers and all derived modes from it, without having to itemize all such modes and explicitly call add-hook
on all of their mode functions.
Is there a way or am I stuck paying the itemization cost? If yes, then how do I do this inside all modes:
(modify-syntax-entry ?_ "w")
because after decades of Emacs usage, I've finally grown tired of my cursor getting hung up on every single underscore for every time I use M-f
(ALT+f), across all new modes that are invented and that I install into my setup.
with-syntax-table
gnu.org/software/emacs/manual/html_node/elisp/…