From db15ba02fcdc06feda4c393f2ec70913bc89854e Mon Sep 17 00:00:00 2001
From: Chizi123 <joelgrun@gmail.com>
Date: Thu, 10 Jan 2019 11:24:14 +0000
Subject: [PATCH] added new snippets for ENGR10003 assignment 1

---
 snippets/org-mode/table to matrix             |    6 +++
 .gitignore                                    |    1 
 snippets/org-mode/latex-snippet               |    8 ++++
 snippets/latex-mode/ENGR10003 Assignment 1/A1 |    5 ++
 snippets/latex-mode/ENGR10003 Assignment 1/A0 |    5 ++
 config.org                                    |   21 ++++------
 snippets/latex-mode/ENGR10003 Assignment 1/A3 |    5 ++
 snippets/latex-mode/ENGR10003 Assignment 1/A2 |    5 ++
 snippets/latex-mode/overline                  |    5 ++
 9 files changed, 49 insertions(+), 12 deletions(-)

diff --git a/.gitignore b/.gitignore
index 0675f36..2e30d81 100644
--- a/.gitignore
+++ b/.gitignore
@@ -11,3 +11,4 @@
 projectile-bookmarks.eld
 projectile.cache
 recentf
+irony*/
\ No newline at end of file
diff --git a/config.org b/config.org
index e7788fe..cd4b7a4 100644
--- a/config.org
+++ b/config.org
@@ -3,7 +3,7 @@
 Dependencies needed for Aspell, poppler PDF-tools, compilers and ghost-script provided by mingw64
 #+BEGIN_SRC emacs-lisp
   (when (eq system-type 'windows-nt)
-    (add-to-list 'exec-path "C:/msys64/usr/bin")
+    ;; (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")
     (setenv "PATH" (mapconcat #'identity exec-path path-separator)))
@@ -565,27 +565,24 @@
 #+END_SRC
 **** company
 #+BEGIN_SRC emacs-lisp
-  (add-hook 'c-mode-common-hook
-	    (lambda ()
-	      (define-key c-mode-base-map  [(tab)] 'company-complete)))
-
     (use-package company-c-headers
-	:ensure t
-	:after company
-	:config
-	(add-hook 'c++-mode-hook 'company-mode)
-	(add-hook 'c-mode-hook 'company-mode))
+        :ensure t
+        :after company
+        :config
+        (add-hook 'c++-mode-hook 'company-mode)
+        (add-hook 'c-mode-hook 'company-mode))
 
     (use-package company-irony
       :ensure t
       :config
       (add-to-list 'company-backends '(company-c-headers
-				       company-dabbrev-code
-				       company-irony)))
+                                       company-dabbrev-code
+                                       company-irony)))
 
     (use-package irony
       :ensure t
       :config
+      (setq w32-pipe-read-delay 0)
       (add-hook 'c++-mode-hook 'irony-mode)
       (add-hook 'c-mode-hook 'irony-mode)
       (add-hook 'irony-mode-hook 'irony-cdb-autosetup-compile-options))
diff --git a/snippets/latex-mode/ENGR10003 Assignment 1/A0 b/snippets/latex-mode/ENGR10003 Assignment 1/A0
new file mode 100644
index 0000000..d823270
--- /dev/null
+++ b/snippets/latex-mode/ENGR10003 Assignment 1/A0
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: A0
+# key: A0
+# --
+\overline{A_0}\hspace{0.1cm}
\ No newline at end of file
diff --git a/snippets/latex-mode/ENGR10003 Assignment 1/A1 b/snippets/latex-mode/ENGR10003 Assignment 1/A1
new file mode 100644
index 0000000..0002fb9
--- /dev/null
+++ b/snippets/latex-mode/ENGR10003 Assignment 1/A1
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: A1
+# key: A1
+# --
+\overline{A_1}\hspace{0.1cm}
\ No newline at end of file
diff --git a/snippets/latex-mode/ENGR10003 Assignment 1/A2 b/snippets/latex-mode/ENGR10003 Assignment 1/A2
new file mode 100644
index 0000000..48ede9f
--- /dev/null
+++ b/snippets/latex-mode/ENGR10003 Assignment 1/A2
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: A2
+# key: A2
+# --
+\overline{A_2}\hspace{0.1cm}
\ No newline at end of file
diff --git a/snippets/latex-mode/ENGR10003 Assignment 1/A3 b/snippets/latex-mode/ENGR10003 Assignment 1/A3
new file mode 100644
index 0000000..2265f0e
--- /dev/null
+++ b/snippets/latex-mode/ENGR10003 Assignment 1/A3
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: A3
+# key: A3
+# --
+\overline{A_3}\hspace{0.1cm}
\ No newline at end of file
diff --git a/snippets/latex-mode/overline b/snippets/latex-mode/overline
new file mode 100644
index 0000000..213f7f5
--- /dev/null
+++ b/snippets/latex-mode/overline
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: Overline
+# key: ov
+# --
+\overline{$1}$0
\ No newline at end of file
diff --git a/snippets/org-mode/latex-snippet b/snippets/org-mode/latex-snippet
new file mode 100644
index 0000000..2761d2c
--- /dev/null
+++ b/snippets/org-mode/latex-snippet
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# name: Latex snippet
+# key: <l
+# group: code snippets
+# --
+#+BEGIN_SRC latex
+$0
+#+END_SRC
\ No newline at end of file
diff --git a/snippets/org-mode/table to matrix b/snippets/org-mode/table to matrix
new file mode 100644
index 0000000..3af92d6
--- /dev/null
+++ b/snippets/org-mode/table to matrix
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: Org table to latex matrix
+# key: lmatrix
+# --
+#+attr_latex: :mode math :environment matrix
+$0

--
Gitblit v1.9.3