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

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

[elpa] externals/auctex 7cd329f 74/80: Add fontification support for rag


From: Tassilo Horn
Subject: [elpa] externals/auctex 7cd329f 74/80: Add fontification support for ragged2e macros
Date: Wed, 16 Oct 2019 11:07:21 -0400 (EDT)

branch: externals/auctex
commit 7cd329f06daf166fb5fb6a6e3959935c786c91a9
Author: Arash Esbati <address@hidden>
Commit: Arash Esbati <address@hidden>

    Add fontification support for ragged2e macros
    
    * style/ragged2e.el ("ragged2e"): Add provided macros to function
    keywords class.  This is in line with decision in `font-latex.el'
    for corresponding kernel macros.
---
 style/ragged2e.el | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

diff --git a/style/ragged2e.el b/style/ragged2e.el
index 2b7050e..fd6fd1b 100644
--- a/style/ragged2e.el
+++ b/style/ragged2e.el
@@ -1,6 +1,6 @@
 ;;; ragged2e.el --- AUCTeX style for `ragged2e.sty'
 
-;; Copyright (C) 2011, 2015 Free Software Foundation, Inc.
+;; Copyright (C) 2011, 2015, 2019 Free Software Foundation, Inc.
 
 ;; Author: Mads Jensen <address@hidden>
 ;; Created: 2011-04-16
@@ -54,10 +54,19 @@
     ;; \justifying
     "JustifyingParfillskip" "JustifyingParindent")
 
-   (TeX-run-style-hooks "footmisc" "everysel"))
+   (TeX-run-style-hooks "footmisc" "everysel")
+
+   ;; Fontification
+   (when (and (featurep 'font-latex)
+             (eq TeX-install-font-lock 'font-latex-setup))
+     (font-latex-add-keywords '(("Centering"    "")
+                               ("justifying"   "")
+                               ("RaggedRight"  "")
+                               ("RaggedLeft"   ""))
+                             'function)))
  LaTeX-dialect)
 
-(defvar LaTeX-ragged2e-package-options 
+(defvar LaTeX-ragged2e-package-options
   '("originalcommands" "newcommands" "originalparameters" "document"
     "newparameters" "footnotes" "raggedrightboxes")
   "Package options for the ragged2e package.")



reply via email to

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