This commit is contained in:
2014-07-15 23:06:07 +04:00
parent 70a77e00f7
commit f0a44728c6

37
init.el
View File

@@ -1,4 +1,7 @@
(set-face-attribute 'default nil :family "Inconsolata" :height 160) (setq inferior-lisp-program "/usr/bin/sbcl") ; your Lisp system
(add-to-list 'load-path "~/programming/lisp/slime") ; your SLIME directory
(require 'slime)
(slime-setup '(slime-fancy))
;;; Erlang mode ;;; Erlang mode
(setq load-path (cons "/usr/lib/erlang/lib/tools-2.6.6.4/emacs" (setq load-path (cons "/usr/lib/erlang/lib/tools-2.6.6.4/emacs"
@@ -7,8 +10,6 @@
(setq exec-path (cons "/usr/lib/erlang/bin" exec-path)) (setq exec-path (cons "/usr/lib/erlang/bin" exec-path))
(require 'erlang-start) (require 'erlang-start)
(require 'vala-mode)
;;; Forth mode ;;; Forth mode
(autoload 'forth-mode "gforth.el") (autoload 'forth-mode "gforth.el")
(setq auto-mode-alist (cons '("\\.fs\\'" . forth-mode) (setq auto-mode-alist (cons '("\\.fs\\'" . forth-mode)
@@ -24,6 +25,18 @@
;;; ... ;;; ...
))) )))
;;; COOL-mode
(autoload 'cool-mode "cool-mode" nil t)
(add-to-list 'auto-mode-alist '("\\.cool\\'" . cool-mode))
;;; yacc/bison-mode
(autoload 'bison-mode "bison-mode" nil t)
(add-to-list 'auto-mode-alist '("\\.y\\'" . bison-mode))
;;; Flex mode
(autoload 'flex-mode "flex-mode" nil t)
(add-to-list 'auto-mode-alist '("\\.flex\\'" . flex-mode))
;;; GLSL-mode ;;; GLSL-mode
(autoload 'glsl-mode "glsl-mode" nil t) (autoload 'glsl-mode "glsl-mode" nil t)
(add-to-list 'auto-mode-alist '("\\.vert\\'" . glsl-mode)) (add-to-list 'auto-mode-alist '("\\.vert\\'" . glsl-mode))
@@ -33,8 +46,6 @@
(setq column-number-mode t) (setq column-number-mode t)
(global-set-key [insert] 'delete-selection-mode) ;; [Ins] (global-set-key [insert] 'delete-selection-mode) ;; [Ins]
(require 'color-theme-solarized)
(require 'no-easy-keys) (require 'no-easy-keys)
(tool-bar-mode -1) (tool-bar-mode -1)
@@ -42,6 +53,18 @@
(scroll-bar-mode -1) (scroll-bar-mode -1)
(column-number-mode t) (column-number-mode t)
(setq inhibit-startup-screen t) (setq inhibit-startup-screen t)
(desktop-save-mode 1)
(no-easy-keys 1) (no-easy-keys 1)
(color-theme-solarized-dark)
(custom-set-variables
'(haskell-mode-hook '(turn-on-haskell-indentation))
'(ansi-color-names-vector ["#242424" "#e5786d" "#95e454" "#cae682" "#8ac6f2" "#333366" "#ccaa8f" "#f6f3e8"])
'(custom-enabled-themes (quote (tsdh-dark))))
(set-default 'indent-tabs-mode nil)
(add-hook 'erlang-mode-hook '(lambda() (setq indent-tabs-mode nil)))
(set-face-attribute 'default nil :family "Inconsolata" :height 150)
(set-fontset-font "fontset-default" '(#x400 . #x4FF) "Terminus")
(require 'rust-mode)