branch: feature/fix-mode-names-overlap
commit 77ae6b5652f17095acf46adbbf8267f3cab9f825
Author: Ikumi Keita <[email protected]>
Commit: Ikumi Keita <[email protected]>
Restore tool bar on japanese-plain-TeX-mode
* plain-tex.el (plain-TeX-mode-cleanup): Restore tool bar on
japanese-plain-TeX-mode.
---
plain-tex.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plain-tex.el b/plain-tex.el
index e2389b4a..6e4ddf7c 100644
--- a/plain-tex.el
+++ b/plain-tex.el
@@ -139,7 +139,7 @@ of `plain-TeX-mode-hook'."
"Cleanup function for `plain-TeX-mode'.
Run after mode hooks and file local variables application."
;; Don't install tool bar in AmSTeX mode.
- (when (eq major-mode 'plain-TeX-mode)
+ (unless (derived-mode-p 'AmSTeX-mode)
(add-hook 'tool-bar-mode-hook
#'plain-TeX-maybe-install-toolbar nil t)
(plain-TeX-maybe-install-toolbar)))