diff options
author | Blaise Thompson <blaise@untzag.com> | 2018-07-02 21:18:45 -0500 |
---|---|---|
committer | Blaise Thompson <blaise@untzag.com> | 2018-07-02 21:18:45 -0500 |
commit | 7bcb0b78ce9e70b5e09ed84677742357ffdd3709 (patch) | |
tree | e33afbc154c0c302b78c7888d9e019b77df6340a /emacs | |
parent | 4fda7b1b6eb947fbf0c9d8e2fe654d4db039401b (diff) |
2018-07-02 21:18
Diffstat (limited to 'emacs')
-rw-r--r-- | emacs/init.el | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/emacs/init.el b/emacs/init.el new file mode 100644 index 0000000..8a49306 --- /dev/null +++ b/emacs/init.el @@ -0,0 +1,83 @@ +(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-enabled-themes (quote (sanityinc-tomorrow-night))) + '(custom-safe-themes + (quote + ("06f0b439b62164c6f8f84fdda32b62fb50b6d00e8b01c2208e55543a6337433a" default))) + '(package-selected-packages + (quote + (helm-swoop evil-leader helm spaceline evil use-package)))) +(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. + ) + +;; Bootstrap `use-package' +(require 'package) +(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/")) +(package-initialize) +(unless (package-installed-p 'use-package) + (package-refresh-contents) + (package-install 'use-package)) + +;; evil +(use-package evil-leader + :ensure t + :config + (global-evil-leader-mode) + ) +(use-package evil + :config + (evil-mode 1) + (modify-syntax-entry ?_ "w") + ) + +;; helm +(use-package helm + :ensure t + :config + (define-key helm-map (kbd "TAB") #'helm-execute-persistent-action) + (define-key helm-map (kbd "<tab>") #'helm-execute-persistent-action) + (define-key helm-map (kbd "C-z") #'helm-select-action) + ) +(use-package helm-swoop + :ensure t + ) + +;; org +(use-package org + :ensure t + ) +(use-package org-brain + :ensure t + :init + (setq org-brain-path "~/brain") + ;; For Evil users + (with-eval-after-load 'evil + (evil-set-initial-state 'org-brain-visualize-mode 'emacs)) + :config + (setq org-id-track-globally t) + (setq org-id-locations-file "~/.emacs.d/.org-id-locations") + (setq org-brain-visualize-default-choices 'all) + (setq org-brain-title-max-length 12)) + +;; spaceline +(use-package spaceline :ensure t) +(setq powerline-default-separator 'bar) +(spaceline-emacs-theme) + +;; theme +(menu-bar-mode -1) +(tool-bar-mode -1) +(toggle-scroll-bar -1) +(color-theme-sanityinc-tomorrow-night) + +;; keybindings +(evil-leader/set-key "f" 'helm-find-files) +(evil-leader/set-key "m" 'helm-mini) +(evil-leader/set-key "b" 'org-brain-visualize) |