Re: Conditionals in config
"Marc Wilson" <[email protected]> Mon, 23 Dec 2024 13:55:13 -0800
| Newsgroups | gmane.editors.qemacs.devel |
|---|---|
| Message-ID | <[email protected]> |
--9602f686dacf4a1f8481c3cd81af7ec5 Content-Type: text/plain Content-Transfer-Encoding: 7bit And ok, for this specific problem, I have just learned about the --ignore-whitespace flag, but it's still a good question. -- Marc Wilson [email protected] On Mon, Dec 23, 2024, at 1:50 PM, Marc Wilson wrote: > 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] > --9602f686dacf4a1f8481c3cd81af7ec5 Content-Type: text/html Content-Transfer-Encoding: quoted-printable <!DOCTYPE html><html><head><title></title><style type=3D"text/css">=0Ap.= MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div>And ok, for = this specific problem, I have just learned about the <span class=3D"font= " style=3D"font-family:menlo, consolas, monospace, sans-serif;">--ignore= -whitespace</span> flag, but it's still a good question.</div><div><br><= /div><div id=3D"sig39065985"><div class=3D"signature">-- <br></div>= <div class=3D"signature">Marc Wilson<br></div><div class=3D"signature"><= a href=3D"mailto:[email protected]">[email protected]</a><br></div></d= iv><div><br></div><div>On Mon, Dec 23, 2024, at 1:50 PM, Marc Wilson wro= te:<br></div><blockquote type=3D"cite" id=3D"qt" style=3D""><div>Is ther= e a way to do conditionals in the config file based on filename or exten= sion?<br></div><div><br></div><div>Example... I have tab expansion turne= d 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.<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 what it is.<br></div><div><br></div><div>So it would be useful to b= e 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 o= n python files ^_^ ). <br></div><div><br></div><div id=3D"qt-sig390= 65985"><div class=3D"qt-signature">-- <br></div><div class=3D"qt-si= gnature">Marc Wilson<br></div><div class=3D"qt-signature"><a href=3D"mai= lto:[email protected]">[email protected]</a><br></div></div><div><br><= /div></blockquote><div><br></div></body></html> --9602f686dacf4a1f8481c3cd81af7ec5--