Paste number 139255: init.el

Paste number 139255: init.el
Pasted by: ali
When:4 years, 8 months ago
Share:Tweet this! |
Paste contents:
Raw Source | XML | Display As
(require 'cl)
(require 'package)

(setq tramp-default-method "ssh")

(setq make-backup-files t)
(setq backup-directory-alist `((".*" . "~/.emacs_backups/"))) ;; backup folder.
(setq auto-save-file-name-transforms `((".*" "~/.emacs_backups/" t))) ;; auto-save files.

(add-to-list 'package-archives '("elpa" . ""))
(add-to-list 'package-archives '("melpa" . ""))
(add-to-list 'package-archives '("marmalade" . ""))

(evil-mode 1) ;; activate evil mode on startup.

(global-linum-mode 1)
(column-number-mode 1)
(require 'autopair)

;; fill column indicator
(require 'fill-column-indicator)

;; python - django
(require 'pony-mode)
(require 'python)
(require 'python-django)

(setq fci-rule-width 2)
(setq fci-rule-color "red")
(define-globalized-minor-mode global-fci-mode fci-mode (lambda () (fci-mode 1)))
(global-fci-mode 1)
(global-flycheck-mode 1) ;; flycheck mode

;; auto-complete-mode
(add-to-list 'load-path "~/.emacs.d/")
(require 'auto-complete-config)
(add-to-list 'ac-dictionary-directories "~/.emacs.d//ac-dict")
;; auto-complete-mode end.

(setq custom-file "~/.emacs.d/custom.el")
(load custom-file)

(setq  mouse-wheel-scroll-amount '(2 ((shift) . 2) ((control) . nil)))
(setq mouse-wheel-progressive-speed nil)

(global-auto-revert-mode 1)
(global-set-key (kbd "<f5>") 'revert-buffer)

(global-set-key (kbd "<f6>") 'switch-window) ;; switch window

(global-set-key (kbd "<f9>") 'ace-jump-buffer) ;; ace-jump-buffer

(scroll-bar-mode -1) ;; disable scroll bars

(add-to-list 'load-path' "~/.emacs.d/slime")
(setq inferior-lisp-program "/usr/local/bin/sbcl") ;; lisp system
(require 'slime)

(setq-default fill-column 79)
(setq-default tab-width 4) ;; set tabs to 4
(setq-default indent-tabs-mode nil) ;; convert tabs to space
(setq-default truncate-lines nil)
(setq-default c-indent-level 4)
(define-key global-map (kbd "RET") 'newline-and-indent) ;; auto indent 

(defun yank-and-indent()
  (call-interactively 'indent-region))

(global-set-key "\C-y" 'yank-and-indent) ;; global key  for indent

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.