Skip to content

Commit

Permalink
coq/coq-mode.el: Fix 'coq--parent-mode definition
Browse files Browse the repository at this point in the history
  • Loading branch information
ayanamists committed Dec 6, 2023
1 parent 879444c commit 499d682
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions coq/coq-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ Near here means PT is either inside or just aside of a comment."
;;;###autoload
(add-to-list 'auto-mode-alist '("\\.v\\'" . coq-mode))

(defun coq--parent-mode ()
(if coq-use-pg (proof-mode) (prog-mode)))
(defalias 'coq--parent-mode
(if coq-use-pg 'proof-mode 'prog-mode))

;;;###autoload
(define-derived-mode coq-mode coq--parent-mode "Coq"
Expand Down

0 comments on commit 499d682

Please sign in to comment.