Skip to content

Instantly share code, notes, and snippets.

@gpiancastelli
Created August 28, 2009 11:12
Show Gist options
  • Save gpiancastelli/176907 to your computer and use it in GitHub Desktop.
Save gpiancastelli/176907 to your computer and use it in GitHub Desktop.
(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))
(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.
)
;; Set initial frame position and size
(setq default-frame-alist
'((top . 15) (left . 50)
(width . 125) (height . 48)))
;; Set the default font
;; Evalue (w32-select-font) in the *scratch* buffer, and pick the result
(set-default-font "-raster-Inconsolata-normal-r-normal-normal-14-90-96-96-c-*-iso10646-1")
;; No backup files, thank you
(setq make-backup-files nil)
;; No toolbar
(tool-bar-mode -1)
;; Set frame title format
(setq frame-title-format "%b - %f - GNU Emacs")
;; Force emacs not to beep and not to blink
(setq ring-bell-function (lambda () nil))
;; Use y/n prompt instead of yes/no prompt
(fset 'yes-or-no-p 'y-or-n-p)
;; Set tabs to 4 spaces
(setq-default tab-width 4)
(setq-default indent-tabs-mode nil)
;; Use UTF-8 as predefined encoding
(prefer-coding-system 'utf-8)
;; Set file association for Python-mode
(setq auto-mode-alist
(cons '("\\.py$" . python-mode) auto-mode-alist))
(setq interpreter-mode-alist
(cons '("python" . python-mode) interpreter-mode-alist))
;; Autoload Python-mode
(autoload 'python-mode "python-mode" "Load python-mode" t)
;; Let Longlines minor mode wrap lines at window size
;; (Longlines is activated by M-x longlines-mode)
(setq longlines-wrap-follows-window-size 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment