diff options
Diffstat (limited to 'config.org')
-rw-r--r-- | config.org | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/config.org b/config.org index 8c45798..afeac72 100644 --- a/config.org +++ b/config.org | |||
@@ -5,7 +5,7 @@ | |||
5 | #+EXPORT_FILE_NAME: README.md | 5 | #+EXPORT_FILE_NAME: README.md |
6 | #+OPTIONS: toc:nil | 6 | #+OPTIONS: toc:nil |
7 | #+BANKRUPTCY_COUNT: 3.2 | 7 | #+BANKRUPTCY_COUNT: 3.2 |
8 | #+Time-stamp: <2021-01-14 20:38:43 acdw> | 8 | #+Time-stamp: <2021-01-18 23:29:22 acdw> |
9 | 9 | ||
10 | * Basics | 10 | * Basics |
11 | 11 | ||
@@ -1252,6 +1252,18 @@ | |||
1252 | (global-aggressive-indent-mode +1) | 1252 | (global-aggressive-indent-mode +1) |
1253 | #+end_src | 1253 | #+end_src |
1254 | 1254 | ||
1255 | ** Auto-fill comments only | ||
1256 | |||
1257 | from [[https://www.emacswiki.org/emacs/AutoFillMode][EmacsWiki]]. | ||
1258 | |||
1259 | #+begin_src emacs-lisp | ||
1260 | (defun comment-auto-fill () | ||
1261 | (setq-local comment-auto-fill-only-comments t) | ||
1262 | (auto-fill-mode 1)) | ||
1263 | |||
1264 | (add-hook 'prog-mode-hook #'comment-auto-fill) | ||
1265 | #+end_src | ||
1266 | |||
1255 | ** Completion | 1267 | ** Completion |
1256 | 1268 | ||
1257 | #+begin_src emacs-lisp | 1269 | #+begin_src emacs-lisp |