chiark
/
gitweb
/
~mdw
/
profile
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
bfdee8c
)
dot/emacs: More sophisticated setup of `load-path'.
author
Mark Wooding
<mdw@distorted.org.uk>
Fri, 25 Mar 2016 13:49:06 +0000
(13:49 +0000)
committer
Mark Wooding
<mdw@distorted.org.uk>
Fri, 25 Mar 2016 13:49:06 +0000
(13:49 +0000)
dot/emacs
patch
|
blob
|
blame
|
history
diff --git
a/dot/emacs
b/dot/emacs
index c0257de512bc0790df8279260b69801241e18b66..40280dec8822801e973011add97d168449521e32 100644
(file)
--- a/
dot/emacs
+++ b/
dot/emacs
@@
-21,7
+21,18
@@
;;; along with this program; if not, write to the Free Software
;;; Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
;;; along with this program; if not, write to the Free Software
;;; Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
-(setq load-path (nconc load-path (list "~/lib/emacs")))
+(let ((path "~/lib/emacs/")
+ (pkgs (list "bbdb/" "multiple-cursors/" "rust-mode/"))
+ pkg)
+ (setq load-path (nconc load-path (list path)))
+ (while (setq pkg (pop pkgs))
+ (let ((dir (concat path pkg)))
+ (if (file-exists-p dir)
+ (setq load-path (nconc load-path (list dir))))))
+ (let ((boot (concat path "mdw-pkgs.el")))
+ (if (file-exists-p boot)
+ (load boot))))
+
(require 'dot-emacs)
(require 'cl)
(require 'dot-emacs)
(require 'cl)
@@
-88,14
+99,12
@@
;; Multiple cursors.
;; Multiple cursors.
-(setq load-path (nconc load-path (list "~/lib/emacs/multiple-cursors/")))
(global-set-key [?\C-c ?r] 'mdw-multiple-cursors-keymap)
(autoload 'mdw-multiple-cursors-keymap "mdw-multiple-cursors.el"
"A keymap for Magnar Sveen's awesome multiple-cursors." nil 'keymap)
;; Rust mode.
(global-set-key [?\C-c ?r] 'mdw-multiple-cursors-keymap)
(autoload 'mdw-multiple-cursors-keymap "mdw-multiple-cursors.el"
"A keymap for Magnar Sveen's awesome multiple-cursors." nil 'keymap)
;; Rust mode.
-(setq load-path (nconc load-path (list "~/lib/emacs/rust-mode/")))
(autoload 'rust-mode "rust-mode" nil t)
(add-to-list 'auto-mode-alist '("\\.rs\\'" . rust-mode))
(autoload 'rust-mode "rust-mode" nil t)
(add-to-list 'auto-mode-alist '("\\.rs\\'" . rust-mode))