summaryrefslogtreecommitdiff
path: root/src/tools/editors/emacs.samples
AgeCommit message (Collapse)Author
2019-01-13Make Emacs perl-mode indent more like perltidy.Noah Misch
This especially helps braces that surround code blocks. Back-patch to v11, where commit 56fb890ace8ac0ca955ae0803c580c2074f876f6 first appeared; before that, settings were even more distant from perltidy. Reviewed by Andrew Dunstan. Discussion: https://postgr.es/m/[email protected]
2018-07-13Update documentation editor setup instructionsPeter Eisentraut
Now that the documentation sources are in XML rather than SGML, some of the documentation about the editor, or more specifically Emacs, setup needs updating. The updated instructions recommend using nxml-mode, which works mostly out of the box, with some small tweaks in emacs.samples and .dir-locals.el. Also remove some obsolete stuff in .dir-locals.el. I did, however, leave the sgml-mode settings in there so that someone using Emacs without emacs.samples gets those settings when editing a *.sgml file.
2018-04-23Make Emacs settings match perltidy configurationPeter Eisentraut
Set Emacs's perl-continued-statement-offset to match perltidy's --continuation-indentation, which is 2 (not overridden in PostgreSQL's profile) rather than the 4 that Emacs uses by default.
2015-04-13emacs: Set indent-tabs-mode in perl-modePeter Eisentraut
This matches existing practice, but makes the setup complete and consistent with the C code setup.
2014-06-13emacs.samples: Reliably override ".dir-locals.el".Noah Misch
Back-patch to 9.4, where .dir-locals.el was introduced.
2013-08-14Update Emacs configurationPeter Eisentraut
Update emacs.samples with new configuration snippets that match pgindent et al. formatting more accurately and follow Emacs Lisp best practices better. Add .dir-locals.el with a subset of that configuration for casual editing and viewing. Reviewed-by: Dimitri Fontaine <[email protected]> Reviewed-by: Noah Misch <[email protected]>
2012-08-31Add Perl emacs formatting macros to src/tools/editors/emacs.samples.Bruce Momjian
Peter Eisentraut
2011-04-22Small update to emacs example configurationPeter Eisentraut
Since both tarballs and git now result in a "postgresql" directory rather than a "pgsql" directory, adjust the example configuration to look for the former.
2011-04-22Add fill-column setting to emacs example configurationsPeter Eisentraut
This matches the maximum line length that pgindent uses.
2010-11-23Remove useless whitespace at end of linesPeter Eisentraut
2009-07-21Add a further customization to the SGML Emacs mode to prevent the use ofPeter Eisentraut
tabs in the documentation source.
2009-05-20Fix sgml-mode example. thanks Andrew DunstanPeter Eisentraut
2009-05-18Add some instructions on how to customize emacs for working on the SGMLPeter Eisentraut
sources.
2006-09-07Update Emacs/vim editor info.Bruce Momjian