make init.el less complicated/sophisticated. boostrapping to get
org-mode should not really be necessary since org is included in emacs.
This commit is contained in:
		@@ -1,21 +1,3 @@
 | 
			
		||||
(require 'package)
 | 
			
		||||
 | 
			
		||||
(add-to-list 'package-archives '("org" . "http://orgmode.org/elpa/") t)
 | 
			
		||||
 | 
			
		||||
(defun ensure-packages-installed (packages)
 | 
			
		||||
  (unless package-archive-contents
 | 
			
		||||
    (package-refresh-contents))
 | 
			
		||||
  (mapcar
 | 
			
		||||
   (lambda (package)
 | 
			
		||||
     (if (package-installed-p package)
 | 
			
		||||
         package
 | 
			
		||||
       (progn (message (format "Installing package %s." package))
 | 
			
		||||
              (package-install package))))
 | 
			
		||||
   packages))
 | 
			
		||||
 | 
			
		||||
(package-initialize)
 | 
			
		||||
(ensure-packages-installed '(org-plus-contrib))
 | 
			
		||||
 | 
			
		||||
(setq custom-file "~/.emacs.d/custom-before.el")
 | 
			
		||||
(when (file-exists-p custom-file) (load custom-file))
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user