Conditionals in config
"Marc Wilson" <[email protected]> Mon, 23 Dec 2024 13:50:20 -0800
| Newsgroups | gmane.editors.qemacs.devel |
|---|---|
| Message-ID | <[email protected]> |
--a35ff4c4790f4cdab3a6bdc4185d54f6 Content-Type: text/plain Content-Transfer-Encoding: 7bit Is there a way to do conditionals in the config file based on filename or extension? Example... I have tab expansion turned on and set to four spaces. I touched in a shell a new file with a .patch extension, then opened it in qemacs and pasted a patch into it and saved it. But it wouldn't apply. The code base was tabs, and qemacs had replaced the tabs. Perhaps there's an option to git apply that would correct for that, but I don't know what it is. So it would be useful to be able to condition things like that based on the filename or extension (or filetype, I could do it the other way and only force the expansion on python files ^_^ ). -- Marc Wilson [email protected] --a35ff4c4790f4cdab3a6bdc4185d54f6 Content-Type: text/html Content-Transfer-Encoding: quoted-printable <!DOCTYPE html><html><head><title></title><style type=3D"text/css">p.Mso= Normal,p.MsoNoSpacing{margin:0}</style></head><body><div>Is there a way = to do conditionals in the config file based on filename or extension?<br= ></div><div><br></div><div>Example... I have tab expansion turned on and= set to four spaces. I touched in a shell a new file with a .patch= extension, then opened it in qemacs and pasted a patch into it and save= d it.<br></div><div><br></div><div>But it wouldn't apply. The code= base was tabs, and qemacs had replaced the tabs. Perhaps there's = an option to git apply that would correct for that, but I don't know wha= t it is.<br></div><div><br></div><div>So it would be useful to be able t= o condition things like that based on the filename or extension (or file= type, I could do it the other way and only force the expansion on python= files ^_^ ). <br></div><div><br></div><div id=3D"sig39065985"><div= class=3D"signature">-- <br></div><div class=3D"signature">Marc Wil= son<br></div><div class=3D"signature"><a href=3D"mailto:[email protected]= om">[email protected]</a><br></div></div><div><br></div></body></html> --a35ff4c4790f4cdab3a6bdc4185d54f6--