Update docs for macros/support-file-extension
I provided the wrong usage example in my documentation. This goes to show how critical generated documentation is to the goal of documentation reliability, which itself bolsters the goal of documentation in general.
This commit is contained in:
parent
afcd663c7c
commit
56692b3833
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ Usage: (add-hook-before-save 'reason-mode-hook #'refmt-before-save)"
|
|||
|
||||
(defmacro macros/support-file-extension (ext mode)
|
||||
"Register MODE to automatically load with files ending with EXT extension.
|
||||
Usage: (macros/support-file-extension \".pb\" protobuf-mode)"
|
||||
Usage: (macros/support-file-extension \"pb\" protobuf-mode)"
|
||||
(let ((extension (string/format "\\.%s\\'" ext)))
|
||||
`(add-to-list 'auto-mode-alist '(,extension . ,mode))))
|
||||
|
||||
|
|
Loading…
Reference in a new issue