From f04d681642a66a3ef4968f29a3c632fc1d9eff11 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Mon, 18 Jan 2021 23:31:11 -0600 Subject: Only auto-fill comments --- config.org | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'config.org') diff --git a/config.org b/config.org index 8c45798..afeac72 100644 --- a/config.org +++ b/config.org @@ -5,7 +5,7 @@ #+EXPORT_FILE_NAME: README.md #+OPTIONS: toc:nil #+BANKRUPTCY_COUNT: 3.2 -#+Time-stamp: <2021-01-14 20:38:43 acdw> +#+Time-stamp: <2021-01-18 23:29:22 acdw> * Basics @@ -1252,6 +1252,18 @@ (global-aggressive-indent-mode +1) #+end_src +** Auto-fill comments only + +from [[https://www.emacswiki.org/emacs/AutoFillMode][EmacsWiki]]. + + #+begin_src emacs-lisp + (defun comment-auto-fill () + (setq-local comment-auto-fill-only-comments t) + (auto-fill-mode 1)) + + (add-hook 'prog-mode-hook #'comment-auto-fill) + #+end_src + ** Completion #+begin_src emacs-lisp -- cgit 1.4.1-21-gabe81