35 lines
929 B
EmacsLisp
35 lines
929 B
EmacsLisp
|
(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 )))
|