Skip to content

Instantly share code, notes, and snippets.

@kgabis
Last active December 15, 2015 14:09
Show Gist options
  • Select an option

  • Save kgabis/5272393 to your computer and use it in GitHub Desktop.

Select an option

Save kgabis/5272393 to your computer and use it in GitHub Desktop.
My emacs config
;; 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