[emacs] added

This commit is contained in:
Marcel Kapfer (mmk2410) 2016-07-23 23:20:04 +02:00
parent 1dfa5991db
commit ebf18c9f48

34
emacs.el Normal file
View file

@ -0,0 +1,34 @@
(setq user-full-name "Marcel Kapfer (mmk2410")
(setq user-mail-address "marcelmichaelkapfer@yahoo.co.nz")
(load "package")
(package-initialize)
(add-to-list 'package-archives
'("marmalade" . "http://marmalade-repo.org/packages/"))
(add-to-list 'package-archives
'("melpa" . "http://melpa.milkbox.net/packages/"))
(setq package-archive-enable-alist '(("melpa" deft magit)))
(setq tab-width 2)
(defalias 'yes-or-no-p 'y-or-n-p)
;; Org mode settings
(add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
(global-set-key "\C-cl" 'org-store-link)
(global-set-key "\C-ca" 'org-agenda)
(global-font-lock-mode 1)
;; Always show line numbers
(global-linum-mode t)
;; Highlight current line
(global-hl-line-mode t)
;; Autocomplete
(require 'auto-complete)
(global-auto-complete-mode t)
;; Save backup files in .emacs
(setq auto-save-file-name-transforms
`((".*" ,(concat user-emacs-directory "auto-save/") t )))