[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 32e535d 07/38: add syntax highlight
From: |
Dmitry Gutov |
Subject: |
[elpa] master 32e535d 07/38: add syntax highlight |
Date: |
Sat, 25 Jul 2020 19:51:12 -0400 (EDT) |
branch: master
commit 32e535d1c0f3465f2ea187822890539c2a1cbe41
Author: stephen <sawakitaeiji233@gmail.com>
Commit: stephen <sawakitaeiji233@gmail.com>
add syntax highlight
---
company-yasnippet.el | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/company-yasnippet.el b/company-yasnippet.el
index d2f8c96..f2d4fe9 100644
--- a/company-yasnippet.el
+++ b/company-yasnippet.el
@@ -98,11 +98,19 @@
tables))
(defun company-yasnippet--doc (arg)
- (let ((template (get-text-property 0 'yas-template arg)))
+ (let ((template (get-text-property 0 'yas-template arg))
+ (mode (format "%s" major-mode)))
(with-current-buffer (company-doc-buffer)
(yas-minor-mode 1)
(yas-expand-snippet (yas--template-content template))
- (goto-char (point-min))
+ (delay-mode-hooks
+ (let ((inhibit-message t))
+ (if (string-equal mode "web-mode")
+ (progn
+ (setq mode "html-mode")
+ (funcall (intern mode)))
+ (funcall (intern mode))))
+ (ignore-errors (font-lock-ensure)))
(current-buffer))))
;;;###autoload
- [elpa] master d40bcfc 06/38: add the docbuffer on company-yasnippet, (continued)
- [elpa] master d40bcfc 06/38: add the docbuffer on company-yasnippet, Dmitry Gutov, 2020/07/25
- [elpa] master cdd2c00 10/38: use eq instead of string-equal, Dmitry Gutov, 2020/07/25
- [elpa] master 4af1ea2 12/38: company-yasnippet: Make annotation more customizable, Dmitry Gutov, 2020/07/25
- [elpa] master d091704 13/38: Update copyright years, Dmitry Gutov, 2020/07/25
- [elpa] master fdbdff3 15/38: catch yas-expand-snippet error, Dmitry Gutov, 2020/07/25
- [elpa] master 265eb38 16/38: Merge pull request #967 from taigacute/master, Dmitry Gutov, 2020/07/25
- [elpa] master e3d7d60 02/38: company-bbdb: Support more headers like From:, Dmitry Gutov, 2020/07/25
- [elpa] master 94e22c4 03/38: Merge pull request #958 from OGAWAHirofumi/company-bbdb-add-more-header, Dmitry Gutov, 2020/07/25
- [elpa] master f275ee6 04/38: Fix Travis CI Build config, Dmitry Gutov, 2020/07/25
- [elpa] master 872b14c 05/38: add the docbuffer on company-yasnippet, Dmitry Gutov, 2020/07/25
- [elpa] master 32e535d 07/38: add syntax highlight,
Dmitry Gutov <=
- [elpa] master e585f63 08/38: Merge pull request #963 from tsuu32/fix/travis-ci, Dmitry Gutov, 2020/07/25
- [elpa] master 3262c18 09/38: use symbol-value to get major-mode value, Dmitry Gutov, 2020/07/25
- [elpa] master 033358c 11/38: Merge pull request #965 from taigacute/master, Dmitry Gutov, 2020/07/25
- [elpa] master 04d3766 14/38: config the company-yasnippet-doc buffer-file-name, Dmitry Gutov, 2020/07/25
- [elpa] master e25c459 18/38: let-bind buffer-file-name instead of setting it, Dmitry Gutov, 2020/07/25
- [elpa] master d38d64b 20/38: Keyworks complete for c++-mode and c-mode, Dmitry Gutov, 2020/07/25
- [elpa] master b9b0577 22/38: Make company-auto-complete condition more reliable, Dmitry Gutov, 2020/07/25
- [elpa] master 56a846c 25/38: Add a NEWS entry, Dmitry Gutov, 2020/07/25
- [elpa] master 6cf5169 23/38: Update copyright years, Dmitry Gutov, 2020/07/25
- [elpa] master c59c85b 24/38: Merge branch 'master' into company-tng-with-post-completion, Dmitry Gutov, 2020/07/25