Permalink
Browse files

Remove zencoding from html-mode, prefer tagedit

  • Loading branch information...
1 parent 3533dcb commit c04372a67bab4e5abb1dd2830cd14fc849946068 @magnars committed Mar 15, 2013
Showing with 0 additions and 37 deletions.
  1. +0 −37 setup-html-mode.el
View
@@ -48,41 +48,4 @@
(define-key html-mode-map (kbd "s-k") 'tagedit-kill-attribute)
(define-key html-mode-map (kbd "s-<return>") 'tagedit-toggle-multiline-tag)))
-(autoload 'zencoding-mode "zencoding-mode")
-(autoload 'zencoding-expand-line "zencoding-mode")
-
-(defun zencoding-expand-or-indent-for-tab ()
- (interactive)
- (unless (and (memq last-command yas/expand-only-for-last-commands)
- (zencoding-expand-yas))
- (indent-for-tab-command)))
-
-(defun --setup-zencoding-mode ()
- (zencoding-mode)
- (add-to-list 'zencoding-self-closing-tags "hr")
- (set (make-local-variable 'yas/fallback-behavior)
- '(apply zencoding-expand-or-indent-for-tab)))
-
-(add-hook 'sgml-mode-hook '--setup-zencoding-mode)
-
-(eval-after-load 'zencoding-mode
- '(progn
- (define-key zencoding-mode-keymap (kbd "C-j") nil)
- (define-key zencoding-mode-keymap (kbd "<C-return>") nil)
- (define-key zencoding-mode-keymap (kbd "C-c C-j") 'zencoding-expand-line)
-
- (defun zencoding-transform-yas (ast)
- (let ((zencoding-leaf-function (lambda () "$0")))
- (zencoding-transform ast)))
-
- (defun zencoding-indent (text)
- "Indent the text"
- (if text
- (replace-regexp-in-string "\n" "\n " (concat "\n" text))
- nil))
-
- (diminish 'zencoding-mode)
-
- ))
-
(provide 'setup-html-mode)

0 comments on commit c04372a

Please sign in to comment.