comparison .elisp/settings/90.which-function-mode.el @ 354:3d46ce32c14e

which-function-mode: only enable in emacs 24.4 and later Emacs 24.3.x has a bug in which-function-mode that causes my emacs to lock up for several seconds. Rather than tolerate that, just disable which-function-mode on those systems.
author Augie Fackler <raf@durin42.com>
date Tue, 18 Nov 2014 17:17:36 -0500
parents 6d78e7d0930f
children
comparison
equal deleted inserted replaced
353:95621f473f7e 354:3d46ce32c14e
1 (which-function-mode) 1 ;; emacs 24.3 had a buggy which-function-mode that was really slow, so
2 (add-to-list 'which-func-modes 'python-mode) 2 ;; only load which-function-mode on 24.4 and later.
3 (add-to-list 'which-func-modes 'emacs-lisp-mode) 3 (if (and (>= emacs-major-version 24)
4 (add-to-list 'which-func-modes 'go-mode) 4 (>= emacs-minor-version 4))
5 (progn
6 (which-function-mode)
7 (add-to-list 'which-func-modes 'python-mode)
8 (add-to-list 'which-func-modes 'emacs-lisp-mode)
9 (add-to-list 'which-func-modes 'go-mode)))