Check if the hydra feature is enabled before opening smerge hydra
This commit is contained in:
parent
7877f36f0c
commit
c64769c114
1 changed files with 3 additions and 1 deletions
|
@ -45,7 +45,9 @@ repository root."
|
||||||
(goto-char (point-min))
|
(goto-char (point-min))
|
||||||
(when (re-search-forward "^<<<<<<< " nil :noerror)
|
(when (re-search-forward "^<<<<<<< " nil :noerror)
|
||||||
(smerge-mode 1)
|
(smerge-mode 1)
|
||||||
(when +vcs-auto-hydra-smerge (+hydra-smerge/body)))))
|
(when (and (featurep 'hydra)
|
||||||
|
+vcs-auto-hydra-smerge)
|
||||||
|
(+hydra-smerge/body)))))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun +vcs*update-header-line (&rest _)
|
(defun +vcs*update-header-line (&rest _)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue