Created
September 25, 2017 23:48
-
-
Save faustinoaq/2233927514cb2506332a2721c4a8bc79 to your computer and use it in GitHub Desktop.
Personal Emacs configuration
This file contains 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
;; @faustinoaq | |
;; GNU Emacs 24 | |
;; ~/.emacs.d/init.el | |
;; MELPA packages | |
(require 'package) | |
(add-to-list 'package-archives | |
'("melpa" . "http://melpa.org/packages/") t) | |
(package-initialize) | |
;; Hack for line numbers | |
(require 'linum) | |
(set-face-attribute 'linum nil :height 100) | |
;; Score file for snake & tetris | |
(setq snake-score-file "~/.emacs.d/snake-scores") | |
(setq tetris-score-file "~/.emacs.d/tetris-scores") | |
(custom-set-variables | |
;; Remove autosave files | |
'(auto-save-default nil) | |
;; Move backup files to ~/.emacs.d | |
'(backup-directory-alist (quote (("." . "~/.emacs.d/backups")))) | |
;; Cursor blink | |
'(blink-cursor-mode t) | |
;; View cursor location | |
'(column-number-mode t) | |
;; View cursor as bar | |
'(cursor-type (quote bar)) | |
;; Set font and frame size | |
'(default-frame-alist | |
(quote | |
((font . "DejaVu Sans Mono-10:spacing=110") | |
(height . 38) | |
(width . 82)))) | |
;; Delete selection when you write | |
'(delete-selection-mode t) | |
;; Add indent with RET | |
'(electric-indent-mode t) | |
;; Autocomplete brackets | |
'(electric-pair-mode t) | |
;; Autocomplete the minibuffer when you search files | |
'(ido-mode nil nil (ido)) | |
;; Prefer spaces instead of tabs | |
'(indent-tabs-mode nil) | |
;; Hide the startup screen | |
'(inhibit-startup-screen t) | |
;; Set the initial major mode | |
'(initial-major-mode (quote fundamental-mode)) | |
;; Delete initial message | |
'(initial-scratch-message nil) | |
;; View the font with good line spacing | |
'(line-spacing 0.15) | |
;; Format for line numbers | |
'(linum-format " %3d") | |
;; Hide the menu bar | |
'(menu-bar-mode nil) | |
;; Hide the scrollbar | |
'(scroll-bar-mode nil) | |
;; Highlight the brackets | |
'(show-paren-mode t) | |
;; Speedbar in the left side | |
'(speedbar-default-position (quote left)) | |
;; Hide the brackets of the buttons in the speedbar | |
'(speedbar-hide-button-brackets-flag t) | |
;; Show unknown files in the speedbar | |
'(speedbar-show-unknown-files t) | |
;; Hide images for buttons | |
'(speedbar-use-images nil) | |
;; Hide toolbar | |
'(tool-bar-mode nil)) |
Author
faustinoaq
commented
Sep 25, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment