From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Hongxu Chen Newsgroups: gmane.emacs.help Subject: Re: Can I turn on some minor mode on specific files? Date: Sun, 26 May 2013 22:20:05 +0800 Message-ID: <87d2sdlt62.fsf@gmail.com> References: <87r4gujzgj.fsf@kuiper.lan.informatimago.com> <87y5b2h0jm.fsf@gmail.com> <51A1AAE4.8030300@pobox.com> <87li71hqez.fsf@gmail.com> <87fvx9kg6w.fsf@kuiper.lan.informatimago.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1369578030 15762 80.91.229.3 (26 May 2013 14:20:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 26 May 2013 14:20:30 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "Pascal J. Bourguignon" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun May 26 16:20:29 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UgboD-0002Um-Ks for geh-help-gnu-emacs@m.gmane.org; Sun, 26 May 2013 16:20:29 +0200 Original-Received: from localhost ([::1]:36793 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UgboC-00039Y-V7 for geh-help-gnu-emacs@m.gmane.org; Sun, 26 May 2013 10:20:28 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:55684) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ugbny-00039I-FX for help-gnu-emacs@gnu.org; Sun, 26 May 2013 10:20:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ugbnv-0003Xy-Mh for help-gnu-emacs@gnu.org; Sun, 26 May 2013 10:20:14 -0400 Original-Received: from mail-pd0-f180.google.com ([209.85.192.180]:57171) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ugbnv-0003Xt-Fn for help-gnu-emacs@gnu.org; Sun, 26 May 2013 10:20:11 -0400 Original-Received: by mail-pd0-f180.google.com with SMTP id 14so3331497pdc.39 for ; Sun, 26 May 2013 07:20:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=TI3V8Vyuf7titM1f/7mFGSYFw3dICt65uXfaENK1rLU=; b=tSY9DH5/GVQiL/eKsmA6gwJ8kvmYRcpVYIeEDhU+Wi/tAIZil/NXpAFnptGK07UIXB A2bcFIyD291onaxo2h2KgdmCLs8AOwGMVMioDYglIn4MfvtSNuObNCpmZjjTx8G3Czsv NPwmnzKJMDqdPplU2oSmqC7SXDWeUQelSqMeNN+cWKhxd0nhjTaXjTnkOHWXTUS2CwlN baxaVpYi0Ef7516WgqxhYvDp3UP2OGfMtF0okL6LJg2iiQWHnpmTbB4otOvq719bhDGc D7SbgJSe4OVr+xIdiAlzS30TQ4L0PNeqLYDdIN4ah1N0gNArBDp6X73vdyd9gYedSIo1 293w== X-Received: by 10.68.217.197 with SMTP id pa5mr25390006pbc.127.1369578010566; Sun, 26 May 2013 07:20:10 -0700 (PDT) Original-Received: from hongxuchen-VM.STAP ([207.46.92.19]) by mx.google.com with ESMTPSA id qh4sm26373582pac.8.2013.05.26.07.20.08 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sun, 26 May 2013 07:20:09 -0700 (PDT) In-Reply-To: <87fvx9kg6w.fsf@kuiper.lan.informatimago.com> (Pascal J. Bourguignon's message of "Sun, 26 May 2013 15:45:43 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.192.180 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:91070 Archived-At: So in this way I have to add the major-mode explicitly then? "Pascal J. Bourguignon" writes: > Hongxu Chen writes: > >> But it complains: >> >> Info-find-file: Info file emacs does not exist >> >> I am runnning on Emacs 24.3. >> >> Also, Pascal's advice is NOT correct since adding `mode' in the modeline >> would change the major mode rather than minor modes, and the right way >> is to append the following: > > You should of course put your major mode first, but you can add as many > minor modes you want: > > -*- mode:text;mode:hs-minor;mode:flyspell -*- -- Regards, Hongxu Chen