From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel Subject: Re: dir-locals.el take precedence over user's mode-hook changes Date: Wed, 31 Dec 2008 08:17:10 -0800 (PST) Message-ID: <200812311617.mBVGHAbt004745@mothra.ics.uci.edu> References: <200812241903.mBOJ3SjQ009445@mothra.ics.uci.edu> <87wsdpp9q8.fsf@jurta.org> <87sko5dxko.fsf@jurta.org> <200812310154.mBV1s5at001247@mothra.ics.uci.edu> <87hc4kmu4c.fsf@jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1230740257 7112 80.91.229.12 (31 Dec 2008 16:17:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 31 Dec 2008 16:17:37 +0000 (UTC) Cc: Tom Tromey , Stefan Monnier , emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 31 17:18:42 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LI3mL-0001x9-4O for ged-emacs-devel@m.gmane.org; Wed, 31 Dec 2008 17:18:41 +0100 Original-Received: from localhost ([127.0.0.1]:44309 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LI3l6-0005NX-TS for ged-emacs-devel@m.gmane.org; Wed, 31 Dec 2008 11:17:24 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LI3l1-0005NS-Lc for emacs-devel@gnu.org; Wed, 31 Dec 2008 11:17:19 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LI3l0-0005NG-DK for emacs-devel@gnu.org; Wed, 31 Dec 2008 11:17:19 -0500 Original-Received: from [199.232.76.173] (port=54739 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LI3l0-0005ND-A6 for emacs-devel@gnu.org; Wed, 31 Dec 2008 11:17:18 -0500 Original-Received: from sallyv2.ics.uci.edu ([128.195.1.120]:38199) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1LI3kz-000891-UB for emacs-devel@gnu.org; Wed, 31 Dec 2008 11:17:18 -0500 Original-Received: from mothra.ics.uci.edu (mothra.ics.uci.edu [128.195.6.93]) by sallyv2.ics.uci.edu (8.13.7+Sun/8.13.7) with ESMTP id mBVGHALs022822; Wed, 31 Dec 2008 08:17:11 -0800 (PST) Original-Received: (from dann@localhost) by mothra.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id mBVGHAbt004745; Wed, 31 Dec 2008 08:17:10 -0800 (PST) In-Reply-To: <87hc4kmu4c.fsf@jurta.org> (Juri Linkov's message of "Wed, 31 Dec 2008 14:28:07 +0200") Original-Lines: 32 X-ICS-MailScanner-Information: Please contact the ISP for more information X-ICS-MailScanner-ID: mBVGHALs022822 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@mothra.ics.uci.edu X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (beta) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:107464 Archived-At: Juri Linkov writes: > > > >> And when I try to enable `bug-reference-mode' using the following hook: > > > >> (add-hook 'change-log-mode-hook 'bug-reference-mode) > > > > It would be even nicer to be able to turn on this minor mode in > > .dir-locals.el which together with setting bug-reference-url-format to > > the right value, would make this feature work for everyone by default > > with not .emacs changes. > > Same goes about being able to turn on minor modes in using "Local Variables". > > It's already possible to turn on minor modes in "Local Variables" using the > `mode' tag: > > ;; bug-reference-url-format: "http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=%s" > ;; mode: bug-reference Unfortunately this does not work, it would turn the mode off if it's already turned on. If you have in your .emacs: (add-hook 'emacs-lisp-mode-hook 'my-emacs-lisp-mode-hook) (defun my-emacs-lisp-mode-hook () (auto-fill-mode 1)) And add to an elisp file: ;; Local Variables: ;; mode: auto-fill ;; End: auto-fill-mode will not be turned on for that elisp file.