Обсуждение: pgindent vs emacs
One of the annoying inconsistencies between emacs and pgindent is that emacs refuses to offset a block following a case label, while pgindent does. Is there anything we can do to induce emacs to do what pgindent does? cheers andrew
On 2015-05-29 13:37:40 -0400, Andrew Dunstan wrote: > One of the annoying inconsistencies between emacs and pgindent is that emacs > refuses to offset a block following a case label, while pgindent does. Is > there anything we can do to induce emacs to do what pgindent does? Are you using the logic from src/tools/editors/emacs.samples I don't see that problem here. I've further tuned my emacs for pPG, but afaics nothing but relevant for this but the above.
On 05/29/2015 01:49 PM, Andres Freund wrote: > On 2015-05-29 13:37:40 -0400, Andrew Dunstan wrote: >> One of the annoying inconsistencies between emacs and pgindent is that emacs >> refuses to offset a block following a case label, while pgindent does. Is >> there anything we can do to induce emacs to do what pgindent does? > Are you using the logic from src/tools/editors/emacs.samples > > I don't see that problem here. I've further tuned my emacs for pPG, but > afaics nothing but relevant for this but the above. > Hmm, yes, you're right, I was missing something. It also turns out it depends on stuff we can't put in .dir-locals.el. Sorry for the noise. cheers andrew