Browse Source

Make ob-sclang.el work on emacs 24.3

* contrib/lisp/ob-sclang.el: Use eval-after-load instead of
  with-eval-after-load.
Kaushal Modi 1 year ago
parent
commit
7a29c82e11
1 changed files with 3 additions and 3 deletions
  1. 3 3
      contrib/lisp/ob-sclang.el

+ 3 - 3
contrib/lisp/ob-sclang.el

@@ -81,9 +81,9 @@
 	;; TODO: temporary can't find way to let sclang output to stdout for org-babel.
         (:output . "none")))
 
-;;;###autoload
-(with-eval-after-load "org"
-  (add-to-list 'org-src-lang-modes '("sclang" . sclang)))
+(eval-after-load "org"
+  '(progn
+     (add-to-list 'org-src-lang-modes '("sclang" . sclang))))
 
 ;;; ----------------------------------------------------------------------------