From baf32603adbb127c9999c7ff5a25c1a66783fba8 Mon Sep 17 00:00:00 2001
From: Chizi123 <joelgrun@gmail.com>
Date: Fri, 26 Apr 2019 06:50:45 +0000
Subject: [PATCH] Changed .gitignore to just config and custom snippets. fixed verilog

---
 .gitignore |   21 ++--------
 init.el    |    2 
 config.org |   55 ++++++++++++++++++---------
 3 files changed, 42 insertions(+), 36 deletions(-)

diff --git a/.gitignore b/.gitignore
index 41176fd..572e2af 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,16 +1,5 @@
-*~
-#*#
-config.el
-elpa/*
-eshell/*
-semanticdb/*
-url/*
-srecode-map.el
-.last-package-update-day
-ede-projects.el
-network-security.data
-projectile-bookmarks.eld
-projectile.cache
-recentf
-irony*/
-server/
\ No newline at end of file
+/*
+!config.org
+!init.el
+!.gitignore
+!snippets
\ No newline at end of file
diff --git a/config.org b/config.org
index 7bc3bff..5b3a1c1 100644
--- a/config.org
+++ b/config.org
@@ -153,10 +153,10 @@
 
 *** Enable communication with helm
 #+BEGIN_SRC emacs-lisp
-(use-package helm-projectile
-  :ensure t
-  :config
-  (helm-projectile-on))
+  (use-package helm-projectile
+    :ensure t
+    :config
+    (helm-projectile-on))
 #+END_SRC
 
 * Small tweaks
@@ -791,13 +791,24 @@
 #+END_SRC
 
 *** Verilog
+**** Get latest version
+Pull the latest version from the web
+#+BEGIN_SRC emacs-lisp
+  (defun get-verilog-latest()
+    (interactive)
+    (url-copy-file "https://www.veripool.org/ftp/verilog-mode.el" "c:/Users/joelg/.emacs.d/elpa/verilog-mode/verilog-mode.el" 1))
+#+END_SRC
+
+**** Integrate into emacs
 Add updated version and integrate it with Emacs.
 #+BEGIN_SRC emacs-lisp
-  (add-to-list 'load-path "~/.emacs.d/elpa/verilog-mode-20190324/verilog-mode.el")
-  (require 'verilog-mode)
-
-  (autoload 'verilog-mode "verilog-mode" "Verilog mode" t )
-  (add-to-list 'auto-mode-alist '("\\.[ds]?vh?\\'" . verilog-mode))
+  (use-package verilog-mode
+    :init
+    (get-verilog-latest)
+    (add-to-list 'load-path "~/.emacs.d/elpa/verilog-mode/verilog-mode.el")
+    :config
+    (autoload 'verilog-mode "verilog-mode" "Verilog mode" t )
+    (add-to-list 'auto-mode-alist '("\\.[ds]?vh?\\'" . verilog-mode)))
 #+END_SRC
 
 * Org mode
@@ -839,16 +850,22 @@
 *** Languages
 Add C to org babel supported languages
 #+BEGIN_SRC emacs-lisp
-  (org-babel-do-load-languages 'org-babel-load-languages '((emacs-lisp . t)
-                                                           (C . t)
-                                                           (python . t)
-                                                           (latex . t)
-                                                           (scheme . t)
-                                                           (gnuplot . t)
-                                                           (matlab . t)
-                                                           (plantuml . t)
-                                                           (fortran . t)
-                                                           (java . t)))
+    (org-babel-do-load-languages 'org-babel-load-languages '((emacs-lisp . t)
+                                                             (C . t)
+                                                             (python . t)
+                                                             (latex . t)
+                                                             (scheme . t)
+                                                             (gnuplot . t)
+                                                             (matlab . t)
+                                                             (plantuml . t)
+                                                             (fortran . t)
+                                                             (java . t)
+                                                             (plantuml . t)))
+#+END_SRC
+
+**** Plantuml path
+#+BEGIN_SRC emacs-lisp
+  (setq org-plantuml-jar-path plantuml-jar-path)
 #+END_SRC
 
 ** Latex preview fragments match colour
diff --git a/init.el b/init.el
index 5bf645f..e4b4fbc 100644
--- a/init.el
+++ b/init.el
@@ -37,7 +37,7 @@
  '(ede-project-directories '("c:/Users/joelg/.emacs.d"))
  '(line-number-mode nil)
  '(package-selected-packages
-   '(elscreen doom-themes csv-mode magit 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 nyan-mode latex-preview-pane helm-projectile ggtags flycheck-pos-tip flycheck-clang-analyzer company-math company-c-headers clean-aindent-mode auto-package-update)))
+   '(org elscreen doom-themes csv-mode magit 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 nyan-mode latex-preview-pane helm-projectile ggtags flycheck-pos-tip flycheck-clang-analyzer company-math company-c-headers clean-aindent-mode auto-package-update)))
 (custom-set-faces
  ;; custom-set-faces was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.

--
Gitblit v1.9.3