Fix yasnippet breaking org-superstar
Because yasnippet has a delete first and ask never policy for cleaning up overlays in the buffer.
This commit is contained in:
parent
3e636f4dc7
commit
7662de55d8
1 changed files with 19 additions and 15 deletions
|
@ -386,7 +386,7 @@ Made for `org-tab-first-hook' in evil-mode."
|
|||
"Tries to expand a yasnippet snippet, if one is available. Made for
|
||||
`org-tab-first-hook'."
|
||||
(when (bound-and-true-p yas-minor-mode)
|
||||
(let ((major-mode (if (org-in-src-block-p t)
|
||||
(and (let ((major-mode (if (org-in-src-block-p t)
|
||||
(org-src-get-lang-mode (org-eldoc-get-src-lang))
|
||||
major-mode))
|
||||
(org-src-tab-acts-natively nil) ; causes breakages
|
||||
|
@ -400,7 +400,11 @@ Made for `org-tab-first-hook' in evil-mode."
|
|||
t)
|
||||
((use-region-p)
|
||||
(yas-insert-snippet)
|
||||
t)))))
|
||||
t)))
|
||||
;; HACK Yasnippet breaks org-superstar-mode because yasnippets is
|
||||
;; overzealous about cleaning up overlays.
|
||||
(when (bound-and-true-p org-superstar-mode)
|
||||
(org-superstar-restart)))))
|
||||
|
||||
;;;###autoload
|
||||
(defun +org-cycle-only-current-subtree-h (&optional arg)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue