From 010ab8107dd638a30b09ccb55f7cac705395c608 Mon Sep 17 00:00:00 2001
From: Ramakrishnan Muthukrishnan <ramakrmu@insiemenetworks.com>
Date: Thu, 18 May 2017 17:37:44 +0530
Subject: [PATCH] add dumb-jump mode

---
 init.el     |  4 +++-
 packages.el | 19 +++++++++----------
 2 files changed, 12 insertions(+), 11 deletions(-)

diff --git a/init.el b/init.el
index 74dcfe3..638d24d 100644
--- a/init.el
+++ b/init.el
@@ -259,10 +259,12 @@
  ;; If there is more than one, they won't work right.
  '(package-selected-packages
    (quote
-    (tangotango-theme restclient railscasts-theme racket-mode racer paredit notmuch markdown-mode magit leuven-theme ledger-mode hindent go-mode flycheck-rust flycheck-haskell fill-column-indicator company-racer color-theme-sanityinc-tomorrow auto-complete))))
+    (dumb-jump tangotango-theme restclient railscasts-theme racket-mode racer paredit notmuch markdown-mode magit leuven-theme ledger-mode hindent go-mode flycheck-rust flycheck-haskell fill-column-indicator company-racer color-theme-sanityinc-tomorrow auto-complete))))
 (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.
  )
+
+(dumb-jump-mode)
diff --git a/packages.el b/packages.el
index 78b8458..b486b01 100644
--- a/packages.el
+++ b/packages.el
@@ -40,18 +40,17 @@
                      flycheck
                      flycheck-rust
                      flycheck-haskell
-                     racer))
+                     racer
+                     dumb-jump))
 
 ; install the missing packages
-(defun install-all-packages ()
-  (dolist (package package-list)
-    (unless (package-installed-p package)
-      (package-install package))))
+(dolist (package package-list)
+  (unless (package-installed-p package)
+    (package-install package)))
 
 ;; upgrade installed
-(defun upgrade-all-packages ()
-  (save-window-excursion
-    (package-list-packages t)
-    (package-menu-mark-upgrades)
-    (package-menu-execute t)))
+(save-window-excursion
+  (package-list-packages t)
+  (package-menu-mark-upgrades)
+  (package-menu-execute t))
 
-- 
2.45.2