summaryrefslogtreecommitdiff
path: root/emacs
diff options
context:
space:
mode:
authorBlaise Thompson <blaise@untzag.com>2018-07-15 14:45:27 -0500
committerBlaise Thompson <blaise@untzag.com>2018-07-15 14:45:27 -0500
commit0603a654412c6abbb1e681be081d344c1326030f (patch)
tree246b417226381a27e5b241100d59117be71a2a39 /emacs
parent1167de1913fbb06a74f711e89aa9208e72cfa0d0 (diff)
2018-07-15 14:45
Diffstat (limited to 'emacs')
-rw-r--r--emacs/init.el23
1 files changed, 20 insertions, 3 deletions
diff --git a/emacs/init.el b/emacs/init.el
index 97774ab..84a9a0a 100644
--- a/emacs/init.el
+++ b/emacs/init.el
@@ -29,6 +29,11 @@
;; packages ---------------------------------------------------------------------------------------
+;; company
+(use-package company
+ :ensure t
+ )
+
;; evil
(use-package evil-leader
:ensure t
@@ -115,8 +120,14 @@
(load-file "~/source/dotfiles/emacs/color-theme-tomorrow.el")
(color-theme-tomorrow-night)
(set-face-attribute 'helm-selection nil
- :background "#373b41"
- :foreground "#c5c8c6")
+ :background "#373b41"
+ :foreground "#c5c8c6"
+ )
+(set-face-attribute 'highlight nil
+ :background "#373b41"
+ )
+
+
;;; functions -------------------------------------------------------------------------------------
@@ -181,10 +192,16 @@
;;; hooks -----------------------------------------------------------------------------------------
+;; text mode
(add-hook 'text-mode-hook 'flyspell-mode)
(add-hook 'text-mode-hook 'turn-on-visual-line-mode)
-;; keybindings ------------------------------------------------------------------------------------
+;; global
+(add-hook 'after-init-hook 'global-company-mode)
+
+;;; keybindings -----------------------------------------------------------------------------------
+
+(global-set-key "\t" 'company-complete-common)
(evil-leader/set-key "b" 'org-brain-visualize)
(evil-leader/set-key "f" 'helm-find-files)