Skip to content

Commit d03ace4

Browse files
committed
Loop .emacs
Adding a loop dot for .emac files for emacs, this is similar in nature to the .vimrc.
1 parent 689afdc commit d03ace4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.emacs

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
(setq dirs (split-string (getenv "DOTDOTDOT_ORDER")))
2+
(while dirs
3+
(setq currentemacfile (concat (car dirs) "/.emacs"))
4+
(unless (string-match "loop-dots" currentemacfile)
5+
(if (file-exists-p currentemacfile)
6+
(load currentemacfile)
7+
;;(message "Loading .emac file for %s\n" currentemacfile)
8+
))
9+
(setq dirs (cdr dirs)))
10+

0 commit comments

Comments
 (0)