Skip to content

Instantly share code, notes, and snippets.

@ping13
Created December 9, 2012 20:26
Show Gist options
  • Save ping13/4246839 to your computer and use it in GitHub Desktop.
Save ping13/4246839 to your computer and use it in GitHub Desktop.
My $HOME/.emacs file
; I use Emacs on three different platforms and I want to use the same init file.
; So, this file lives as $HOME/.emacs and is just a pointer to an init file in my Dropbox.
; The machine specific automatic customizations are saved here nonetheless.
; The real dot-emacs file is in ~/Dropbox/myemacs/init.el
(setq my-emacs-root (expand-file-name "~/Dropbox/myemacs/"))
(add-to-list 'load-path my-emacs-root)
(load-file (concat my-emacs-root "init.el"))
; automatic customization
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment