]> git.rkrishnan.org Git - .emacs.d.git/commitdiff
some misc packaging fixes
authorRamakrishnan Muthukrishnan <ram@rkrishnan.org>
Wed, 9 Dec 2015 10:01:59 +0000 (15:31 +0530)
committerRamakrishnan Muthukrishnan <ram@rkrishnan.org>
Wed, 9 Dec 2015 10:01:59 +0000 (15:31 +0530)
init.el
packages.el

diff --git a/init.el b/init.el
index a054cfb36a0db0867400ceeb21df176afdbb31a9..3a0cf34267924e188444af9891972194b15382c2 100644 (file)
--- a/init.el
+++ b/init.el
@@ -1,3 +1,4 @@
+(package-initialize)
 (show-paren-mode 1)
 ;; y-or-n instead of yes-or-no
 (defalias 'yes-or-no-p 'y-or-n-p)
@@ -28,6 +29,7 @@
  ;; If there is more than one, they won't work right.
  '(initial-frame-alist (quote ((fullscreen . maximized))))
  '(send-mail-function (quote smtpmail-send-it)))
+
 ;; Who use the bar to scroll?
 (when (display-graphic-p)
   (progn
@@ -77,8 +79,8 @@
 (add-hook 'haskell-mode-hook 'turn-on-haskell-doc-mode)
 
 ;; haskell mode
-(require 'haskell-interactive-mode)
 (require 'haskell-process)
+(require 'haskell-interactive-mode)
 (add-hook 'haskell-mode-hook 'interactive-haskell-mode)
 
 (custom-set-variables
 ;; addressbook
 (require 'notmuch-address)
 (setq notmuch-address-command "/usr/bin/notmuch-addrlookup")
-(notmuch-address-message-insinuate)
+;;(notmuch-address-message-insinuate)
 
 (require 'smtpmail)
 (setq message-send-mail-function 'smtpmail-send-it)
index 0ca26371fe5d89a40f39471c35734e34374cf042..a98100a5df0dc9fc8753e0d72e59fd066e2972d6 100644 (file)
@@ -1,14 +1,22 @@
 ; my-packages.el
 (require 'package)
+
+(defconst emacs-d
+  (file-name-directory
+   (file-chase-links load-file-name))
+  "The giant turtle on which the world rests.")
+
+(setq package-user-dir
+      (expand-file-name "elpa" emacs-d))
+
 (add-to-list 'package-archives
              '("melpa" . "http://melpa.milkbox.net/packages/") t)
 (add-to-list 'package-archives
-             '("marmalade" . "http://marmalade-repo.org/packages/") t)
+             '("gnu" . "http://elpa.gnu.org/packages/") t)
 (package-initialize)
 
 ; fetch the list of packages available
-(unless package-archive-contents
-  (package-refresh-contents))
+(package-refresh-contents)
 
 ;; make sure my list of packages are installed
 (setq package-list '(go-mode
@@ -25,7 +33,9 @@
                      racket-mode
                      auto-complete
                      magit
-                     ledger-mode))
+                     ledger-mode
+                     company
+                     company-ghc))
 
 ; install the missing packages
 (dolist (package package-list)