mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-09 12:57:25 -05:00
refactor(org): remove reference to org-superstar
org-superstar was removed inb1e6dec
. Amend:b1e6dec47a
This commit is contained in:
@ -472,32 +472,28 @@ Made for `org-tab-first-hook'."
|
|||||||
(when (and (modulep! :editor snippets)
|
(when (and (modulep! :editor snippets)
|
||||||
(require 'yasnippet nil t)
|
(require 'yasnippet nil t)
|
||||||
(bound-and-true-p yas-minor-mode))
|
(bound-and-true-p yas-minor-mode))
|
||||||
(and (let ((major-mode (cond ((org-in-src-block-p t)
|
(let ((major-mode (cond ((org-in-src-block-p t)
|
||||||
(org-src-get-lang-mode (org-eldoc-get-src-lang)))
|
(org-src-get-lang-mode (org-eldoc-get-src-lang)))
|
||||||
((org-inside-LaTeX-fragment-p)
|
((org-inside-LaTeX-fragment-p)
|
||||||
'latex-mode)
|
'latex-mode)
|
||||||
(major-mode)))
|
(major-mode)))
|
||||||
(org-src-tab-acts-natively nil) ; causes breakages
|
(org-src-tab-acts-natively nil) ; causes breakages
|
||||||
;; Smart indentation doesn't work with yasnippet, and painfully slow
|
;; Smart indentation doesn't work with yasnippet, and painfully slow
|
||||||
;; in the few cases where it does.
|
;; in the few cases where it does.
|
||||||
(yas-indent-line 'fixed))
|
(yas-indent-line 'fixed))
|
||||||
(cond ((and (or (not (bound-and-true-p evil-local-mode))
|
(cond ((and (or (not (bound-and-true-p evil-local-mode))
|
||||||
(evil-insert-state-p)
|
(evil-insert-state-p)
|
||||||
(evil-emacs-state-p))
|
(evil-emacs-state-p))
|
||||||
(or (and (bound-and-true-p yas--tables)
|
(or (and (bound-and-true-p yas--tables)
|
||||||
(gethash major-mode yas--tables))
|
(gethash major-mode yas--tables))
|
||||||
(with-memoization (get 'yas-reload-all 'reloaded)
|
(with-memoization (get 'yas-reload-all 'reloaded)
|
||||||
(always (yas-reload-all))))
|
(always (yas-reload-all))))
|
||||||
(yas--templates-for-key-at-point))
|
(yas--templates-for-key-at-point))
|
||||||
(yas-expand)
|
(yas-expand)
|
||||||
t)
|
t)
|
||||||
((use-region-p)
|
((use-region-p)
|
||||||
(yas-insert-snippet)
|
(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
|
;;;###autoload
|
||||||
(defun +org-cycle-only-current-subtree-h (&optional arg)
|
(defun +org-cycle-only-current-subtree-h (&optional arg)
|
||||||
|
Reference in New Issue
Block a user