all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alan Mackenzie <acm@muc.de>
To: nullx002 <nullx002@gmail.com>
Cc: 24292@debbugs.gnu.org
Subject: bug#24292: # Local Variables: not working
Date: Tue, 23 Aug 2016 17:00:00 +0000	[thread overview]
Message-ID: <20160823170000.GA13678@acm.fritz.box> (raw)
In-Reply-To: <87oa4j7qdq.fsf@gmail.com>

On Tue, Aug 23, 2016 at 03:34:33PM +0530, nullx002 wrote:


> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

> My init.el file has following line:

> (gobal-linum-mode t)

> Now I want to disable linum-mode for few .org files so i used following:

> # Local Variables:
> # eval: (linum-mode 0)
> # End:

> in header above everything else.
            ^^^^^

Assuming nothing's got lost in the translation, that could be your
problem.  the Local Variables: section has to come at the BOTTOM of the
file, after other things.

It will work as long as it's within the last (I think) 5000 character of
the file.  So if you've got some fairly short files, a LV section at the
top of that file will work.  If your file is bigger than ~5000 bytes
(and I think .org files tend to be big) it won't work.

So move those LV sections to the ends of their files, and see if that
helps.

> but it is not working for me for org files, it works for other files
> like .txt .md .js etc. but not for .org files

> I tired with empty .org file and result is same.

> C-h v linum-mode for .txt file gives:

> Its value is nil
> Local in buffer test.txt; global value is the same.

> while,

> C-h v linum-mode for .org file gives:

> Its value is t
> Local in buffer capture-tasks.org; global value is nil

> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



> In GNU Emacs 24.5.1 (i686-pc-linux-gnu, GTK+ Version 3.18.9)
>  of 2016-04-17 on lgw01-36, modified by Debian
> Windowing system distributor `The X.Org Foundation', version 11.0.11803000
> System Description:	Ubuntu 16.04.1 LTS

[ .... ]

-- 
Alan Mackenzie (Nuremberg, Germany).





  reply	other threads:[~2016-08-23 17:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-23 10:04 bug#24292: # Local Variables: not working nullx002
2016-08-23 17:00 ` Alan Mackenzie [this message]
     [not found]   ` <87oa4ituj4.fsf@gmail.com>
2016-08-24 11:21     ` Alan Mackenzie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160823170000.GA13678@acm.fritz.box \
    --to=acm@muc.de \
    --cc=24292@debbugs.gnu.org \
    --cc=nullx002@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.