Disable flycheck-pos-tip in emacs >= 25

This commit is contained in:
Henrik Lissner 2016-05-07 21:56:21 -04:00
parent a8c5282b35
commit d0770a0111
2 changed files with 7 additions and 6 deletions

View file

@ -252,11 +252,11 @@ Examples:
(defun narf|update-scratch-buffer-cwd (&optional dir) ; see core-editor.el (defun narf|update-scratch-buffer-cwd (&optional dir) ; see core-editor.el
"Make sure scratch buffer is always 'in a project.'" "Make sure scratch buffer is always 'in a project.'"
(let ((dir (or dir (narf/project-root)))) (let ((dir (or dir (narf/project-root))))
(with-current-buffer (get-buffer-create "*scratch*") (with-current-buffer (get-buffer-create "*scratch*")
(setq default-directory dir) (setq default-directory dir)
(setq header-line-format (setq header-line-format
'(:eval '(:eval
(concat "" (abbreviate-file-name default-directory))))))) (concat "" (abbreviate-file-name default-directory)))))))
;;;; Global Defuns ;;;;;;;;;;;;;;;;;;;;; ;;;; Global Defuns ;;;;;;;;;;;;;;;;;;;;;
@ -267,7 +267,7 @@ Examples:
(f-directories narf-core-dir nil t) (f-directories narf-core-dir nil t)
(f-directories narf-modules-dir nil t) (f-directories narf-modules-dir nil t)
(f-directories narf-packages-dir) (f-directories narf-packages-dir)
(f-directories (expand-file-name "../bootstrap" narf-packages-dir)) (f-directories (f-expand "../bootstrap" narf-packages-dir))
narf--load-path))) narf--load-path)))
(defun narf-reload-autoloads () (defun narf-reload-autoloads ()

View file

@ -49,6 +49,7 @@
:config (flycheck-package-setup)) :config (flycheck-package-setup))
(use-package flycheck-pos-tip (use-package flycheck-pos-tip
:when (= emacs-major-version 24)
:after flycheck :after flycheck
:config :config
(setq flycheck-pos-tip-timeout 10 (setq flycheck-pos-tip-timeout 10