emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] master 23ff01c 017/433: Pre-added major mode hook to text-mode-ho


From: Dmitry Gutov
Subject: [elpa] master 23ff01c 017/433: Pre-added major mode hook to text-mode-hook.
Date: Thu, 15 Mar 2018 19:43:27 -0400 (EDT)

branch: master
commit 23ff01cb569b5381b1ea2dd3e20dc1088d407047
Author: mas <mas>
Commit: mas <mas>

    Pre-added major mode hook to text-mode-hook.
---
 mmm-auto.el | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/mmm-auto.el b/mmm-auto.el
index 7242518..0baa29a 100644
--- a/mmm-auto.el
+++ b/mmm-auto.el
@@ -3,7 +3,7 @@
 ;; Copyright (C) 2000 by Michael Abraham Shulman
 
 ;; Author: Michael Abraham Shulman <address@hidden>
-;; Version: $Id: mmm-auto.el,v 1.4 2000/05/18 18:27:07 mas Exp $
+;; Version: $Id: mmm-auto.el,v 1.5 2000/05/24 09:13:00 mas Exp $
 
 ;;{{{ GPL
 
@@ -122,6 +122,11 @@ Otherwise, return nil."
            (string= (substring name -5) "-mode")
            (intern (format "%s-hook" name))))))
 
+;; Some modes that derive from text-mode, such as mh-letter-mode and
+;; AucTeX latex-mode, aren't well-behaved.  They do generally run
+;; text-mode-hook, though, so we can pre-initialize that.
+(add-hook 'text-mode-hook 'mmm-run-major-mode-hook)
+
 ;;}}}
 ;;{{{ MMM Global Mode
 



reply via email to

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