From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo de Moraes Serpa Subject: [OT] Deactivate flyspell on a file by file basis Date: Fri, 3 Jun 2011 10:04:57 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=00504502e37fbb3a4c04a4d0130a Return-path: Received: from eggs.gnu.org ([140.186.70.92]:52185) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QSVvp-0007pK-AS for emacs-orgmode@gnu.org; Fri, 03 Jun 2011 11:05:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QSVvn-0004XJ-QH for emacs-orgmode@gnu.org; Fri, 03 Jun 2011 11:05:01 -0400 Received: from mail-bw0-f41.google.com ([209.85.214.41]:50928) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QSVvn-0004X7-Lg for emacs-orgmode@gnu.org; Fri, 03 Jun 2011 11:04:59 -0400 Received: by bwz17 with SMTP id 17so2345200bwz.0 for ; Fri, 03 Jun 2011 08:04:58 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Org Mode --00504502e37fbb3a4c04a4d0130a Content-Type: text/plain; charset=ISO-8859-1 Hello list, I use flyspell-mode for writing articles, but I don't need it for my gtd.orgfile. Is there a way to exclude it (flyspell) from acting based on the filename of the buffer? Regards, Marcelo. --00504502e37fbb3a4c04a4d0130a Content-Type: text/html; charset=ISO-8859-1 Hello list,

I use flyspell-mode for writing articles, but I don't need it for my gtd.org file. Is there a way to exclude it (flyspell) from acting based on the filename of the buffer?

Regards,

Marcelo.
--00504502e37fbb3a4c04a4d0130a-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: [OT] Deactivate flyspell on a file by file basis Date: Fri, 03 Jun 2011 11:18:54 -0400 Message-ID: <8261.1307114334@alphaville.dokosmarshall.org> References: Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([140.186.70.92]:51498) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QSW9R-0002j0-Sd for emacs-orgmode@gnu.org; Fri, 03 Jun 2011 11:19:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QSW9O-0007DC-8v for emacs-orgmode@gnu.org; Fri, 03 Jun 2011 11:19:05 -0400 Received: from vms173017pub.verizon.net ([206.46.173.17]:44858) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QSW9O-0007Cv-4R for emacs-orgmode@gnu.org; Fri, 03 Jun 2011 11:19:02 -0400 Received: from alphaville.dokosmarshall.org ([unknown] [173.76.32.106]) by vms173017.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0LM700IGPZVIHEB0@vms173017.mailsrvcs.net> for emacs-orgmode@gnu.org; Fri, 03 Jun 2011 10:18:56 -0500 (CDT) In-reply-to: Message from Marcelo de Moraes Serpa of "Fri, 03 Jun 2011 10:04:57 CDT." List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Marcelo de Moraes Serpa Cc: nicholas.dokos@hp.com, Org Mode Marcelo de Moraes Serpa wrote: > I use flyspell-mode for writing articles, but I don't need it for my gtd.org file. Is there a way to > exclude it (flyspell) from acting based on the filename of the buffer? > You can use file local variables for things like this. There is an ``eval'' pseudo-variable to allow you to execute code. See the emacs manual for details, but it would look something like this (untested and you have to put it at the end of the file): ... # Local Variables: # eval: (flyspell-mode 0) # End: Nick From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pieter Praet Subject: Re: [OT] Deactivate flyspell on a file by file basis Date: Fri, 03 Jun 2011 17:52:08 +0200 Message-ID: <878vtidiaf.fsf@praet.org> References: <8261.1307114334@alphaville.dokosmarshall.org> <87fwnqudgl.fsf@praet.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([140.186.70.92]:50493) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QSWfX-00021o-AU for emacs-orgmode@gnu.org; Fri, 03 Jun 2011 11:52:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QSWfV-0005Pr-N6 for emacs-orgmode@gnu.org; Fri, 03 Jun 2011 11:52:15 -0400 Received: from mail-ww0-f49.google.com ([74.125.82.49]:48172) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QSWfV-0005Pj-AT for emacs-orgmode@gnu.org; Fri, 03 Jun 2011 11:52:13 -0400 Received: by wwb39 with SMTP id 39so1518020wwb.30 for ; Fri, 03 Jun 2011 08:52:12 -0700 (PDT) In-Reply-To: <87fwnqudgl.fsf@praet.org> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Marcelo de Moraes Serpa Cc: nicholas.dokos@hp.com, Org Mode On Fri, 03 Jun 2011 17:44:26 +0200, Pieter Praet wrote: > On Fri, 03 Jun 2011 11:18:54 -0400, Nick Dokos wrote: > > Marcelo de Moraes Serpa wrote: > > > > > > > I use flyspell-mode for writing articles, but I don't need it for my gtd.org file. Is there a way to > > > exclude it (flyspell) from acting based on the filename of the buffer? > > > > > > > You can use file local variables for things like this. There is an > > ``eval'' pseudo-variable to allow you to execute code. See the emacs > > manual for details, but it would look something like this (untested and > > you have to put it at the end of the file): > > > > ... > > # Local Variables: > > # eval: (flyspell-mode 0) > > # End: > > Although this can get rather annoying due to > enable-local-variables related popups. s/enable-local-variables/enable-local-eval ... though enable-local-variables applies as well. Sorry for the noise. > > I use something similar to this: > > (add-hook 'find-file-hook > (lambda () > (or (member (buffer-file-name) > '("/path/to/some/file" > "/path/to/other/file")) > (flyspell-mode 1)))) > > > Nick > > > > Peace > > -- > Pieter Peace -- Pieter From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pieter Praet Subject: Re: [OT] Deactivate flyspell on a file by file basis Date: Fri, 03 Jun 2011 17:44:26 +0200 Message-ID: <87fwnqudgl.fsf@praet.org> References: <8261.1307114334@alphaville.dokosmarshall.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([140.186.70.92]:50760) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QSWY6-0008VY-9h for emacs-orgmode@gnu.org; Fri, 03 Jun 2011 11:44:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QSWY4-0003su-FG for emacs-orgmode@gnu.org; Fri, 03 Jun 2011 11:44:34 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:46002) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QSWY4-0003sl-1W for emacs-orgmode@gnu.org; Fri, 03 Jun 2011 11:44:32 -0400 Received: by wyf19 with SMTP id 19so1900734wyf.0 for ; Fri, 03 Jun 2011 08:44:30 -0700 (PDT) In-Reply-To: <8261.1307114334@alphaville.dokosmarshall.org> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Marcelo de Moraes Serpa Cc: nicholas.dokos@hp.com, Org Mode On Fri, 03 Jun 2011 11:18:54 -0400, Nick Dokos wrote: > Marcelo de Moraes Serpa wrote: > > > > I use flyspell-mode for writing articles, but I don't need it for my gtd.org file. Is there a way to > > exclude it (flyspell) from acting based on the filename of the buffer? > > > > You can use file local variables for things like this. There is an > ``eval'' pseudo-variable to allow you to execute code. See the emacs > manual for details, but it would look something like this (untested and > you have to put it at the end of the file): > > ... > # Local Variables: > # eval: (flyspell-mode 0) > # End: Although this can get rather annoying due to enable-local-variables related popups. I use something similar to this: (add-hook 'find-file-hook (lambda () (or (member (buffer-file-name) '("/path/to/some/file" "/path/to/other/file")) (flyspell-mode 1)))) > Nick > Peace -- Pieter From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: [OT] Deactivate flyspell on a file by file basis Date: Fri, 03 Jun 2011 12:14:45 -0400 Message-ID: <9395.1307117685@alphaville.dokosmarshall.org> References: <8261.1307114334@alphaville.dokosmarshall.org> <87fwnqudgl.fsf@praet.org> <878vtidiaf.fsf@praet.org> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([140.186.70.92]:58905) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QSX1Z-0007VV-35 for emacs-orgmode@gnu.org; Fri, 03 Jun 2011 12:15:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QSX1X-0000uv-DC for emacs-orgmode@gnu.org; Fri, 03 Jun 2011 12:15:00 -0400 Received: from vms173009pub.verizon.net ([206.46.173.9]:34759) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QSX1X-0000ub-0e for emacs-orgmode@gnu.org; Fri, 03 Jun 2011 12:14:59 -0400 Received: from alphaville.dokosmarshall.org ([unknown] [173.76.32.106]) by vms173009.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0LM80098B2GM4I20@vms173009.mailsrvcs.net> for emacs-orgmode@gnu.org; Fri, 03 Jun 2011 11:14:47 -0500 (CDT) In-reply-to: Message from Pieter Praet of "Fri, 03 Jun 2011 17:52:08 +0200." <878vtidiaf.fsf@praet.org> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Pieter Praet Cc: nicholas.dokos@hp.com, Org Mode , Marcelo de Moraes Serpa Pieter Praet wrote: > On Fri, 03 Jun 2011 17:44:26 +0200, Pieter Praet wrote: > > On Fri, 03 Jun 2011 11:18:54 -0400, Nick Dokos wrote: > > > Marcelo de Moraes Serpa wrote: > > > > > > > > > > I use flyspell-mode for writing articles, but I don't need it for my gtd.org file. Is there a way to > > > > exclude it (flyspell) from acting based on the filename of the buffer? > > > > > > > > > > You can use file local variables for things like this. There is an > > > ``eval'' pseudo-variable to allow you to execute code. See the emacs > > > manual for details, but it would look something like this (untested and > > > you have to put it at the end of the file): > > > > > > ... > > > # Local Variables: > > > # eval: (flyspell-mode 0) > > > # End: > > > > Although this can get rather annoying due to > > enable-local-variables related popups. > You can save the eval setting in your custom file by saying ! to the nag question the first time it is asked. As long as you load the custom file, it won't nag you again. Nick > s/enable-local-variables/enable-local-eval > > ... though enable-local-variables applies as well. > > Sorry for the noise. > > > > > I use something similar to this: > > > > (add-hook 'find-file-hook > > (lambda () > > (or (member (buffer-file-name) > > '("/path/to/some/file" > > "/path/to/other/file")) > > (flyspell-mode 1)))) > > From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo de Moraes Serpa Subject: Re: [OT] Deactivate flyspell on a file by file basis Date: Thu, 30 Jun 2011 10:56:48 -0500 Message-ID: References: <8261.1307114334@alphaville.dokosmarshall.org> <87fwnqudgl.fsf@praet.org> <878vtidiaf.fsf@praet.org> <9395.1307117685@alphaville.dokosmarshall.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=00032555e47edacd7d04a6eff29a Return-path: Received: from eggs.gnu.org ([140.186.70.92]:47775) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QcJbq-0000TO-Nz for emacs-orgmode@gnu.org; Thu, 30 Jun 2011 11:56:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QcJbo-0008Q7-AL for emacs-orgmode@gnu.org; Thu, 30 Jun 2011 11:56:54 -0400 Received: from mail-bw0-f41.google.com ([209.85.214.41]:51407) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QcJbn-0008Pu-Qo for emacs-orgmode@gnu.org; Thu, 30 Jun 2011 11:56:52 -0400 Received: by bwd14 with SMTP id 14so2575826bwd.0 for ; Thu, 30 Jun 2011 08:56:49 -0700 (PDT) In-Reply-To: <9395.1307117685@alphaville.dokosmarshall.org> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: nicholas.dokos@hp.com Cc: Org Mode , Pieter Praet --00032555e47edacd7d04a6eff29a Content-Type: text/plain; charset=ISO-8859-1 Thank you all for the replies. @Nick,@Peter: Both approaches work great! :) Cheers, Marcelo. On Fri, Jun 3, 2011 at 11:14 AM, Nick Dokos wrote: > Pieter Praet wrote: > > > On Fri, 03 Jun 2011 17:44:26 +0200, Pieter Praet > wrote: > > > On Fri, 03 Jun 2011 11:18:54 -0400, Nick Dokos > wrote: > > > > Marcelo de Moraes Serpa wrote: > > > > > > > > > > > > > I use flyspell-mode for writing articles, but I don't need it for > my gtd.org file. Is there a way to > > > > > exclude it (flyspell) from acting based on the filename of the > buffer? > > > > > > > > > > > > > You can use file local variables for things like this. There is an > > > > ``eval'' pseudo-variable to allow you to execute code. See the emacs > > > > manual for details, but it would look something like this (untested > and > > > > you have to put it at the end of the file): > > > > > > > > ... > > > > # Local Variables: > > > > # eval: (flyspell-mode 0) > > > > # End: > > > > > > Although this can get rather annoying due to > > > enable-local-variables related popups. > > > You can save the eval setting in your custom file by saying ! to the > nag question the first time it is asked. As long as you load the custom > file, > it won't nag you again. > > Nick > > > s/enable-local-variables/enable-local-eval > > > > ... though enable-local-variables applies as well. > > > > Sorry for the noise. > > > > > > > > I use something similar to this: > > > > > > (add-hook 'find-file-hook > > > (lambda () > > > (or (member (buffer-file-name) > > > '("/path/to/some/file" > > > "/path/to/other/file")) > > > (flyspell-mode 1)))) > > > > --00032555e47edacd7d04a6eff29a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thank you all for the replies.

@Nick,@Peter: Both approa= ches work great! :)

Cheers,

Marcelo.

On Fri, Jun 3, 2011 at= 11:14 AM, Nick Dokos <nicholas.dokos@hp.com> wrote:
Pieter Praet <pieter@praet.org> wrote:

> On Fri, 03 Jun 2011 17:44:26 +0200, Pieter Praet <pieter@praet.org> wrote:
> > On Fri, 03 Jun 2011 11:18:54 -0400, Nick Dokos <nicholas.dokos@hp.com> wrote:
> > > Marcelo de Moraes Serpa <celoserpa@gmail.com> wrote:
> > >
> > >
> > > > I use flyspell-mode for writing articles, but I don'= ;t need it for my gtd.org = file. Is there a way to
> > > > exclude it (flyspell) from acting based on the filename= of the buffer?
> > > >
> > >
> > > You can use file local variables for things like this. There= is an
> > > ``eval'' pseudo-variable to allow you to execute cod= e. See the emacs
> > > manual for details, but it would look something like this (u= ntested and
> > > you have to put it at the end of the file):
> > >
> > > ...
> > > # Local Variables:
> > > # eval: (flyspell-mode 0)
> > > # End:
> >
> > Although this can get rather annoying due to
> > enable-local-variables related popups.
>
You can save the eval setting in your custom file by saying ! to the<= br> nag question the first time it is asked. As long as you load the custom fil= e,
it won't nag you again.

Nick

> s/enable-local-variables/enable-local-eval
>
> ... though enable-local-variables applies as well.
>
> Sorry for the noise.
>
> >
> > I use something similar to this:
> >
> > (add-hook 'find-file-hook
> > =A0 =A0 =A0 =A0 =A0 (lambda ()
> > =A0 =A0 =A0 =A0 =A0 =A0 (or (member (buffer-file-name)
> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 '("/path= /to/some/file"
> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 "/path/t= o/other/file"))
> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (flyspell-mode 1))))
> >

--00032555e47edacd7d04a6eff29a--