|
From: | Juri Linkov |
Subject: | Re: region sensitive Makefile compile-command |
Date: | Sun, 05 Dec 2004 22:52:17 +0200 |
User-agent: | Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux) |
Dan Jacobson <jidanni@jidanni.org> writes: > Patch no good as I use Debian. You can happily put in your .emacs: (add-hook 'makefile-mode-hook (lambda () (set (make-local-variable 'compile-command) '(save-excursion (beginning-of-line) (if (or (looking-at makefile-macroassign-regex) (looking-at makefile-dependency-regex) (makefile-previous-dependency)) (concat "make -k " (match-string-no-properties 1)) (car compile-history)))))) -- Juri Linkov http://www.jurta.org/emacs/
[Prev in Thread] | Current Thread | [Next in Thread] |