diff options
Diffstat (limited to 'lisp/generic-x.el')
| -rw-r--r-- | lisp/generic-x.el | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/lisp/generic-x.el b/lisp/generic-x.el index 9ba06d42397..fcf5b6c0e1d 100644 --- a/lisp/generic-x.el +++ b/lisp/generic-x.el | |||
| @@ -1733,17 +1733,17 @@ like an INI file. You can add this hook to `find-file-hook'." | |||
| 1733 | 1733 | ||
| 1734 | (defconst show-tabs-generic-mode-font-lock-defaults-1 | 1734 | (defconst show-tabs-generic-mode-font-lock-defaults-1 |
| 1735 | '(;; trailing spaces must come before... | 1735 | '(;; trailing spaces must come before... |
| 1736 | ("[ \t]+$" . 'show-tabs-space-face) | 1736 | ("[ \t]+$" . 'show-tabs-space) |
| 1737 | ;; ...embedded tabs | 1737 | ;; ...embedded tabs |
| 1738 | ("[^\n\t]\\(\t+\\)" (1 'show-tabs-tab-face)))) | 1738 | ("[^\n\t]\\(\t+\\)" (1 'show-tabs-tab)))) |
| 1739 | 1739 | ||
| 1740 | (defconst show-tabs-generic-mode-font-lock-defaults-2 | 1740 | (defconst show-tabs-generic-mode-font-lock-defaults-2 |
| 1741 | '(;; trailing spaces must come before... | 1741 | '(;; trailing spaces must come before... |
| 1742 | ("[ \t]+$" . 'show-tabs-space-face) | 1742 | ("[ \t]+$" . 'show-tabs-space) |
| 1743 | ;; ...tabs | 1743 | ;; ...tabs |
| 1744 | ("\t+" . 'show-tabs-tab-face)))) | 1744 | ("\t+" . 'show-tabs-tab)))) |
| 1745 | 1745 | ||
| 1746 | (defface show-tabs-tab-face | 1746 | (defface show-tabs-tab |
| 1747 | '((((class grayscale) (background light)) (:background "DimGray" :weight bold)) | 1747 | '((((class grayscale) (background light)) (:background "DimGray" :weight bold)) |
| 1748 | (((class grayscale) (background dark)) (:background "LightGray" :weight bold)) | 1748 | (((class grayscale) (background dark)) (:background "LightGray" :weight bold)) |
| 1749 | (((class color) (min-colors 88)) (:background "red1")) | 1749 | (((class color) (min-colors 88)) (:background "red1")) |
| @@ -1751,8 +1751,10 @@ like an INI file. You can add this hook to `find-file-hook'." | |||
| 1751 | (t (:weight bold))) | 1751 | (t (:weight bold))) |
| 1752 | "Font Lock mode face used to highlight TABs." | 1752 | "Font Lock mode face used to highlight TABs." |
| 1753 | :group 'generic-x) | 1753 | :group 'generic-x) |
| 1754 | ;; backward-compatibility alias | ||
| 1755 | (put 'show-tabs-tab-face 'face-alias 'show-tabs-tab) | ||
| 1754 | 1756 | ||
| 1755 | (defface show-tabs-space-face | 1757 | (defface show-tabs-space |
| 1756 | '((((class grayscale) (background light)) (:background "DimGray" :weight bold)) | 1758 | '((((class grayscale) (background light)) (:background "DimGray" :weight bold)) |
| 1757 | (((class grayscale) (background dark)) (:background "LightGray" :weight bold)) | 1759 | (((class grayscale) (background dark)) (:background "LightGray" :weight bold)) |
| 1758 | (((class color) (min-colors 88)) (:background "yellow1")) | 1760 | (((class color) (min-colors 88)) (:background "yellow1")) |
| @@ -1760,6 +1762,8 @@ like an INI file. You can add this hook to `find-file-hook'." | |||
| 1760 | (t (:weight bold))) | 1762 | (t (:weight bold))) |
| 1761 | "Font Lock mode face used to highlight spaces." | 1763 | "Font Lock mode face used to highlight spaces." |
| 1762 | :group 'generic-x) | 1764 | :group 'generic-x) |
| 1765 | ;; backward-compatibility alias | ||
| 1766 | (put 'show-tabs-space-face 'face-alias 'show-tabs-space) | ||
| 1763 | 1767 | ||
| 1764 | (define-generic-mode show-tabs-generic-mode | 1768 | (define-generic-mode show-tabs-generic-mode |
| 1765 | nil ;; no comment char | 1769 | nil ;; no comment char |