;; Added by Package.el. This must come before configurations of ;; installed packages. Don't delete this line. If you don't want it, ;; just comment it out by adding a semicolon to the start of the line. ;; You may delete these explanatory comments. (require 'package) (package-initialize) (setq package-archives '(("gnu" . "http://mirrors.163.com/elpa/gnu/"))) (add-to-list 'package-archives '("org" . "http://orgmode.org/elpa/")) (add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/")) (add-to-list 'package-archives '("melpa-stable" . "http://stable.melpa.org/packages/")) ;; Disable menu and toolbar (menu-bar-mode 0) (tool-bar-mode 0) (scroll-bar-mode -1) (require 'evil) (evil-mode 1) (load-theme 'nofrils-dark t) ;(global-font-lock-mode 0) (require 'ido) (ido-mode) (ido-everywhere 1) (global-display-line-numbers-mode t) (fringe-mode 0) (setq echo-keystrokes 0.1) ;; Garbage collection after 20MB (setq gc-cons-threshold (* 20 1000 1000)) (setq-default fill-column 80) ;; Delete trailing whitespace when saving! (add-hook 'write-file-hooks 'delete-trailing-whitespace) ;; Don't create backup files (setq make-backup-files nil) ;; Autosave in /tmp ;; (setq backup-directory-alist ;; `((".*" . ,temporary-file-directory))) ;; (setq auto-save-file-name-transforms ;; `((".*" . ,temporary-file-directory t))) ;; Confirm before closing (setq confirm-kill-emacs 'y-or-n-p) ;; Use y-or-n instead of yes-or-no (fset 'yes-or-no-p 'y-or-n-p) ;; References ;; https://github.com/SirPscl/emacs.d#tweaking-defaults ;; https://github.com/munen/emacs.d/ (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. '(custom-safe-themes (quote ("bdb4509c123230a059d89fc837c40defdecee8279c741b7f060196b343b2d18d" "5a45c8bf60607dfa077b3e23edfb8df0f37c4759356682adf7ab762ba6b10600" "dbade2e946597b9cda3e61978b5fcc14fa3afa2d3c4391d477bdaeff8f5638c5" default))) '(global-display-line-numbers-mode t) '(package-selected-packages (quote (rust-mode treemacs-evil treemacs writeroom-mode mu4e-maildirs-extension mu4e-overview nofrils-acme-theme tao-theme undo-tree evil))) '(send-mail-function (quote smtpmail-send-it)) '(tool-bar-mode nil)) (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. '(default ((t (:family "Hack" :foundry "SRC" :slant normal :weight normal :height 98 :width normal))))) (set-background-color "#020202")