]> git.bundesbrandschatzamt.de Git - emacsconfig.git/commitdiff
don't run check-parens on .org files
authorAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Mon, 30 Nov 2015 13:58:46 +0000 (14:58 +0100)
committerAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Mon, 30 Nov 2015 13:58:46 +0000 (14:58 +0100)
- 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

diff --git a/bba.org b/bba.org
index d0d69f92a8f4f908474d8cff501f42b0c78c82bd..016771bcf3fa056d4abb603b9df56b2f70ec10e4 100644 (file)
--- 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