Skip to content

Instantly share code, notes, and snippets.

@sarcilav
Created April 28, 2010 01:04
Show Gist options
  • Select an option

  • Save sarcilav/381586 to your computer and use it in GitHub Desktop.

Select an option

Save sarcilav/381586 to your computer and use it in GitHub Desktop.
;; Load path to emacs.d
(if (fboundp 'normal-top-level-add-subdirs-to-load-path)
(let* ((my-lisp-dir "~/.emacs.d/")
(default-directory my-lisp-dir))
(setq load-path (cons my-lisp-dir load-path))
(normal-top-level-add-subdirs-to-load-path)))
;; Color theme
(require 'color-theme)
;;(color-theme-initialize)
(color-theme-midnight)
;; Template
(require 'template)
(template-initialize)
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(column-number-mode t);;display the column number
'(inhibit-startup-screen t);; quit the startup screen
'(scroll-bar-mode nil);;No scroll bar
'(show-paren-mode t));; math (){}
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
;; paren math
(show-paren-mode)
(defun indent-all()
"indent whole buffer"
(interactive)
(delete-trailing-whitespace)
(indent-region (point-min) (point-max) nil)
(untabify (point-min) (point-max)))(interactive)
(global-set-key [f5] 'indent-all)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment