diff options
| author | Szymon Szukalski <szymon@szymonszukalski.com> | 2026-04-08 10:53:59 +1000 |
|---|---|---|
| committer | Szymon Szukalski <szymon@szymonszukalski.com> | 2026-04-08 10:53:59 +1000 |
| commit | e4c9cb20a4419d19f8bbeca35a66fc8388cf430a (patch) | |
| tree | 122cf15336ea85afdd277b8f452aa3cf27dd6959 /config.org | |
| parent | 46ea9f2375a446b1df2ff70cb1340c82ade4c341 (diff) | |
fix: mark people abbrevs correctly
Diffstat (limited to 'config.org')
| -rw-r--r-- | config.org | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -695,15 +695,15 @@ short and phrase-like so summaries and completion annotations stay readable. (setq-local local-abbrev-table (copy-abbrev-table local-abbrev-table)) (ss/people--clear-installed-abbrevs) (dolist (entry (ss/people-entries)) - (let ((name (ss/people--entry-name entry)) - (abbrev (ss/people--entry-abbrev entry))) - (abbrev-put - (define-abbrev local-abbrev-table - (if (or (null abbrev) (string-empty-p abbrev)) - (ss/people-default-abbrev name) - abbrev) - name) - :ss/people t))))) + (let* ((name (ss/people--entry-name entry)) + (abbrev (ss/people--entry-abbrev entry)) + (abbrev-name + (if (or (null abbrev) (string-empty-p abbrev)) + (ss/people-default-abbrev name) + abbrev))) + (define-abbrev local-abbrev-table abbrev-name name) + (when-let ((abbrev-symbol (abbrev-symbol abbrev-name local-abbrev-table))) + (abbrev-put abbrev-symbol :ss/people t)))))) (defun ss/people-refresh-buffers () "Refresh people abbrevs in every prose buffer." |
