Skip to content

Instantly share code, notes, and snippets.

@superdaigo
Created October 7, 2015 03:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save superdaigo/32fd276526fe1b5cc038 to your computer and use it in GitHub Desktop.
Save superdaigo/32fd276526fe1b5cc038 to your computer and use it in GitHub Desktop.
Simple init.el
;; Encoding
(setq default-file-name-coding-system 'utf-8)
(setq default-buffer-file-coding-system 'utf-8)
(setq default-process-coding-system '(utf-8 . utf-8))
;; Misc
(setq inhibit-startup-message t) ;; Hide Startup Cow
(setq visible-bell t) ;; Visible bell
(menu-bar-mode -1) ;; Menu bar (1: Enable, -1: Disable)
(blink-cursor-mode 0) ;; Blink Cursor (0: off, 1: blink)
(show-paren-mode 1) ;; Emphasize pair parentheses
;; Display cursor position
(line-number-mode t) ;; Line number
(column-number-mode t) ;; Column number
;; Mode line
(display-time) ;; Display time
(which-function-mode 1) ;; Display function name
;; File, Buffer
(setq make-backup-files nil) ;; No backup file (~filename)
(setq auto-save-default nil) ;; No auto-save
(global-auto-revert-mode 1) ;; Reload modified buffer automatically
(setq tab-width 4) ;; Tab width: 4 space
(setq indent-tabs-mode nil) ;; No tab
;; use ibuffer
(global-set-key (kbd "C-x C-b") 'ibuffer)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment