unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#36861: 27.0.50; display-fill-column-indicator-mode in log-edit-mode
@ 2019-07-30 20:44 Juri Linkov
  2019-07-30 21:21 ` Juri Linkov
  2019-07-31  2:30 ` Eli Zaretskii
  0 siblings, 2 replies; 16+ messages in thread
From: Juri Linkov @ 2019-07-30 20:44 UTC (permalink / raw)
  To: 36861

It has an unpleasant effect when git commit abruptly fails when
the length of the first line of the commit message is longer than
78 characters.  This patch enables a visual indication in the
log-edit buffer to help not to exceed the limit beforehand:

diff --git a/.dir-locals.el b/.dir-locals.el
index ffd65c8802..e56d8c753b 100644
--- a/.dir-locals.el
+++ b/.dir-locals.el
@@ -10,7 +10,9 @@
                (electric-quote-comment . nil)
                (electric-quote-string . nil)))
  (log-edit-mode . ((log-edit-font-lock-gnu-style . t)
-                   (log-edit-setup-add-author . t)))
+                   (log-edit-setup-add-author . t)
+                   (fill-column . 78)
+                   (eval . (display-fill-column-indicator-mode))))
  (change-log-mode . ((add-log-time-zone-rule . t)
 		     (fill-column . 74)
 		     (eval . (bug-reference-mode))))





^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2020-08-09 19:18 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-07-30 20:44 bug#36861: 27.0.50; display-fill-column-indicator-mode in log-edit-mode Juri Linkov
2019-07-30 21:21 ` Juri Linkov
2019-07-31  2:30 ` Eli Zaretskii
2019-07-31 20:49   ` Juri Linkov
2019-08-02  9:10     ` Eli Zaretskii
2019-08-03 22:31       ` Juri Linkov
2019-08-04  0:51         ` Ergus
2019-08-04 19:39           ` Juri Linkov
2019-08-04 20:30             ` Ergus
2019-08-06 14:59               ` Eli Zaretskii
2019-08-06 17:51                 ` Ergus
2019-08-06 18:26                   ` Eli Zaretskii
2019-08-06 19:25                     ` Ergus
2019-08-07 14:42                       ` Eli Zaretskii
2020-08-09 19:18                         ` Lars Ingebrigtsen
2019-08-05 21:43       ` Juri Linkov

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).