Browse Source

add function my-auto-install-package

pull/1/head
10sr 11 years ago
parent
commit
c8cdb9442b
1 changed files with 12 additions and 3 deletions
  1. +12
    -3
      emacs.el

+ 12
- 3
emacs.el View File

@@ -79,12 +79,21 @@ otherwise the path where the library installed."
t) t)
(add-to-list 'package-archives (add-to-list 'package-archives
'("marmalade" . "http://marmalade-repo.org/packages/")) '("marmalade" . "http://marmalade-repo.org/packages/"))
;; (package-initialize)
(package-initialize)
;; (package-refresh-contents) ;; (package-refresh-contents)
) )


;; http://qiita.com/items/5f1cd86e2522fd3384a0
;; http://blog.64p.org/entry/2013/05/01/233306
(defun my-auto-install-package ()
"Install packages semi-automatically."
(interactive)
(mapc (lambda (pkg)
(or (package-installed-p pkg)
(locate-library (symbol-name pkg))
(package-install pkg)))
'(
markdown-mode
;; ack
)))




;; (lazy-load-eval 'sudoku) ;; (lazy-load-eval 'sudoku)


Loading…
Cancel
Save