Last active
December 15, 2015 14:09
-
-
Save kgabis/5272393 to your computer and use it in GitHub Desktop.
My emacs config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;; Save temp files in one place | |
| (setq | |
| backup-by-copying t ; don't clobber symlinks | |
| backup-directory-alist | |
| '(("." . "~/.saves")) ; don't litter my fs tree | |
| delete-old-versions t | |
| kept-new-versions 6 | |
| kept-old-versions 2 | |
| version-control t) ; use versioned backups | |
| ;; Goto-line short-cut key | |
| (global-set-key "\C-l" 'goto-line) | |
| ;; Show line numbers | |
| (global-linum-mode t) | |
| ;; Automatic indent | |
| (global-set-key (kbd "RET") 'newline-and-indent) | |
| ;; Indent buffer | |
| (defun indent-buffer () | |
| "Indent the currently visited buffer." | |
| (interactive) | |
| (indent-region (point-min) (point-max))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment