瀏覽代碼

babel: some final compiler tweaks -- no more compiler warnings

Eric Schulte 15 年之前
父節點
當前提交
4482058c0c
共有 2 個文件被更改,包括 8 次插入8 次删除
  1. 1 2
      Makefile
  2. 7 6
      lisp/babel/ob-init.el

+ 1 - 2
Makefile

@@ -124,8 +124,7 @@ LISPF      = 	org.el				\
 		babel/ob-tangle.el		\
 		babel/ob-comint.el		\
 		babel/ob-keys.el		\
-		babel/langs/ob-emacs-lisp.el	\
-		babel/langs/ob-sh.el
+		babel/langs/ob-emacs-lisp.el
 
 LISPFILES0 = $(LISPF:%=lisp/%)
 LISPFILES  = $(LISPFILES0) lisp/org-install.el

+ 7 - 6
lisp/babel/ob-init.el

@@ -1,9 +1,4 @@
 ;;; ob-init.el --- working with code blocks in org-mode
-;; add the langs/ directory to the load path
-(add-to-list 'load-path (expand-file-name
-			 "langs"
-			 (file-name-directory (or (buffer-file-name)
-						  load-file-name))))
 (require 'ob)
 (require 'ob-table)
 (require 'ob-lob)
@@ -12,7 +7,13 @@
 (require 'ob-tangle)
 (require 'ob-comint)
 (require 'ob-keys)
-(require 'ob-sh)
+
+;; add the langs/ directory to the load path
+(add-to-list
+ 'load-path (expand-file-name
+	     "langs"
+	     (file-name-directory (or (buffer-file-name)
+				      load-file-name))))
 (require 'ob-emacs-lisp)
 
 (provide 'ob-init)