From: martin rudalics <rudalics@gmx.at>
To: skokot@po.opole.pl
Cc: help-gnu-emacs@gnu.org
Subject: Re: local variable when editing a file in a specific directory
Date: Sun, 29 Apr 2007 09:48:30 +0200 [thread overview]
Message-ID: <46344DCE.2070107@gmx.at> (raw)
(add-hook
'find-file-hook
'(lambda ()
(when (save-match-data
(string-match
(concat "^" (regexp-quote "full name of specific directory"))
(file-name-directory (buffer-file-name))))
(set (make-local-variable 'require-final-newline) nil))))
next reply other threads:[~2007-04-29 7:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-29 7:48 martin rudalics [this message]
-- strict thread matches above, loose matches on Subject: below --
2007-04-28 22:28 local variable when editing a file in a specific directory Seweryn Kokot
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=46344DCE.2070107@gmx.at \
--to=rudalics@gmx.at \
--cc=help-gnu-emacs@gnu.org \
--cc=skokot@po.opole.pl \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).