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

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

[elpa] externals/auctex c540e3a 30/34: Define minor modes using keywords


From: Tassilo Horn
Subject: [elpa] externals/auctex c540e3a 30/34: Define minor modes using keywords
Date: Sun, 6 Jun 2021 11:40:06 -0400 (EDT)

branch: externals/auctex
commit c540e3a5b847693219aa6f5badb6aa45194c81ce
Author: Arash Esbati <arash@gnu.org>
Commit: Arash Esbati <arash@gnu.org>

    Define minor modes using keywords
    
    * tex.el (TeX-Omega-mode, TeX-interactive-mode):
    * tex-fold.el (TeX-fold-mode):
    * style/kpfonts.el (LaTeX-kpfonts-mode):
    * latex.el (LaTeX-math-mode): Use keywords to define minor modes.
---
 latex.el         | 4 +++-
 style/kpfonts.el | 4 +++-
 tex-fold.el      | 4 +++-
 tex.el           | 4 ++--
 4 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/latex.el b/latex.el
index 8145158..70f8866 100644
--- a/latex.el
+++ b/latex.el
@@ -5513,7 +5513,9 @@ the symbols will be surrounded by dollar signs.  The 
following
 commands are defined:
 
 \\{LaTeX-math-mode-map}"
-  nil nil (list (cons (LaTeX-math-abbrev-prefix) LaTeX-math-keymap))
+  :init-value nil
+  :lighter nil
+  :keymap (list (cons (LaTeX-math-abbrev-prefix) LaTeX-math-keymap))
   (TeX-set-mode-name))
 (defalias 'latex-math-mode #'LaTeX-math-mode)
 
diff --git a/style/kpfonts.el b/style/kpfonts.el
index 654378f..8dec44c 100644
--- a/style/kpfonts.el
+++ b/style/kpfonts.el
@@ -508,7 +508,9 @@ argument, the symbols will be surrounded by dollar signs.  
The
 following commands are defined:
 
 \\{LaTeX-kpfonts-mode-map}"
-  nil nil (list (cons (LaTeX-kpfonts-abbrev-prefix) LaTeX-kpfonts-keymap))
+  :init-value nil
+  :lighter nil
+  :keymap (list (cons (LaTeX-kpfonts-abbrev-prefix) LaTeX-kpfonts-keymap))
   (TeX-set-mode-name))
 
 (easy-menu-define LaTeX-kpfonts-mode-menu
diff --git a/tex-fold.el b/tex-fold.el
index ba7e9c0..9eab077 100644
--- a/tex-fold.el
+++ b/tex-fold.el
@@ -897,7 +897,9 @@ the other elements.  The ordering among elements is 
maintained."
 Called interactively, with no prefix argument, toggle the mode.
 With universal prefix ARG (or if ARG is nil) turn mode on.
 With zero or negative ARG turn mode off."
-  nil nil (list (cons TeX-fold-command-prefix TeX-fold-keymap))
+  :init-value nil
+  :lighter nil
+  :keymap (list (cons TeX-fold-command-prefix TeX-fold-keymap))
   (if TeX-fold-mode
       (progn
         (set (make-local-variable 'search-invisible) t)
diff --git a/tex.el b/tex.el
index 12d401d..d7eca44 100644
--- a/tex.el
+++ b/tex.el
@@ -1601,7 +1601,7 @@ For available TYPEs, see variable `TeX-engine'."
 
 (define-minor-mode TeX-Omega-mode
   "Minor mode for using the Omega engine."
-  nil nil nil
+  :init-value nil :lighter nil :keymap nil
   :group 'TeX-command
   (TeX-engine-set (if TeX-Omega-mode 'omega 'default)))
 (defalias 'tex-omega-mode #'TeX-Omega-mode)
@@ -2123,7 +2123,7 @@ for backward compatibility."
 
 (define-minor-mode TeX-interactive-mode
   "Minor mode for interactive runs of TeX."
-  nil nil nil
+  :init-value nil :lighter nil :keymap nil
   :group 'TeX-command
   (TeX-set-mode-name 'TeX-interactive-mode t t))
 (defalias 'tex-interactive-mode #'TeX-interactive-mode)



reply via email to

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