]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdbsupport/ChangeLog
gdb: additional settings for emacs in .dir-locals.el
authorAndrew Burgess <andrew.burgess@embecosm.com>
Mon, 17 May 2021 12:09:22 +0000 (13:09 +0100)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Mon, 17 May 2021 19:47:46 +0000 (20:47 +0100)
commitc1c0a7e1f39fda9f95bb94ecc5f39b189d69a76c
tree7f6cb0a8fc843a90bb52588fa3316c6e99f34822
parent9e541c7918c184aa226c1544159e37b6387ef205
gdb: additional settings for emacs in .dir-locals.el

Two additional settings for developers who use emacs:

  1. Set brace-list-open to 0 for C and C++ modes, this ensures we
  format things like:

  enum blah
  {
    ....
  };

  Instead of the default for the emacs GNU style:

  enum blah
    {
      ...
    };

  The former seems to be the GDB style.

  2. Set sentence-end-double-space to t.  This is actually the default
  value for this setting, but if anyone has customised this to nil in
  general, then forcing this back to t for GDB files will give a
  better behaviour for the paragraph filling.

gdb/ChangeLog:

* .dir-locals.el: Set sentence-end-double-space for all modes, and
set brace-list-open to 0 for C and C++ modes.

gdbserver/ChangeLog:

* .dir-locals.el: Set sentence-end-double-space for all modes, and
set brace-list-open to 0 for C and C++ modes.

gdbsupport/ChangeLog:

* .dir-locals.el: Set sentence-end-double-space for all modes, and
set brace-list-open to 0 for C and C++ modes.
gdb/.dir-locals.el
gdb/ChangeLog
gdbserver/.dir-locals.el
gdbserver/ChangeLog
gdbsupport/.dir-locals.el
gdbsupport/ChangeLog