From 904d43a7b6e650ae556494a2f716a4b5d6debc7d Mon Sep 17 00:00:00 2001 From: John Doty Date: Wed, 2 Apr 2014 07:20:10 -0700 Subject: [PATCH] nxml-mode tweaks: fill column, completion, &c. --- .emacs.d/core.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.emacs.d/core.el b/.emacs.d/core.el index 363a967..9cf1ea6 100644 --- a/.emacs.d/core.el +++ b/.emacs.d/core.el @@ -473,11 +473,14 @@ (defun my-nxml-hook () (turn-on-auto-fill) + (set-fill-column 120) + (local-set-key "\C-m" 'newline-and-indent) (local-set-key ">" 'nxml-indent-on-tag-close) ;; Why does nxml not play well with font lock mode, huh? - (local-set-key (read-kbd-macro "C-x f") 'nxml-fontify-buffer)) + (local-set-key (kbd "") 'nxml-complete) + (local-set-key (read-kbd-macro "C-x f") 'font-lock-fontify-buffer)) (add-hook 'nxml-mode-hook 'my-nxml-hook)