[emacs] added
This commit is contained in:
parent
1dfa5991db
commit
ebf18c9f48
1 changed files with 34 additions and 0 deletions
34
emacs.el
Normal file
34
emacs.el
Normal 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 )))
|
Loading…
Reference in a new issue