From 461f61e277b44fd77f03d2f1ebc33313f14d7175 Mon Sep 17 00:00:00 2001 From: Andreas Gerler Date: Fri, 20 Mar 2015 11:59:19 +0000 Subject: [PATCH] disabled flycheck if emacs version is not 24 --- bba.org | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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]] -- 2.47.3