;; 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.
+ )
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)))
+