[markdown] Make sure not to throw when git-commit-mode is not bound

Should fix #14397
This commit is contained in:
Maximilian Wolff 2021-02-21 23:34:02 +01:00
parent aa1051e1c8
commit cecc4ef887
No known key found for this signature in database
GPG key ID: 2DD07025BFDBD89A

View file

@ -10,8 +10,8 @@
;;; License: GPLv3
(defun spacemacs/activate-mmm-mode ()
(unless git-commit-mode
;; Enable `mmm-mode'.
(unless (bound-and-true-p git-commit-mode)
;; Enable `mmm-mode'.
(mmm-mode 1)))
;; stolen from http://stackoverflow.com/a/26297700