]> git.rkrishnan.org Git - .emacs.d.git/commitdiff
remove ghc-mod, other misc changes
authorRamakrishnan Muthukrishnan <ramakrmu@insiemenetworks.com>
Tue, 16 May 2017 12:54:09 +0000 (18:24 +0530)
committerRamakrishnan Muthukrishnan <ramakrmu@insiemenetworks.com>
Tue, 16 May 2017 12:54:09 +0000 (18:24 +0530)
Makefile
init.el
packages.el

index 25ef0ab630edcd0dde8e1302a7c5c3ea1002a5cf..d2c78ba55938cefa0aa91b9696ac9f6a67849184 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,15 @@
 emacs ?= emacs
 
+inst:
+       # install hlint ghc-mod etc.. (assumption is that ghc and cabal-install
+       # are already installed.
+       cabal install hlint hindent alex happy
+
 upgrade:
+       cabal update
        $(emacs) -batch -l packages.el
 
 run:
        $(emacs) -Q -l init.el
 
-up: upgrade run
+up: upgrade inst run
diff --git a/init.el b/init.el
index 3b6b762b7dc74264928ef249112ca2e2ed441b02..74dcfe3da945c89d73fd47b4acccb29e1ccebd24 100644 (file)
--- a/init.el
+++ b/init.el
@@ -3,9 +3,6 @@
 ;; y-or-n instead of yes-or-no
 (defalias 'yes-or-no-p 'y-or-n-p)
 
-;; theme
-(require 'color-theme-sanityinc-tomorrow)
-
 ;; Don't show startup msg, don't store tilde files
 (setq make-backup-files nil)
 (setq initial-scratch-message "")
 ;; sign all emails
 (add-hook 'message-setup-hook 'mml-secure-message-sign-pgp)
 
-(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.
- )
-
 ;; company mode for auto completion
 (add-hook 'after-init-hook 'global-company-mode)
 
 ;; key shortcut for org-agenda
 (global-set-key (kbd "C-c a") 'org-agenda)
 
+(custom-set-variables
+ ;; custom-set-variables 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.
+ '(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))))
+(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.
+ )
index 506bd88b6647a089f78b0ac957177e1aaebaa0ea..78b8458dd66f69e1adcd6b76dcb009b8e4fa9344 100644 (file)
@@ -23,7 +23,6 @@
                      rust-mode
                      haskell-mode
                      hindent
-                     ghc
                      restclient
                      tangotango-theme
                      fill-column-indicator
                      magit
                      ledger-mode
                      company
-                     company-ghc
                      company-racer
                      markdown-mode
                      flycheck
                      flycheck-rust
                      flycheck-haskell
-                     racer
-                     color-theme-sanityinc-tomorrow))
+                     racer))
 
 ; install the missing packages
-(dolist (package package-list)
-  (unless (package-installed-p package)
-    (package-install package)))
+(defun install-all-packages ()
+  (dolist (package package-list)
+    (unless (package-installed-p package)
+      (package-install package))))
 
 ;; upgrade installed
-(save-window-excursion
-  (package-list-packages t)
-  (package-menu-mark-upgrades)
-  (package-menu-execute t))
+(defun upgrade-all-packages ()
+  (save-window-excursion
+    (package-list-packages t)
+    (package-menu-mark-upgrades)
+    (package-menu-execute t)))
+