File: dgnuspath.el

package info (click to toggle)
t-gnus 6.13.3.00-2
  • links: PTS
  • area: main
  • in suites: potato
  • size: 5,384 kB
  • ctags: 5,515
  • sloc: lisp: 65,996; makefile: 351; sh: 285
file content (15 lines) | stat: -rw-r--r-- 483 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
;; -*- Emacs-Lisp -*-
(let ((addpath
       ""
       )
      path paths)
  (while (string-match "[^\0-\37:]+" addpath)
    (setq path (file-name-as-directory
		(expand-file-name (match-string 0 addpath)))
	  addpath (substring addpath (match-end 0)))
    (if (string-match "apel/" path)
	(setq path (substring path 0 (match-beginning 0))))
    (if (file-directory-p path)
	(setq paths (nconc paths (list path)))))
  (or (null paths)
      (setq load-path (nconc paths load-path))))