about summary refs log tree commit diff
path: root/init-functions.el
diff options
context:
space:
mode:
authorVincent Ambo <vincent@spotify.com>2013-08-06T22·49+0200
committerVincent Ambo <vincent@spotify.com>2013-08-06T22·49+0200
commit503600091e63ebe63c8a84ec6b8a6120ff89dc23 (patch)
tree861408eb7b1854d956d1e73f41030205c636ba41 /init-functions.el
parent43a99dea3aa6651b1b060ace714bddc1e10925ea (diff)
* Providing all init files, loading them with require
* Moved load-file-if-exists to init-functions
* Added init-misc.el for random things that don't fit anywhere else
* Never any tabs, ever. Go away!

Bindings:
* quit Emacs -> C-x r q ("real quit")
* delete-frame -> C-x C-c
* make-frame -> C-x C-n
Diffstat (limited to 'init-functions.el')
-rw-r--r--init-functions.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/init-functions.el b/init-functions.el
index 4814cee5d322..9cae3c677dd8 100644
--- a/init-functions.el
+++ b/init-functions.el
@@ -43,6 +43,10 @@
     (unless (file-exists-p fullpath)
       (async-shell-command (concat "git clone " url " " fullpath)))))
 
+(defun load-file-if-exists (filename)
+  (if (file-exists-p filename)
+      (load filename)))
+
 ;; These come from magnars, he's got some awesome things.
 
 (defun goto-line-with-feedback ()
@@ -127,3 +131,5 @@ Including indent-buffer, which should not be called automatically on save."
 (defun speak (m &optional voice)
   (shell-command (if 'voice (concat "say -v " voice " \"" m "\"")
                    (concat "say " m))))
+
+(provide 'init-functions)