Commits

Alain Leufroy committed ea178fe

add external packages dependencies to auto-install

Add packages that are required by this setting but not automatically installed.

I've alse disabled some useless configuration for which I've troubles
to install dependencies.

  • Participants
  • Parent commits 85bd3dd

Comments (0)

Files changed (2)

File appearance.el

   (blink-cursor-mode -1))
 
 ;; Make zooming affect frame instead of buffers
-(require 'zoom-frm)
+;; (require 'zoom-frm)
 
 ;; Unclutter the modeline
 (require 'diminish)
 ;; Set path to dependencies
 (setq site-lisp-dir
       (expand-file-name "site-lisp" user-emacs-directory))
+(setq elpa-dir
+      (expand-file-name "elpa" user-emacs-directory))
+
 
 ;; Set up load path
 (add-to-list 'load-path user-emacs-directory)
 (add-to-list 'load-path site-lisp-dir)
+(add-to-list 'load-path elpa-dir)
 
 ;; Keep emacs Custom-settings in separate file
 (setq custom-file (expand-file-name "custom.el" user-emacs-directory))
   (when (file-directory-p project)
     (add-to-list 'load-path project)))
 
+;; Add external projects to load path
+(dolist (project (directory-files elpa-dir t "\\w+"))
+  (when (file-directory-p project)
+    (add-to-list 'load-path project)))
+
 ;; Write backup files to own directory
 (setq backup-directory-alist
       `(("." . ,(expand-file-name
 ;; Install extensions if they're missing
 (defun init--install-packages ()
   (packages-install
-   '(magit
+   '(
+     ace-jump-mode
+     dired-details
+     jade-mode
+     eproject
+     js2-mode
+     shell-command
+     annoying-arrows-mode
+     evil
+     js2-refactor
+     simplezen
+     apache-mode
+     skewer-mode
+     bash-completion
+     feature-mode
+     markdown-mode
+     fill-column-indicator
+     mouse-slider-mode
+     buster-mode
+     ;; mu4e
+     smooth-scrolling
+     tagedit
+     tern
+     clj-refactor
+     fold-this
+     ;; oppdrag-mode
+     top-mode
+     crappy-jsp-mode
+     frame-cmds
+     undo-tree
+     dash
+     frame-fns
+     php-mode
+     groovy-mode
+     ;; project-archetypes
+     yaml-mode
+     delsel
+     hardcore-mode
+     puppet-mode
+     zoom-frm
+     diminish
+     rhtml-mode
+     magit
      paredit
      move-text
      god-mode
      flx
      flx-ido
      css-eldoc
+     angular-snippets
+     buster-snippets
+     datomic-snippets
      yasnippet
+     perspective
+     find-file-in-project
+     multiple-cursors
+     expand-region
+     change-inner
+     multifiles
+     browse-kill-ring
+     smex
+     ido-ubiquitous
+     jump-char
+     wgrep
+     smart-forward
      smartparens
      ido-vertical-mode
      ido-at-point
      git-commit-mode
      gitconfig-mode
      gitignore-mode
-     clojure-mode
-     nrepl)))
+     ;; clojure-mode
+     ;; nrepl
+)))
 
 (condition-case nil
     (init--install-packages)
 ;; Language specific setup files
 (eval-after-load 'js2-mode '(require 'setup-js2-mode))
 (eval-after-load 'ruby-mode '(require 'setup-ruby-mode))
-(eval-after-load 'clojure-mode '(require 'setup-clojure-mode))
+;; (eval-after-load 'clojure-mode '(require 'setup-clojure-mode))
 (eval-after-load 'markdown-mode '(require 'setup-markdown-mode))
 
 ;; Load stuff on demand