mirror of
https://github.com/correl/dotfiles.git
synced 2024-12-18 11:06:17 +00:00
[emacs] Load scripts from ~/.emacs.local.d
This commit is contained in:
parent
d5cb809938
commit
9d6e416deb
1 changed files with 9 additions and 8 deletions
|
@ -31,14 +31,15 @@
|
|||
;; Expand Region
|
||||
(global-set-key (kbd "C-=") 'er/expand-region)
|
||||
|
||||
;; Load custom init scripts from ~/.emacs.d/init.d
|
||||
;;
|
||||
(let ((init-dir "~/.emacs.d/init.d")
|
||||
(file-pattern "\\.elc?$"))
|
||||
(when (file-directory-p init-dir)
|
||||
(mapcar (lambda (lisp-file)
|
||||
(load-file lisp-file))
|
||||
(directory-files (expand-file-name init-dir) t file-pattern))))
|
||||
(defun load-elisp-directory (path)
|
||||
(let ((file-pattern "\\.elc?$"))
|
||||
(when (file-directory-p path)
|
||||
(mapcar (lambda (lisp-file)
|
||||
(load-file lisp-file))
|
||||
(directory-files (expand-file-name path) t file-pattern)))))
|
||||
|
||||
(load-elisp-directory "~/.emacs.d/init.d")
|
||||
(load-elisp-directory "~/.emacs.local.d")
|
||||
|
||||
(custom-set-variables
|
||||
;; custom-set-variables was added by Custom.
|
||||
|
|
Loading…
Reference in a new issue