X-Git-Url: https://git.distorted.org.uk/~mdw/profile/blobdiff_plain/36db1ea7bd3f0e8b199d1de66c4b86d0381a4c68..a3b8176f5cc90a02b5b3aaa669cc7c7e6758a9d7:/el/dot-emacs.el diff --git a/el/dot-emacs.el b/el/dot-emacs.el index f8af576..bd29385 100644 --- a/el/dot-emacs.el +++ b/el/dot-emacs.el @@ -52,6 +52,11 @@ This may be at the expense of cool features.") (debug 0)) `',(make-regexp list)) +(defun mdw-wrong () + "This is not the key sequence you're looking for." + (interactive) + (error "wrong button")) + ;; Some error trapping. ;; ;; If individual bits of this file go tits-up, we don't particularly want @@ -2051,6 +2056,7 @@ doesn't match any of the regular expressions in '(0 mdw-punct-face))))) ;; Hack key bindings. + (local-set-key [?{] 'mdw-self-insert-and-indent) (local-set-key [?}] 'mdw-self-insert-and-indent) ;; Final hacking. @@ -2135,16 +2141,29 @@ doesn't match any of the regular expressions in ;; Miscellaneous fiddling. (modify-syntax-entry ?$ "\\") (modify-syntax-entry ?$ "\\" font-lock-syntax-table) + (modify-syntax-entry ?: "." font-lock-syntax-table) (mdw-standard-fill-prefix "\\([ \t]*#+[ \t]*\\)") ;; Now define fontification things. (make-local-variable 'font-lock-keywords) (let ((perl-keywords - (mdw-regexps "and" "break" "cmp" "continue" "do" "else" "elsif" "eq" - "for" "foreach" "ge" "given" "gt" "goto" "if" - "last" "le" "lt" "local" "my" "ne" "next" "or" - "our" "package" "redo" "require" "return" "sub" - "undef" "unless" "until" "use" "when" "while"))) + (mdw-regexps "and" + "break" + "cmp" "continue" + "default" "do" + "else" "elsif" "eq" + "for" "foreach" + "ge" "given" "gt" "goto" + "if" + "last" "le" "local" "lt" + "my" + "ne" "next" + "or" "our" + "package" + "redo" "require" "return" + "sub" + "undef" "unless" "until" "use" + "when" "while"))) (setq font-lock-keywords (list