Emacs Configuration

Raw: emacs/

(require 'package)
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
;; Comment/uncomment this line to enable MELPA Stable if desired.  See `package-archive-priorities`
;; and `package-pinned-packages`. Most users will not need or want to do this.
;;(add-to-list 'package-archives '("melpa-stable" . "https://stable.melpa.org/packages/") t)
(package-initialize)
;; For packages not available on melpa.
(add-to-list 'load-path (expand-file-name "~/elisp"))

;; Neotree.
;; https://github.com/jaypei/emacs-neotree
(require 'neotree)
(global-set-key [f8] 'neotree-show)
(setq-default neo-window-width 40)

;; Awesome tab.
;; https://github.com/manateelazycat/awesome-tab
(require 'awesome-tab)
(awesome-tab-mode t)

;; Theme.
(load-theme 'solarized-dark t)

;; Font.
(set-face-attribute 'default nil :height 140)

(setq-default cursor-type 'bar)
(setq-default column-number-mode t)
(global-display-line-numbers-mode)

(setq-default make-backup-files nil)

;; To replace selected text when typing.
(delete-selection-mode 1)