From: Andreas Gerler Date: Fri, 20 Mar 2015 11:59:19 +0000 (+0000) Subject: disabled flycheck if emacs version is not 24 X-Git-Url: http://git.bundesbrandschatzamt.de/?a=commitdiff_plain;h=461f61e277b44fd77f03d2f1ebc33313f14d7175;p=emacsconfig.git disabled flycheck if emacs version is not 24 --- diff --git a/bba.org b/bba.org index 10e48040..6b5b9621 100644 --- 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]]