From 70225c3a49d11ab9a8e1be68eed12118a17a6d42 Mon Sep 17 00:00:00 2001 From: Maximilian Friedersdorff Date: Mon, 24 Oct 2016 12:19:45 +0100 Subject: [PATCH] More complicated emacs config --- emacs/.emacs | 35 +++++++++++++++++++++++++++++++---- 1 file changed, 31 insertions(+), 4 deletions(-) diff --git a/emacs/.emacs b/emacs/.emacs index da4d39a..c1f6a1b 100644 --- a/emacs/.emacs +++ b/emacs/.emacs @@ -6,7 +6,17 @@ ;; 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. - '(package-selected-packages (quote (org evil)))) + '(ansi-color-faces-vector + [default default default italic underline success warning error]) + '(auto-save-file-name-transforms (quote ((".*" "~/.emacs.d/autosaves/\\1" t)))) + '(backup-directory-alist (quote ((".*" . "~/.emacs.d/backups/")))) + '(custom-enabled-themes (quote (zenburn))) + '(custom-safe-themes + (quote + ("4e753673a37c71b07e3026be75dc6af3efbac5ce335f3707b7d6a110ecb636a3" "b571f92c9bfaf4a28cb64ae4b4cdbda95241cd62cf07d942be44dc8f46c491f4" default))) + '(package-selected-packages + (quote + (zenburn-theme helm helm-config use-package flycheck company-jedi company org evil)))) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. @@ -14,8 +24,25 @@ ;; If there is more than one, they won't work right. ) -(require 'evil) -(evil-mode 1) +;; Create autosave dir +(make-directory "~/.emacs.d/autosaves/" t) +(use-package evil + :ensure t + :config (evil-mode 1)) -(load-theme 'molokai t) +(use-package flycheck + :ensure t + :init (global-flycheck-mode)) + +(use-package helm-config + :ensure helm + :config + (helm-mode 1) + (global-set-key (kbd "M-x") 'helm-M-x)) + + +(add-hook 'after-init-hook 'global-company-mode) + +(eval-after-load 'company + '(add-to-list 'company-backends 'company-jedi)) -- 2.45.2