Load vc-svn if ~/.el/svn dir exist.
authorOleksander Gavenko <gavenko_a@3g.ua>
Thu, 17 Apr 2008 23:59:54 +0300
changeset 11 1fea5e1edb38
parent 10 1c6aae52de4b
child 12 fb11a9de5ab3
Load vc-svn if ~/.el/svn dir exist.
.emacs
--- a/.emacs	Thu Apr 17 23:59:54 2008 +0300
+++ b/.emacs	Thu Apr 17 23:59:54 2008 +0300
@@ -26,8 +26,8 @@
 
 ;; ======================================================================
 ;; Load path.
-(setq my-el-path (expand-file-name "~/.el"))
-(add-to-list 'load-path my-el-path)
+(setq my-el-dir (expand-file-name "~/.el"))
+(add-to-list 'load-path my-el-dir)
 
 ;; ======================================================================
 ;; GNU Serv.
@@ -611,7 +611,16 @@
 ;; (setq-default vc-svn-register-switches "--encoding cp1251")
 (setq-default vc-svn-register-switches nil)
 
-(if (file-exists-p (concat my-el-path "/mercurial.el"))
+(setq my-svn-dir (concat my-el-dir "/svn"))
+(if (file-exists-p my-svn-dir)
+    (progn
+      (add-to-list 'load-path my-svn-dir)
+      (require 'vc-svn)
+      )
+  )
+
+
+(if (file-exists-p (concat my-el-dir "/mercurial.el"))
     (require 'mercurial)
   )