Paste number 356292: the horror - my .emacs file

Paste number 356292: the horror - my .emacs file
Pasted by: osune
When:1 month, 2 weeks ago
Share:Tweet this! | http://paste.lisp.org/+7MX0
Channel:None
Paste contents:
Raw Source | XML | Display As
;;MELPA
(require 'package) ;; You might already have this line
(add-to-list 'package-archives
             '("melpa" . "http://melpa.org/packages/") t)
(when (< emacs-major-version 24)
  ;; For important compatibility libraries like cl-lib
  (add-to-list 'package-archives '("gnu" . "http://elpa.gnu.org/packages/")))
(package-initialize) ;; You might already have this line

;; gambit-c scheme support
(autoload 'gambit-inferior-mode "gambit" "Hook Gambit mode into cmuscheme.")
(autoload 'gambit-mode "gambit" "Hook Gambit mode into scheme.")
(add-hook 'inferior-scheme-mode-hook (function gambit-inferior-mode))
(add-hook 'scheme-mode-hook (function gambit-mode))
(setq scheme-program-name "gsi -:d-")

;; supercollider
;(add-to-list 'load-path "/usr/bin/sclang")
;(require 'sclang)
;(add-hook 'sclang-mode-hook 'sclang-extensions-mode)

;; faust highlight support
(setq auto-mode-alist (cons '("\\.dsp$" . faust-mode) auto-mode-alist))
(autoload 'faust-mode "faust-mode" "FAUST editing mode." t)

;;quicklisp slime helper
(load (expand-file-name "~/quicklisp/slime-helper.el"))
;; sbcl and slime
(setq inferior-lisp-program "/usr/bin/sbcl")

;(load (expand-file-name "~/.roswell/helper.el"))
;(setq inferior-lisp-program "ros -Q run")
(add-to-list 'load-path "/usr/share/emacs/site-lisp/slime/")
(require 'slime)
(slime-setup '(slime-fancy))
(slime-setup '(slime-company))

;; rainbow-delimiters mode
(add-hook 'prog-mode-hook #'rainbow-delimiters-mode)


;; offline hyperspec
(load "/home/osune/quicklisp/clhs-use-local.el" t)


;; latex support via auctex
(load "auctex.el" nil t t)
(load "preview-latex.el" nil t t)
(setq TeX-auto-save t)
(setq TeX-parse-self t)
(setq TeX-PDF-mode t)
					;(setq-default TeX-master "master")
(setq-default TeX-master nil)

;; lua support
(setq auto-mode-alist (cons '("\.lua$" . lua-mode) auto-mode-alist))
    (autoload 'lua-mode "lua-mode" "Lua editing mode." t)


;; activate org mode
;(require 'org)
;(define-key global-map "\C-cl" 'org-store-link)
;(define-key global-map "\C-ca" 'org-agenda)
;(setq org-log-done t)

;; smart window switching SHIFT + ARROW_KEY
;;(when (fboundp 'windmove-default-keybindings)
;;  (windmove-default-keybindings))

;; enable paredit autoload
(autoload 'enable-paredit-mode "paredit" "Turn on pseudo-structural editing of Lisp code." t)
;(add-hook M-mode-hook (lambda () (paredit-mode +1)))
(add-hook 'emacs-lisp-mode-hook       #'enable-paredit-mode)
(add-hook 'eval-expression-minibuffer-setup-hook #'enable-paredit-mode)
(add-hook 'ielm-mode-hook             #'enable-paredit-mode)
(add-hook 'lisp-mode-hook             #'enable-paredit-mode)
(add-hook 'lisp-interaction-mode-hook #'enable-paredit-mode)
(add-hook 'scheme-mode-hook           #'enable-paredit-mode)
(add-hook 'slime-repl-mode-hook (lambda () (paredit-mode +1)))

;; Stop SLIME's REPL from grabbing DEL,
;; which is annoying when backspacing over a '('
;(defun override-slime-repl-bindings-with-paredit ()
;  (define-key slime-repl-mode-map
;    (read-kbd-macro paredit-backward-delete-key) nil))
;(add-hook 'slime-repl-mode-hook 'override-slime-repl-bindings-with-paredit)

;; custom set vars
(custom-set-variables
 ;; custom-set-variables was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 '(ansi-color-faces-vector
   [default default default italic underline success warning error])
 '(c-default-style
   (quote
    ((c-mode . "k&r")
     (java-mode . "java")
     (awk-mode . "awk")
     (other . "gnu"))))
 '(custom-enabled-themes (quote (wombat)))
 '(desktop-path (quote ("~/.emacs.d/" "~/.emacs.s/desktop")))
 '(desktop-restore-frames nil)
 '(ido-enable-flex-matching t)
 '(ido-everywhere t)
 '(ido-mode (quote both) nil (ido))
 '(inhibit-startup-screen t)
 '(package-selected-packages
   (quote
    (smex magit rainbow-delimiters slime-company xcscope graphviz-dot-mode dts-mode)))
 '(show-paren-mode t)
 '(tool-bar-mode nil))


(setq-default ispell-program-name "aspell")

;; overwrite  active buffer movement
(global-set-key (kbd "C-x <up>") 'windmove-up)
(global-set-key (kbd "C-x <down>") 'windmove-down)
(global-set-key (kbd "C-x <left>") 'windmove-left)
(global-set-key (kbd "C-x <right>") 'windmove-right)

(global-set-key (kbd "C-x g") 'magit-status)




(require 'smex) ; Not needed if you use package.el
(smex-initialize) ; Can be omitted. This might cause a (minimal) delay
					; when Smex is auto-initialized on its first run.

(global-set-key (kbd "M-x") 'smex)
(global-set-key (kbd "M-X") 'smex-major-mode-commands)
;; This is your old M-x.
(global-set-key (kbd "C-c C-c M-x") 'execute-extended-command)


;;(setq-default truncate-lines nil)
;;(setq-default global-visual-line-mode nil)

;; (custom-set-faces
;;  ;; custom-set-faces was added by Custom.
;;  ;; If you edit it by hand, you could mess it up, so be careful.
;;  ;; Your init file should contain only one such instance.
;;  ;; If there is more than one, they won't work right.
;;  '(default ((t (:family "Anonymous Pro" :foundry "unknown" :slant normal :weight normal :height 108 :width normal)))))

This paste has no annotations.

Colorize as:
Show Line Numbers

Lisppaste pastes can be made by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively.