Enable company-mode for org-mode.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Sat, 28 Jan 2017 14:41:20 +0200
changeset 1471 431c5408394c
parent 1470 787318562f0a
child 1472 c8da9757d036
Enable company-mode for org-mode.
.emacs-my
--- a/.emacs-my	Fri Jan 27 21:28:54 2017 +0200
+++ b/.emacs-my	Sat Jan 28 14:41:20 2017 +0200
@@ -1713,6 +1713,9 @@
 (define-key global-map "\C-vr"
   (lambda () (interactive) (org-capture nil "t")))
 
+(when (featurep 'company)
+  (add-hook 'org-mode-hook #'my/company-text-setup))
+
 (defun my/org-archive-location (path)
   "For given PATH make path to archive. Currently add undescore
 before file extention. If file name doesn't match