mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-25 10:47:00 +00:00
(auto-insert-alist): Redo finding C and C++ headers.
Add a DESCRIPTION for the makefile item.
This commit is contained in:
parent
b04dcf45eb
commit
f6ec153215
@ -103,13 +103,14 @@ If this contains a %s, that will be replaced by the matching rule."
|
||||
(("\\.\\([Cc]\\|cc\\|cpp\\)\\'" . "C / C++ program")
|
||||
nil
|
||||
"#include \""
|
||||
;; nop without latest cc-mode
|
||||
(and (fboundp 'c-companion-file)
|
||||
;(file-readable-p (c-companion-file 'name))
|
||||
(file-name-nondirectory (c-companion-file 'name))) & ?\"
|
||||
| -10)
|
||||
(let ((stem (file-name-sans-extension buffer-file-name)))
|
||||
(cond ((file-exists-p (concat stem ".h"))
|
||||
(file-name-nondirectory (concat stem ".h")))
|
||||
((file-exists-p (concat stem ".hh"))
|
||||
(file-name-nondirectory (concat stem ".hh")))))
|
||||
& ?\" | -10)
|
||||
|
||||
("[Mm]akefile\\'" . "makefile.inc")
|
||||
(("[Mm]akefile\\'" . "Makefile") . "makefile.inc")
|
||||
|
||||
(html-mode . (lambda () (sgml-tag "html")))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user