From: Andreas Gerler Date: Mon, 30 Nov 2015 13:58:46 +0000 (+0100) Subject: don't run check-parens on .org files X-Git-Url: http://git.bundesbrandschatzamt.de/?a=commitdiff_plain;h=62ecdd3199a8751f42be2a1731bab70ebcff33b3;p=emacsconfig.git 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. --- 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