Define nice key binding for completion in nxml.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Wed, 07 Nov 2012 23:03:44 +0200
changeset 987 8b4880af8c8a
parent 986 6e74bf91f1df
child 988 e794b2dafe90
Define nice key binding for completion in nxml.
.emacs-my
--- a/.emacs-my	Mon Nov 05 10:22:39 2012 +0200
+++ b/.emacs-my	Wed Nov 07 23:03:44 2012 +0200
@@ -2418,8 +2418,10 @@
 (setq nxml-attribute-indent 4)
 
 (eval-after-load 'rng-loc
-  '(add-to-list 'rng-schema-locating-files "~/.emacs.d/rnc/schemas.xml")
-  )
+  '(progn
+     (add-to-list 'rng-schema-locating-files "~/.emacs.d/rnc/schemas.xml")
+     (define-key nxml-mode-map (kbd "C-RET") 'nxml-completion-at-point-function)
+     ))
 
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 (message "psgml")