Split up configuration in five files. I wrote a nice commit message explaining this, but I wrote it in vi and it died on me.
This commit is contained in:
parent
90f95a6a3d
commit
0d133eceb3
7 changed files with 340 additions and 220 deletions
|
|
@ -1,23 +0,0 @@
|
|||
;; A few handy functions I use in init.el (or not, but they're nice to
|
||||
;; have)
|
||||
|
||||
;; Ensure that the themes folder exists
|
||||
|
||||
(defun custom-download-theme (url filename)
|
||||
"Downloads a theme through HTTP and places it in ~/.emacs.d/themes"
|
||||
|
||||
;; Ensure the directory exists
|
||||
(unless (file-exists-p "~/.emacs.d/themes")
|
||||
(make-directory "~/.emacs.d/themes"))
|
||||
|
||||
;; Adds the themes folder to the theme load path (if not already
|
||||
;; there)
|
||||
(unless (member "~/.emacs.d/themes" custom-theme-load-path)
|
||||
(add-to-list 'custom-theme-load-path "~/.emacs.d/themes"))
|
||||
|
||||
;; Download file if it doesn't exist.
|
||||
|
||||
(let ((file
|
||||
(concat "~/.emacs.d/themes/" filename)))
|
||||
(unless (file-exists-p file)
|
||||
(url-copy-file url file))))
|
||||
Loading…
Add table
Add a link
Reference in a new issue