From b1d01d96bb7923787987d44a8d7f41b88cf3b60b Mon Sep 17 00:00:00 2001
From: Chizi123 <joelgrun@gmail.com>
Date: Tue, 19 Feb 2019 08:23:53 +0000
Subject: [PATCH] Added reftex and some minor changes

---
 init.el    |    4 +++-
 config.org |   21 +++++++++++++++++----
 2 files changed, 20 insertions(+), 5 deletions(-)

diff --git a/config.org b/config.org
index 407396b..39dc487 100644
--- a/config.org
+++ b/config.org
@@ -73,7 +73,7 @@
   (pdf-tools-install))
 
 #+END_SRC
-* Helm and projectile
+* Helm and Projectile
 ** Helm core
 #+BEGIN_SRC emacs-lisp
 (use-package helm-config
@@ -116,7 +116,8 @@
      :config
      (projectile-global-mode)
      (setq projectile-completion-system 'helm)
-     (setq projectile-indexing-method 'alien))
+     (when (eq system-type 'windows-nt)
+       (setq projectile-indexing-method 'alien)))
  #+END_SRC
 *** Let it compile things
  #+BEGIN_SRC emacs-lisp
@@ -453,7 +454,7 @@
     :ensure t
     :diminish company-mode
     :config
-    (add-hook 'prog-mode-hook 'company-mode)
+    (global-company-mode)
     (setq company-idle-delay 0)
     (setq company-minimum-prefix-length 3))
 #+END_SRC
@@ -568,7 +569,7 @@
 **** company
 #+BEGIN_SRC emacs-lisp
     (use-package company-c-headers
-        :ensure t
+        :ensure tk
         :after company
         :config
         (add-hook 'c++-mode-hook 'company-mode)
@@ -641,6 +642,18 @@
     :after company
     :config
     (add-to-list 'company-backends 'company-math-symbols-unicode))
+
+  (use-package company-reftex
+    :ensure t
+    :after company
+    :config
+    (add-to-list 'company-backends 'company-reftex))
+
+  (use-package company-auctex
+    :ensure t
+    :after company
+    :config
+    (company-auctex-init))
 #+END_SRC
 **** Preview pane
 #+BEGIN_SRC emacs-lisp
diff --git a/init.el b/init.el
index f9192d0..6322800 100644
--- a/init.el
+++ b/init.el
@@ -37,10 +37,12 @@
  '(ede-project-directories (quote ("c:/Users/joelg/.emacs.d")))
  '(package-selected-packages
    (quote
-    (gnuplot-mode gnuplot matlab-mode diminish keyfreq zenburn-theme yasnippet x86-lookup workgroups2 which-key volatile-highlights use-package undo-tree srefactor smartparens racket-mode popwin plantuml-mode pdf-tools org-bullets org nyan-mode magit latex-preview-pane helm-projectile ggtags flycheck-pos-tip flycheck-clang-analyzer company-math company-c-headers clean-aindent-mode auto-package-update auctex))))
+    (minesweeper speed-type spray fireplace powershell company-auctex company-bibtex company-irony-c-headers company-reftex gnuplot-mode gnuplot matlab-mode diminish keyfreq zenburn-theme yasnippet x86-lookup workgroups2 which-key volatile-highlights use-package undo-tree srefactor smartparens racket-mode popwin plantuml-mode pdf-tools org-bullets org nyan-mode magit latex-preview-pane helm-projectile ggtags flycheck-pos-tip flycheck-clang-analyzer company-math company-c-headers clean-aindent-mode auto-package-update auctex))))
 (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.
  )
+(put 'narrow-to-page 'disabled nil)
+(put 'narrow-to-region 'disabled nil)

--
Gitblit v1.9.3