-
Notifications
You must be signed in to change notification settings - Fork 8
/
packages.el
84 lines (80 loc) · 3.08 KB
/
packages.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
;; -*- coding: utf-8 -*-
;; File: packages.el --- Maintain 3rd packages by ELPA
;;
;; Author: Denny Zhang(https://www.dennyzhang.com/contact)
;; Copyright 2020, https://DennyZhang.com
;; Created:2008-10-01
;; Updated: Time-stamp: <2020-02-03 15:37:43>
;; --8<-------------------------- separator ------------------------>8--
(defun ensure-package-installed (&rest packages)
"Assure every package is installed, ask for installation if it’s not.
Return a list of installed packages or nil for every skipped package."
(mapcar
(lambda (package)
;; (package-installed-p 'evil)
(if (package-installed-p package)
nil
(package-install package)
))
packages))
;; --8<-------------------------- separator ------------------------>8--
;; activate installed packages
(package-initialize)
(setq package-archives '(("ELPA" . "http://tromey.com/elpa/")
("gnu" . "http://elpa.gnu.org/packages/")
("melpa" . "http://melpa.milkbox.net/packages/")
("melpa stable" . "http://stable.melpa.org/packages/")
;; ("org" . "http://orgmode.org/elpa/")
("marmalade" . "http://marmalade-repo.org/packages/")))
;; make sure to have downloaded archive description.
;; Or use package-archive-contents as suggested by Nicolas Dudebout
(or (file-exists-p package-user-dir)
(package-refresh-contents))
(ensure-package-installed ;; 'iedit
'magit 'weblogger 'emms 'jabber
;;'screenshot
'org-mime
;;'org-bullets
'yasnippet 'http-post-simple 'graphviz-dot-mode
'goto-last-change 'fold-dwim
;; 'anything
'elscreen
'kill-ring-search 'hide-lines 'rainbow-mode
;; 'highlight-tail
'company
;; http://melpa.org/#/rust-mode
;; TODO enable rust
;; 'rust-mode
;; 'hide-region
'color-moccur
;; 'cursor-chg
'loccur
'cal-china-x 'boxquote 'whitespace 'highlight-symbol
'bm
;; 'frame-cmds
;; 'frame-fns
'color-theme
;;'hide-comnt
;;'dired+
'openwith 'erlang 'google-maps 'swift-mode 'htmlize
'popup
'winpoint
;;'rect-mark
'ansi 'sr-speedbar 'minimap
'flycheck 'flymake-cursor
'fringe-helper 'exec-path-from-shell
;; 'ascii
;; 'command-frequency
'sr-speedbar
;;'keywiz
'log4j-mode 'sl 'keyfreq
'csharp-mode 'actionscript-mode
;;'crontab-mode
'systemtap-mode 'go-mode 'puppet-mode 'multi-term
;; 'second-sel
;; 'journal
;; 'org-bullets
'tea-time
)
;; --8<-------------------------- separator ------------------------>8--
;; File: packages.el ends here