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:
William Carroll 2019-12-22 21:04:11 +00:00
parent afcd663c7c
commit 56692b3833

View file

@ -87,7 +87,7 @@ Usage: (add-hook-before-save 'reason-mode-hook #'refmt-before-save)"
(defmacro macros/support-file-extension (ext mode) (defmacro macros/support-file-extension (ext mode)
"Register MODE to automatically load with files ending with EXT extension. "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))) (let ((extension (string/format "\\.%s\\'" ext)))
`(add-to-list 'auto-mode-alist '(,extension . ,mode)))) `(add-to-list 'auto-mode-alist '(,extension . ,mode))))