From 62ecdd3199a8751f42be2a1731bab70ebcff33b3 Mon Sep 17 00:00:00 2001 From: Andreas Gerler Date: Mon, 30 Nov 2015 14:58:46 +0100 Subject: [PATCH] don't run check-parens on .org files - it's ok to have unbalanced parentheses in org mode files. You have code and result sets. At least ANSI Codes bother you. --- bba.org | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bba.org b/bba.org index d0d69f92..016771bc 100644 --- a/bba.org +++ b/bba.org @@ -1761,7 +1761,12 @@ safe files with #! in first line as user executable. #+BEGIN_SRC emacs-lisp (add-hook `after-save-hook #'(lambda () - (if (not (string-match ".htm" buffer-file-name))(check-parens)) + (if (not + (or + (string-match ".htm" buffer-file-name) + (string-match ".org" buffer-file-name)) + ) + (check-parens)) (and (save-excursion (save-restriction -- 2.47.3