commit 3c1c512ec544e626b81bee068f0330a10523a74c
parent 9e9d915b79573c7fae7f8ec60ad2cf7105e25b32
Author: Hugo Soucy <hugo.soucy@toumoro.com>
Date: Tue, 17 Nov 2020 12:12:18 -0500
Add a function to select the value of an x/html attribute
Diffstat:
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/defuns/select-html-value.el b/defuns/select-html-value.el
@@ -1,8 +1,9 @@
(defun ejemba/select-html-value ()
- ;;; Select the next value in html/xml.
+ "Select the next value in html/xml."
(interactive)
(search-forward "\"")
(set-mark-command nil)
(search-forward "\"")
(backward-char 1)
)
+;;; select-html-value ends here
diff --git a/partials/key-bindings.el b/partials/key-bindings.el
@@ -69,3 +69,6 @@
)
;; Fence Edit
(global-set-key (kbd "C-=") 'fence-edit-code-at-point)
+
+;; Select HTML attribute value
+(global-set-key (kbd "C-c C-a v") 'ejemba/select-html-value)