Skip to content

Instantly share code, notes, and snippets.

@axtutuu
Created January 20, 2017 09:54
Show Gist options
  • Save axtutuu/6f9803a0901fd9420f0722c82f4db969 to your computer and use it in GitHub Desktop.
Save axtutuu/6f9803a0901fd9420f0722c82f4db969 to your computer and use it in GitHub Desktop.
;;; init.el --- Spacemacs Initialization File
;;
;; Copyright (c) 2012-2016 Sylvain Benner & Contributors
;;
;; Author: Sylvain Benner <[email protected]>
;; URL: https://github.com/syl20bnr/spacemacs
;;
;; This file is not part of GNU Emacs.
;;
;;; License: GPLv3
;; Without this comment emacs25 adds (package-initialize) here
;; (package-initialize)
;; Increase gc-cons-threshold, depending on your system you may set it back to a
;; lower value in your dotfile (function `dotspacemacs/user-config')
(setq gc-cons-threshold 100000000)
(defconst spacemacs-version "0.200.7" "Spacemacs version.")
(defconst spacemacs-emacs-min-version "24.4" "Minimal version of Emacs.")
(if (not (version<= spacemacs-emacs-min-version emacs-version))
(message (concat "Your version of Emacs (%s) is too old. "
"Spacemacs requires Emacs version %s or above.")
emacs-version spacemacs-emacs-min-version)
(load-file (concat (file-name-directory load-file-name)
"core/core-load-paths.el"))
(require 'core-spacemacs)
(spacemacs/init)
(spacemacs/maybe-install-dotfile)
(configuration-layer/sync)
(spacemacs-buffer/display-info-box)
(spacemacs/setup-startup-hook)
(require 'server)
(unless (server-running-p) (server-start)))
;; スタートアップメッセージを表示させない
(setq inhibit-startup-message t)
;; バックアップファイルを作成させない
(setq make-backup-files nil)
;; 終了時にオートセーブファイルを削除する
(setq delete-auto-save-files t)
;; タブにスペースを使用する
(setq-default tab-width 2 indent-tabs-mode nil)
;; neadtree
(add-to-list 'load-path "~/.emacs.d/custom/emacs-neotree")
(require 'neotree)
(global-set-key [f1] 'neotree-toggle)
;; window 移動
(global-set-key "\C-j" "\C-w\j")
(global-set-key "\C-h" "\C-w\h")
(global-set-key "\C-k" "\C-w\k")
(global-set-key "\C-l" "\C-w\l")
(global-set-key "\C-o" "\esc")
(define-key global-map [?¥] [?\\]) ;; ¥の代わりにバックスラッシュを入力する
;; scss
(add-to-list 'load-path "~/.emacs.d/custom/scss-mode")
(autoload 'scss-mode "scss-model")
(add-to-list 'auto-mode-alist '("\\.scss\\'" . scss-mode))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment