* moved switch-window and iy-go-to-char to package.el installs

* changed 'custom-clone-git and 'custom-download-script to place things in special folders
* added those folders and some other things to .gitignore
* changed binding for iy-go-to-char to C-c f
This commit is contained in:
Vincent Ambo 2013-08-06 23:46:26 +02:00
parent 52d2182fa2
commit 43a99dea3a
4 changed files with 16 additions and 21 deletions

View file

@ -20,7 +20,7 @@
(unless (file-exists-p file)
(url-copy-file url file))))
(defun custom-download-script (url filename)
(defun custom-download-script (url filename)
"Downloads an Elisp script, places it in ~/.emacs/other and then loads it"
;; Ensure the directory exists
@ -29,7 +29,7 @@
;; Download file if it doesn't exist.
(let ((file
(concat "~/.emacs.d/" filename)))
(concat "~/.emacs.d/other/" filename)))
(unless (file-exists-p file)
(url-copy-file url file))
@ -39,10 +39,9 @@
;; if there isn't already a folder with that name
(defun custom-clone-git (url foldername)
"Clones a git repository to .emacs.d/foldername"
(let ((fullpath (concat "~/.emacs.d/" foldername)))
(let ((fullpath (concat "~/.emacs.d/clones/" foldername)))
(unless (file-exists-p fullpath)
(async-shell-command (concat "git clone " url " " fullpath))))
)
(async-shell-command (concat "git clone " url " " fullpath)))))
;; These come from magnars, he's got some awesome things.