Mercurial > dotfiles
view .elisp/settings/50.compilation-tweaks.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 | 1ba5a7b0a328 |
children | b0264224e2ec |
line wrap: on
line source
(require 'compile) (pushnew '(mercurial-test-output-tb "\+ File \".*/install/lib/python/\\([^\"]*\\)\", line \\([0-9]*\\)\\(, in .*\\)?$" 1 2) compilation-error-regexp-alist-alist) (pushnew '(mercurial-check-code-output-tb "\+\\(/[^:]+\\):\\([0-9]+\\):$" 1 2) compilation-error-regexp-alist-alist) ;; add to the end so this gets priority (setq compilation-error-regexp-alist (append compilation-error-regexp-alist '(mercurial-test-output-tb))) (setq compilation-error-regexp-alist (append compilation-error-regexp-alist '(mercurial-check-code-output-tb))) ;; Use the next s-exp to remove the last list element if you need to ;; live-edit this regex ;; (setq compilation-error-regexp-alist-alist ;; (cdr compilation-error-regexp-alist-alist)) ;; (setq compilation-error-regexp-alist ;; (reverse (cdr (reverse compilation-error-regexp-alist))))