Skip to content

Instantly share code, notes, and snippets.

@ngaranko
Created November 26, 2013 14:25
Show Gist options
  • Save ngaranko/7659150 to your computer and use it in GitHub Desktop.
Save ngaranko/7659150 to your computer and use it in GitHub Desktop.
.emacs so far.
(add-to-list 'load-path "~/lisp")
(add-to-list 'load-path "~/lisp/color-theme")
(add-to-list 'load-path "~/lisp/python-mode")
(add-to-list 'load-path "/usr/local/lib/erlang/lib/tools-2.6.11/emacs")
(require 'php-mode)
(require 'color-theme)
(eval-after-load "color-theme"
'(progn
(color-theme-initialize)
(color-theme-calm-forest)))
(add-to-list 'backup-directory-alist
'(cons "." "~/.emacs.d/backups/"))
(setq tramp-backup-directory-alist backup-directory-alist)
;; Python mode
(add-to-list 'auto-mode-alist '("\\.py\\'" . python-mode))
(add-to-list 'interpreter-mode-alist '("python" . python-mode))
;; Erlang mode
(setq erlang-root-dir "/usr/local/lib/erlang")
(add-to-list 'exec-path "/usr/local/lib/erlang/bin")
(require 'erlang-start)
(require 'erlang-flymake)
(add-to-list 'auto-mode-alist '("\\.erl?$" . erlang-mode))
(add-to-list 'auto-mode-alist '("\\.hrl?$" . erlang-mode))
;; Whitespacing
(require 'whitespace)
;; Line numbers
(global-linum-mode t)
;; Whitespace mode
(global-whitespace-mode t)
(set-face-attribute 'whitespace-space nil
:foreground "#4D4D4D"
:background nil
:weight 'bold)
(set-face-attribute 'whitespace-line nil
:foreground nil
:background nil
:weight 'bold)
(setq-default c-basic-offset 4)
(setq-default indent-tabs-mode nil)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment