aboutsummaryrefslogtreecommitdiffstats
path: root/src/init.el
diff options
context:
space:
mode:
Diffstat (limited to 'src/init.el')
-rw-r--r--src/init.el9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/init.el b/src/init.el
index c6095f1..ca412eb 100644
--- a/src/init.el
+++ b/src/init.el
@@ -4,7 +4,14 @@
(defconst emmet-mode:version "1.0.10")
-(require 'cl)
+(with-no-warnings
+ (require 'cl))
+
+;; for portability with < 24.3 EMACS
+(unless (fboundp 'cl-labels) (fset 'cl-labels 'labels))
+(unless (fboundp 'cl-flet) (fset 'cl-flet 'flet))
+;; < 22.1
+(unless (fboundp 'string-to-number) (fset 'string-to-number 'string-to-int))
(defmacro emmet-defparameter (symbol &optional initvalue docstring)
`(progn