summaryrefslogtreecommitdiff
path: root/emacs
diff options
context:
space:
mode:
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)