Permalink
Browse files

Update tagedit, use experimental features

  • Loading branch information...
1 parent 0af0b40 commit cc78cb206e802d642dce7db80f24a1eb26ad53b8 @magnars committed Mar 4, 2013
Showing with 23 additions and 4 deletions.
  1. +3 −0 .mc-lists.el
  2. +4 −1 setup-html-mode.el
  3. +14 −1 setup-paredit.el
  4. +1 −1 site-lisp/s
  5. +1 −1 site-lisp/tagedit
View
@@ -61,10 +61,12 @@
orgtbl-self-insert-command
paredit-backslash
paredit-backward
+ paredit-backward-up
paredit-close-square
paredit-doublequote
paredit-forward
paredit-forward-delete
+ paredit-forward-down
paredit-forward-kill-word
paredit-forward-slurp-sexp
paredit-forward-up
@@ -89,6 +91,7 @@
skeleton-pair-insert-maybe
slime-space
sp-self-insert-command
+ tagedit-insert-equal
tagedit-kill-attribute
touch-buffer-file
transpose-sexps
View
@@ -39,7 +39,10 @@
(define-key html-mode-map (kbd "C-)") 'tagedit-forward-slurp-tag)
(define-key html-mode-map (kbd "s-<left>") 'tagedit-forward-barf-tag)
(define-key html-mode-map (kbd "C-}") 'tagedit-forward-barf-tag)
- (define-key html-mode-map (kbd "s-r") 'tagedit-raise-tag)
+ (define-key html-mode-map (kbd "M-r") 'tagedit-raise-tag)
+
+ (tagedit-add-experimental-features)
+ (add-hook 'html-mode-hook (lambda () (tagedit-mode 1)))
;; no paredit equivalents
(define-key html-mode-map (kbd "s-k") 'tagedit-kill-attribute)
View
@@ -39,7 +39,6 @@
'(("M-s" "s-s" paredit-splice-sexp)
("M-<up>" "s-<up>" paredit-splice-sexp-killing-backward)
("M-<down>" "s-<down>" paredit-splice-sexp-killing-forward)
- ("M-r" "s-r" paredit-raise-sexp)
("C-<right>" "s-<right>" paredit-forward-slurp-sexp)
("C-<left>" "s-<left>" paredit-forward-barf-sexp)
("C-M-<left>" "s-S-<left>" paredit-backward-slurp-sexp)
@@ -60,4 +59,18 @@
(put 'paredit-backward-delete 'delete-selection 'supersede)
(put 'paredit-newline 'delete-selection t)
+;; functions in smartparens that do not have an equivalent in paredit - take a look at them
+(when nil
+ '(sp-beginning-of-sexp
+ sp-end-of-sexp
+ sp-next-sexp
+ sp-previous-sexp
+ sp-kill-sexp
+ sp-unwrap-sexp
+ sp-backward-unwrap-sexp
+ sp-select-next-thing-exchange
+ sp-select-next-thing
+ sp-forward-symbol
+ sp-backward-symbol))
+
(provide 'setup-paredit)
Submodule s updated 4 files
+39 −7 README.md
+0 −0 dev/.nosearch
+28 −3 dev/examples.el
+43 −23 s.el

0 comments on commit cc78cb2

Please sign in to comment.