This folder is for emacs initialization. Setting up emacs with same settings each time after a format is painful. I found an amazing idea on internet, here: http://www.jimmenard.com/emacs_tips.html#my-dot-emacs
The idea is simple.
- Have seperate
dot_emacs.el
file for each machine you are using and link to your~/.emacs.el
init file tomachine_name/dot_emacs.el
file after a clean installation of emacs, - By this way, first
before.el
file, thenemacs.el
file (which is in this folder not in ~/ folder.) and thenafter.el
file will be loaded.
###Linux###
First, link your ~/.emacs
file to here/machinename/dot_emacs.el
file:
$ ln -s ~/Desktop/elisp/machines/tantuni/dot_emacs.el ~/.emacs
###Windows###
Just copy here/machinename/dot_emacs.el
file to ~/.emacs.el:
here/machinename/dot_emacs.el
---> C:\Users\kkk\AppData\Roaming\\.emacs.el
Here the file ~/Desktop/elisp/machines/tantuni/dot_emacs.el
contains something like:
;; -*- emacs-lisp -*-
(defvar *my-emacs-lib-dir* "~/Desktop/elisp/")
(load-file (concat *my-emacs-lib-dir* "bootstrap-init.el"))
(bootstrap-init "machines" "tantuni")