2022-10-05 17:45:27 +00:00
|
|
|
;;; Directory Local Variables -*- no-byte-compile: t; -*-
|
2019-11-02 03:24:44 +00:00
|
|
|
;;; For more information see (info "(emacs) Directory Variables")
|
|
|
|
|
2019-04-09 04:38:31 +00:00
|
|
|
((nil . ((tab-width . 8)
|
|
|
|
(sentence-end-double-space . t)
|
Increase `emacs-lisp-docstring-fill-column` to 72
Monitors are wider now than when these defaults were first set, and it
is useful to take better advantage of that, to fit text on fewer lines.
Yet, it has repeatedly been shown that overly long lines reduce
readability:
"A reasonable guideline would be 55 to 75 characters per line."[1]
We also don't want to disfavor narrow displays, like mobile phones; a
more promising direction here might be to automatically word wrap
docstrings and make their maximum width customizable. That might
require a new docstring format, however.
Bumping it by 7 characters, from 65 to 72, seems a reasonable compromise
for now. Consideration was given to increasing it to 70 or 75, but 72
happens to be a commonly recommended maximum line width elsewhere (see
Fortran 66, Python docstrings, commit message recommendations, etc.),
and we might as well do the same.
This change was discussed in:
https://lists.gnu.org/r/emacs-devel/2022-07/msg00217.html
[1] "Optimal Line Length in Reading — A Literature Review", Nanavati and
Bias, Visible Language, Vol. 39 No. 2 (2005).
https://journals.uc.edu/index.php/vl/article/view/5765
* lisp/emacs-lisp/lisp-mode.el (emacs-lisp-docstring-fill-column):
* .dir-locals.el (fill-column, emacs-lisp-docstring-fill-column):
Bump default to 72.
2024-02-02 11:28:54 +00:00
|
|
|
(fill-column . 72)
|
|
|
|
(emacs-lisp-docstring-fill-column . 72)
|
2022-09-09 21:39:24 +00:00
|
|
|
(vc-git-annotate-switches . "-w")
|
2022-09-06 20:06:29 +00:00
|
|
|
(bug-reference-url-format . "https://debbugs.gnu.org/%s")
|
2022-11-16 08:16:28 +00:00
|
|
|
(diff-add-log-use-relative-names . t)
|
2024-01-04 01:44:23 +00:00
|
|
|
(etags-regen-regexp-alist
|
|
|
|
.
|
|
|
|
((("c" "objc") .
|
|
|
|
("/[ \t]*DEFVAR_[A-Z_ \t(]+\"\\([^\"]+\\)\"/\\1/"
|
|
|
|
"/[ \t]*DEFVAR_[A-Z_ \t(]+\"[^\"]+\",[ \t]\\([A-Za-z0-9_]+\\)/\\1/"))))
|
|
|
|
(etags-regen-ignores . ("test/manual/etags/"))
|
2022-11-16 08:16:28 +00:00
|
|
|
(vc-prepare-patches-separately . nil)))
|
2019-04-09 04:38:31 +00:00
|
|
|
(c-mode . ((c-file-style . "GNU")
|
2022-11-12 15:30:38 +00:00
|
|
|
(c-noise-macro-names . ("INLINE" "NO_INLINE" "ATTRIBUTE_NO_SANITIZE_UNDEFINED"
|
2022-12-01 06:21:14 +00:00
|
|
|
"UNINIT" "CALLBACK" "ALIGN_STACK" "ATTRIBUTE_MALLOC"
|
2023-08-22 09:53:40 +00:00
|
|
|
"ATTRIBUTE_DEALLOC_FREE" "ANDROID_EXPORT" "TEST_STATIC"))
|
2019-04-09 04:38:31 +00:00
|
|
|
(electric-quote-comment . nil)
|
2019-08-04 14:43:25 +00:00
|
|
|
(electric-quote-string . nil)
|
2020-12-19 12:40:00 +00:00
|
|
|
(indent-tabs-mode . t)
|
2019-08-04 14:43:25 +00:00
|
|
|
(mode . bug-reference-prog)))
|
2019-04-09 04:38:31 +00:00
|
|
|
(objc-mode . ((c-file-style . "GNU")
|
|
|
|
(electric-quote-comment . nil)
|
2019-08-04 14:43:25 +00:00
|
|
|
(electric-quote-string . nil)
|
|
|
|
(mode . bug-reference-prog)))
|
2023-04-22 06:41:50 +00:00
|
|
|
(c-ts-mode . ((c-ts-mode-indent-style . gnu)
|
|
|
|
(indent-tabs-mode . t)
|
2023-04-21 17:54:15 +00:00
|
|
|
(mode . bug-reference-prog)))
|
2019-04-09 04:38:31 +00:00
|
|
|
(log-edit-mode . ((log-edit-font-lock-gnu-style . t)
|
2022-09-04 23:20:15 +00:00
|
|
|
(log-edit-setup-add-author . t)
|
2024-02-07 02:48:27 +00:00
|
|
|
(vc-git-log-edit-summary-target-len . 50)
|
|
|
|
(fill-column . 64)))
|
2019-04-09 04:38:31 +00:00
|
|
|
(change-log-mode . ((add-log-time-zone-rule . t)
|
|
|
|
(fill-column . 74)
|
2019-08-04 14:43:25 +00:00
|
|
|
(mode . bug-reference)))
|
2019-04-09 04:38:31 +00:00
|
|
|
(diff-mode . ((mode . whitespace)))
|
|
|
|
(emacs-lisp-mode . ((indent-tabs-mode . nil)
|
|
|
|
(electric-quote-comment . nil)
|
2019-08-04 14:43:25 +00:00
|
|
|
(electric-quote-string . nil)
|
|
|
|
(mode . bug-reference-prog)))
|
2022-09-09 01:05:00 +00:00
|
|
|
(lisp-data-mode . ((indent-tabs-mode . nil)))
|
2019-04-09 04:38:31 +00:00
|
|
|
(texinfo-mode . ((electric-quote-comment . nil)
|
2019-08-04 14:43:25 +00:00
|
|
|
(electric-quote-string . nil)
|
|
|
|
(mode . bug-reference-prog)))
|
|
|
|
(outline-mode . ((mode . bug-reference))))
|