]> git.bundesbrandschatzamt.de Git - emacsconfig.git/commitdiff
disabled flycheck if emacs version is not 24
authorAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Fri, 20 Mar 2015 11:59:19 +0000 (11:59 +0000)
committerAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Fri, 20 Mar 2015 11:59:19 +0000 (11:59 +0000)
bba.org

diff --git a/bba.org b/bba.org
index 10e4804017d0c163532f8b815a6d7db3a6b3c0d8..6b5b962161e7bbaef3095661dec5a80ef462a28e 100644 (file)
--- a/bba.org
+++ b/bba.org
@@ -144,9 +144,12 @@ See [[https://github.com/toctan/smartparens][Smartparens on github]].
 *** [[https://github.com/flycheck/flycheck][flycheck]]
 
 #+BEGIN_SRC emacs-lisp
-(add-to-list 'load-path "~/.emacs.d/elpa/flycheck-20150125.601")
-(require 'flycheck)
-(add-hook 'after-init-hook #'global-flycheck-mode)
+    (if (= emacs-major-version 24)
+        (progn
+          (add-to-list 'load-path "~/.emacs.d/elpa/flycheck-20150125.601")
+          (require 'flycheck)
+          (add-hook 'after-init-hook #'global-flycheck-mode)
+          ))
 #+END_SRC
 
 *** [[https://github.com/kai2nenobu/guide-key][guide-key]]