MinoruSekine / dotfiles

Environments common dot files.
GNU General Public License v3.0
0 stars 0 forks source link
dotfiles emacs-configuration

dotfiles

This repository includes:

Summary of contents in this repository

For Emacs

.emacs.d/my-init.el

Configurations

Configurations for modes

supplemental/windows/emacsdaemon.bat

Supplemental scripts for login scripts

.profile/emacs_daemon.sh

.profile/keychain_init.sh

Use settings for Emacs

Features

How to use

Check out with anyway which you like

In this chapter, check out to ~/dotfiles for example.

$ mkdir -p ~/dotfiles
$ cd ~/dotfiles
$ git clone URL_of_this_repository

How to use settings for Emacs

Add the next line into ~/.emacs.d/init.el.

(load-file "~/dotfiles/.emacs.d/my-init.el")

If you don't need any additonal settings except in ~/dotfiles/.emacs.d/my-init.el and your environment supports symbolic link, you can link to it instead of your own ~/.emacs.d/init.el.

$ ln -s ~/dotfiles/.emacs.d/my-init.el ~/.emacs.d/init.el

Hook

my-after-ede-setup-hook

This is called after called (global-ede-mode t). So environment dependent EDE setup like as ede-cpp-root-project can be hooked to here.

(load-file "~/dotfiles/.emacs.d/my-init.el")

;; Settings only for this environment.
(add-hook 'my-after-ede-setup-hook
      (lambda ()
        (ede-cpp-root-project "libfixedpointnumber"
                  :file "~/work/libfixedpointnumber/Makefile"
                  :include-path '("/include")
                  :system-include-path '("/usr/local/include/gtest/"
                             "/usr/local/include/gmock/")
                  :compile-command "time nice make -k -j check run-test")
        ))

Supplemental scripts

For .profile

How to use each script

. "$HOME/dotfiles/.profile/keychain_init.sh"

.profile/emacs_daemon.sh

.profile/keychain_init.sh