From 9c4cf0c1a31eddd2b147e69a2d6b03524f47f332 Mon Sep 17 00:00:00 2001
From: Chizi123 <joelgrun@gmail.com>
Date: Fri, 23 Nov 2018 02:54:01 +0000
Subject: [PATCH] added latex stuff to init

---
 bookmarks |   10 +++++
 tramp     |   27 +++++++++++++
 init.el   |   33 +++++++++++++++-
 3 files changed, 67 insertions(+), 3 deletions(-)

diff --git a/bookmarks b/bookmarks
new file mode 100644
index 0000000..6ce8ff6
--- /dev/null
+++ b/bookmarks
@@ -0,0 +1,10 @@
+;;;; Emacs Bookmark Format Version 1 ;;;; -*- coding: utf-8-emacs -*- 
+;;; This format is meant to be slightly human-readable;
+;;; nevertheless, you probably don't want to edit it.
+;;; -*- End Of Bookmark File Format Version Stamp -*-
+(("Emacs init file"
+ (filename . "~/.emacs.d/init.el")
+ (front-context-string)
+ (rear-context-string . " C-b\" 'ibuffer)\n")
+ (position . 918))
+)
\ No newline at end of file
diff --git a/init.el b/init.el
index 357d266..cb0c2eb 100644
--- a/init.el
+++ b/init.el
@@ -1,7 +1,7 @@
 (provide 'init)
 
 ;; set paths for executable
-;; use mingw64 for aspell, poppler (pdf-tools), gcc
+;; use mingw64 for aspell, poppler (pdf-tools), gcc, ghostscript
 (add-to-list 'exec-path "C:/msys64/usr/bin")
 (add-to-list 'exec-path "C:/msys64/mingw64/bin")
 (add-to-list 'exec-path "c:/Program Files/Racket")
@@ -30,6 +30,10 @@
 ;; setting up aspell
 (require 'ispell)
 (setq-default ispell-program-name "aspell")
+(add-hook 'latex-mode-hook 'flyspell-mode)
+(add-hook 'latex-mode-hook 'flyspell-buffer)
+(add-hook 'org-mode-hook 'flyspell-mode)
+(add-hook 'org-mode-hook 'flyspell-buffer)
 
 ;; Repos
 (require 'package)
@@ -49,6 +53,7 @@
 
 ;; auto-package-update
 (use-package auto-package-update
+  :ensure t
   :config
   (setq auto-package-update-delete-old-versions t)
   (setq auto-package-update-hide-results t)
@@ -180,8 +185,18 @@
 
 (use-package company-c-headers
   :ensure t
+  :after company
   :config
   (add-to-list 'company-backends 'company-c-headers)
+  (setq auto-package-update-delete-old-versions t)
+  (setq auto-package-update-hide-results t)
+  (auto-package-update-maybe))
+
+(use-package company-math
+  :ensure t
+  :after company
+  :config
+  (add-to-list 'company-backends 'company-math-symbols-unicode)
   (setq auto-package-update-delete-old-versions t)
   (setq auto-package-update-hide-results t)
   (auto-package-update-maybe))
@@ -368,8 +383,8 @@
 ;; org-bullets
 (use-package org-bullets
   :ensure t
-  :hook org-mode
   :config
+  (add-hook 'org-mode-hook (lambda () (org-bullets-mode 1)))
   (setq auto-package-update-delete-old-versions t)
   (setq auto-package-update-hide-results t)
   (auto-package-update-maybe))
@@ -387,6 +402,7 @@
 (use-package org
   :ensure t
   :config
+  (setq org-src-tab-acts-natively t)
   (setq auto-package-update-delete-old-versions t)
   (setq auto-package-update-hide-results t)
   (auto-package-update-maybe))
@@ -397,6 +413,17 @@
   :config
   (setq TeX-auto-save t)
   (setq TeX-parse-self t)
+  (setq doc-view-ghostscript-program "c:/msys64/mingw64/bin/gswin32c.exe")
+  (setq preview-gs-command "c:/msys64/mingw64/bin/gs.exe")
+  (setq auto-package-update-delete-old-versions t)
+  (setq auto-package-update-hide-results t)
+  (auto-package-update-maybe))
+
+;; latex-preview-pane
+(use-package latex-preview-pane
+  :ensure t
+  :config
+  (latex-preview-pane-enable)
   (setq auto-package-update-delete-old-versions t)
   (setq auto-package-update-hide-results t)
   (auto-package-update-maybe))
@@ -411,7 +438,7 @@
     ("ec5f697561eaf87b1d3b087dd28e61a2fc9860e4c862ea8e6b0b77bd4967d0ba" default)))
  '(package-selected-packages
    (quote
-    (auctex zenburn-theme org flycheck-pos-tip flycheck rtags racket-mode geiser auto-package-update use-package pdf-tools org-bullets x86-lookup ztree yasnippet workgroups2 volatile-highlights undo-tree srefactor smartparens nyan-mode magit ibuffer-vc helm-projectile guide-key ggtags diff-hl company-c-headers clean-aindent-mode))))
+    (company-math latex-preview-pane auctex zenburn-theme org flycheck-pos-tip flycheck rtags racket-mode geiser auto-package-update use-package pdf-tools org-bullets x86-lookup ztree yasnippet workgroups2 volatile-highlights undo-tree srefactor smartparens nyan-mode magit ibuffer-vc helm-projectile guide-key ggtags diff-hl company-c-headers clean-aindent-mode))))
 (custom-set-faces
  ;; custom-set-faces was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.
diff --git a/tramp b/tramp
new file mode 100644
index 0000000..7741e5f
--- /dev/null
+++ b/tramp
@@ -0,0 +1,27 @@
+;; -*- emacs-lisp -*- <18/11/18 19:54:13 c:/Users/joelg/.emacs.d/tramp>
+;; Tramp connection history.  Don't change this file.
+;; You can delete it, forcing Tramp to reapply the checks.
+
+(((tramp-file-name "plink" "joel" nil "192.168.1.113" nil nil nil)
+  ("uname" "Linux 4.18.0-11-generic")
+  ("locale" "LC_ALL=en_US.utf8")
+  ("test" "test")
+  ("remote-path"
+   ("/bin" "/usr/bin" "/sbin" "/usr/sbin" "/usr/local/bin" "/usr/local/sbin"))
+  ("remote-shell" "/bin/sh")
+  ("~" "/home/joel")
+  ("file-exists" "test -e")
+  ("stat" "env QUOTING_STYLE=locale \\stat")
+  ("id" "/usr/bin/id")
+  ("gid-integer" 1000)
+  ("gid-string" "joel")
+  ("perl-file-spec" t)
+  ("perl-cwd-realpath" t)
+  ("perl" "\\perl")
+  ("case-insensitive" nil)
+  ("readlink" "\\readlink")
+  ("git" "\\git")
+  ("uid-integer" 1000)
+  ("tmpdir" "/plink:joel@192.168.1.113:/tmp")
+  ("touch-t" t)
+  ("touch" "\\touch")))

--
Gitblit v1.9.3