|
From: | martin rudalics |
Subject: | Re: local variable when editing a file in a specific directory |
Date: | Sun, 29 Apr 2007 09:48:30 +0200 |
User-agent: | Mozilla Thunderbird 1.0 (Windows/20041206) |
(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))))
[Prev in Thread] | Current Thread | [Next in Thread] |