LoginSignup
1
4

More than 5 years have passed since last update.

Emacsの設定ファイルをGitで管理する

Posted at

リポジトリ

Githubで .emacs.d の空リポジトリを作成する。

clone

既に ~/.emacs.d が あれば リネームしてからcloneする。

$ mv .emacs.d .emacs.d.org
$ git clone git@github.com:private-account/.emacs.d.git

cloneしたディレクトリに設定ファイルを配置する。

$ mv .emacs.d.org/* .emacs.d/.

.emacs_bash は ~/.emacs.d/ 配下に シンボリックリンク作っておく

$ rm .emacs_bash
$ ln -s .emacs.d/.emacs_bash .emacs_bash

.gitignore

Emacsの作業データ等の不要なファイルはGit管理から外す。

.recentf
server/
auto-save-list/
eshell/
*.???~

※環境による

push

$ git add .
$ git commit -m "hogehoge"
$ git push origin master
1
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
4