From 6cb5c381b826535520f0bcfe15439a2505aa9d57 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 25 Feb 2021 18:16:30 -0500 Subject: [PATCH] Disable dtrt-indent in pascal-mode Throws wrong-type-argument number-or-marker-p errors otherwise, because dtrt-indent--for-each-indentation calls dtrt-indent--skip-to-end-of-match with four nil arguments (presumably because there is no pascal entry in dtrt-indent-language-syntax-table) and there is no fall back to its default entry. --- core/core-editor.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/core-editor.el b/core/core-editor.el index 61d27912d..e2f4bcd8c 100644 --- a/core/core-editor.el +++ b/core/core-editor.el @@ -1,6 +1,7 @@ ;;; core-editor.el -*- lexical-binding: t; -*- -(defvar doom-detect-indentation-excluded-modes '(fundamental-mode so-long-mode) +(defvar doom-detect-indentation-excluded-modes + '(fundamental-mode pascal-mode so-long-mode) "A list of major modes in which indentation should be automatically detected.")