From c45c37fba136819d26abf1195b23adae195f5ae7 Mon Sep 17 00:00:00 2001 From: Jens Kubieziel Date: Thu, 10 Jun 2010 12:23:38 +0200 Subject: [PATCH] Changed all entity keys to use C-cC-c The current version of html-helper-mode uses reserved key bindings (C-c plus letter) for inserting HTML character entities. The proposed patch changes the prefix to C-cC-c. Users which are acustomed to use C-c won't have to change their current behaviour much and furthermore it is easy to type. diff --git a/html-helper-mode.el b/html-helper-mode.el index 57b6053..8c4157e 100644 --- a/html-helper-mode.el +++ b/html-helper-mode.el @@ -699,22 +699,22 @@ with a null string." 'html-helper-add-tag '( ;;entities - (entity "\C-c#" "&#" "Ascii Code" ("&#" (r "Ascii: ") ";")) - (entity "\C-c\"" """ "Quotation mark" (""")) - (entity "\C-c$" "®" "Registered" ("®")) - (entity "\C-c@" "©" "Copyright" ("©")) - (entity "\C-c-" "­" "Soft Hyphen" ("­")) - (entity "\C-c " " " "Nonbreaking Space" (" ")) - (entity "\C-c&" "&" "Ampersand" ("&")) - (entity "\C-c>" ">" "Greater Than" (">")) - (entity "\C-c<" "<" "Less Than" ("<")) + (entity "\C-c\C-c#" "&#" "Ascii Code" ("&#" (r "Ascii: ") ";")) + (entity "\C-c\C-c\"" """ "Quotation mark" (""")) + (entity "\C-c\C-c$" "®" "Registered" ("®")) + (entity "\C-c\C-c@" "©" "Copyright" ("©")) + (entity "\C-c\C-c-" "­" "Soft Hyphen" ("­")) + (entity "\C-c\C-c " " " "Nonbreaking Space" (" ")) + (entity "\C-c\C-c&" "&" "Ampersand" ("&")) + (entity "\C-c\C-c>" ">" "Greater Than" (">")) + (entity "\C-c\C-c<" "<" "Less Than" ("<")) ;; letters with accents common in italian - (entity "\C-ca" "à" "a` (&à)" ("à")) - (entity "\C-ce" "è" "e` (&è)" ("è")) - (entity "\C-cE" "é" "e' (&é)" ("é")) - (entity "\C-co" "ò" "o` (&ò)" ("ò")) - (entity "\C-ci" "ì" "i` (&ì)" ("ì")) - (entity "\C-cu" "ù" "u` (&ù)" ("ù")) + (entity "\C-c\C-ca" "à" "a` (&à)" ("à")) + (entity "\C-c\C-ce" "è" "e` (&è)" ("è")) + (entity "\C-c\C-cE" "é" "e' (&é)" ("é")) + (entity "\C-c\C-co" "ò" "o` (&ò)" ("ò")) + (entity "\C-c\C-ci" "ì" "i` (&ì)" ("ì")) + (entity "\C-c\C-cu" "ù" "u` (&ù)" ("ù")) ;; logical styles (logical "b" "
" "Blockquote" -- 1.7.0.4