aboutsummaryrefslogtreecommitdiffstats
path: root/src/init.el
diff options
context:
space:
mode:
authorsmihica <smihica@gmail.com>2013-05-18 17:56:33 +0900
committersmihica <smihica@gmail.com>2013-05-18 17:56:33 +0900
commit4713a355010ff4a51e53470c2e8c101bbdaf177b (patch)
tree0f60d5a84577cd32e71e5abdd5faee78ef50d3e0 /src/init.el
parent64a3813fd87bfe552a28a509d44ee77b3b485a09 (diff)
downloademmet-mode-4713a355010ff4a51e53470c2e8c101bbdaf177b.tar.lz
emmet-mode-4713a355010ff4a51e53470c2e8c101bbdaf177b.tar.xz
emmet-mode-4713a355010ff4a51e53470c2e8c101bbdaf177b.zip
Some trivial improvements.
Diffstat (limited to 'src/init.el')
-rw-r--r--src/init.el10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/init.el b/src/init.el
index c9038fd..b2fd434 100644
--- a/src/init.el
+++ b/src/init.el
@@ -17,6 +17,16 @@
(defun zencoding-join-string (lis joiner)
(mapconcat 'identity lis joiner))
+(defun zencoding-get-keys-of-hash (hash)
+ (let ((ks nil))
+ (maphash #'(lambda (k v) (setq ks (cons k ks))) hash)
+ ks))
+
+(defun zencoding-get-vals-of-hash (hash)
+ (let ((vs nil))
+ (maphash #'(lambda (k v) (setq vs (cons v vs))) hash)
+ vs))
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Generic parsing macros and utilities