help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

how to set file coding system but using per directory variables


From: Paul K
Subject: how to set file coding system but using per directory variables
Date: Sat, 1 Mar 2014 13:54:25 +0100

when I add following as first llne in a buffer it is properly interpretted

-*- coding: windows-1250-dos -*-


I don't want to add any headers to files though, so I created
.dir-locals.el file with following content:
((nil . ((buffer-file-coding-system . windows-1250-dos)
         (coding-system-for-read . windows-1250-dos)
         (coding-system-for-write . windows-1250-dos))))


then when I open file coding system is not automatically converted, I need
to do extra buffer reverting for declared coding system to be applied.

do You have any ideas?

best regards,


reply via email to

[Prev in Thread] Current Thread [Next in Thread]