(defcustom auto-insert-alist
- '((("\\.\\([Hh]\\|hh\\|hpp\\|hxx\\|h\\+\\+\\)\\'" . "C / C++ header")
+ `((("\\.\\([Hh]\\|hh\\|hpp\\|hxx\\|h\\+\\+\\)\\'" . "C / C++ header")
(replace-regexp-in-string
"[^A-Z0-9]" "_"
(string-replace
(("[Mm]akefile\\'" . "Makefile") . "makefile.inc")
- (html-mode . (lambda () (sgml-tag "html")))
+ (html-mode . ,(lambda () (sgml-tag "html")))
(plain-tex-mode . "tex-insert.tex")
(bibtex-mode . "tex-insert.tex")
"\n\\end{document}")
(("/bin/.*[^/]\\'" . "Shell-Script mode magic number") .
- (lambda ()
- (if (eq major-mode (default-value 'major-mode))
- (sh-mode))))
+ ,(lambda ()
+ (if (eq major-mode (default-value 'major-mode))
+ (sh-mode))))
(ada-mode . ada-header)
'(setq v1 (let (modes)
(mapatoms (lambda (mode)
(let ((name (symbol-name mode)))
- (when (string-match "-mode$" name)
+ (when (string-match "-mode\\'" name)
(push name modes)))))
(sort modes 'string<)))
(completing-read "Local variables for mode: " v1 nil t)
"\n"))
((let ((minibuffer-help-form v2))
(completing-read "Keyword, C-h: " v1 nil t))
- str ", ") & -2 "
+ str ", ")
+ & -2 "
\;; This program is free software; you can redistribute it and/or modify
\;; it under the terms of the GNU General Public License as published by