Skip to content

Instantly share code, notes, and snippets.

@xee5ch
Created April 8, 2014 22:28
Show Gist options
  • Save xee5ch/10202578 to your computer and use it in GitHub Desktop.
Save xee5ch/10202578 to your computer and use it in GitHub Desktop.
My Current .emacs
;; no longer using elpa+el-get, default to el-get only
;;
;;
;; begin: elpa configuration
(when (>= emacs-major-version 24)
(require 'package)
(package-initialize)
(add-to-list 'package-archives '("melpa" . "http://melpa.milkbox.net/packages/") t))
;; end: elpa configuration
;; begin: el-get configuration
(add-to-list 'load-path "~/.emacs.d/el-get/el-get")
(unless (require 'el-get nil 'noerror)
(with-current-buffer
(url-retrieve-synchronously
"https://raw.github.com/dimitri/el-get/master/el-get-install.el")
(let (el-get-master-branch)
(goto-char (point-max))
(eval-print-last-sexp))))
;; end: el-get configuration
;; begin: proper encoding from LANG variable
(prefer-coding-system locale-coding-system)
(when (not window-system)
(set-keyboard-coding-system locale-coding-system)
(set-terminal-coding-system locale-coding-system))
;; end: proper encoding from LANG variable
(el-get 'sync)
;; end: el-get configuration
;; begin: tramp configuration
(require 'tramp)
;; end: tramp configuration
;; begin: temp file and autosave configuration
(setq backup-directory-alist
`((".*" . ,temporary-file-directory)))
(setq auto-save-file-name-transforms
`((".*" ,temporary-file-directory t)))
;; end: temp file and autosave configuration
;; begin: slime configuration
(setq inferior-lisp-program "/usr/bin/ccl")
;; end: slime configuration
;; begin: geiser configuration
;;
(setq geiser-repl-history-filename "~/.emacs.d/geiser-history")
;; end: geiser configuration
;; begin: theme and color customization
(custom-set-variables
'(ansi-color-names-vector ["black" "#d55e00" "#009e73" "#f8ec59" "#0072b2" "#cc79a7" "#56b4e9" "white"])
'(custom-enabled-themes (quote (manoj-dark))))
(custom-set-faces)
;; end: theme and color customization
;; begin: nimrod mode
(add-to-list 'load-path "~/.emacs.d/nimrod-mode")
(require 'nimrod-mode)
;; end: nimrod mode
;; begin: java jdee mode
;;(add-to-list 'load-path "~/.emacs.d/jdee-2.4.1/lisp")
;;(load "jde")
;; end: java jdee mode
;; begin: global autocomplete
;; see: http://stackoverflow.com/a/8098380/311888
(require 'auto-complete)
(global-auto-complete-mode t)
;; end: global auto-complete
;; begin: mail mode support for mutt
(setq auto-mode-alist (append '(("/tmp/mutt.*" . mail-mode)) auto-mode-alist))
;; end: mail mode for mutt
;; begin: mu4e
(require 'mu4e)
;; Only needed if your maildir is _not_ ~/Maildir
(setq mu4e-maildir "~/Mail")
;; end: mu4e
;; begin: spell-check
(setq ispell-program-name "aspell")
(setq ispell-list-command "list")
;; end: spell-check
;; begin: switch visible buffers
;;
;; https://stackoverflow.com/a/20843794/311888
;;
(global-set-key (kbd "C-x <up>") 'previous-multiframe-window)
(global-set-key (kbd "C-x <down>") 'next-multiframe-window)
;; end: switch visible buffers
;; begin: grammar-mode
(require 'grammar)
;; end: grammar-mode
;; begin: vala-mode
;;(autoload 'vala-mode "vala-mode" "Major mode for editing Vala code." t)
;;(add-to-list 'auto-mode-alist '("\\.vala$" . vala-mode))
;;(add-to-list 'auto-mode-alist '("\\.vapi$" . vala-mode))
;;(add-to-list 'file-coding-system-alist '("\\.vala$" . utf-8))
;;(add-to-list 'file-coding-system-alist '("\\.vapi$" . utf-8))
;; end: vala-mode
;; begin: non-geiser schemes
(require 'gambit)
(setq scheme-program-name "gsi -:d-")
;; end: non-geiser schemes
;; begin: include column numbers
(setq column-number-mode t)
;; end: include column numbers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment