emacs: Fix auto-insert for c++

This commit is contained in:
Erwin Boskma 2024-11-13 17:23:11 +01:00
parent ad8fc76af1
commit fef597572c
Signed by: erwin
SSH key fingerprint: SHA256:OCinH/khuGY1LA9RG8YLM8GNH6C1DDXBdy3SNE+I5Hw

View file

@ -1425,7 +1425,7 @@ Enable and configure =auto-insert-mode= for Horus projects
(when (file-executable-p my/generate-cpp-file-executable)
(define-auto-insert
(rx ".[ch]pp" eos)
"\\.[ch]pp\\'"
(lambda nil (call-process my/generate-cpp-file-executable nil t nil buffer-file-name))))