move stuff to load.d
This commit is contained in:
parent
82a439cd2f
commit
6a76743ad5
69
init.el
69
init.el
@ -43,8 +43,6 @@
|
|||||||
(setq custom-file "~/.emacs.d/custom.el")
|
(setq custom-file "~/.emacs.d/custom.el")
|
||||||
(when (file-exists-p custom-file) (load custom-file))
|
(when (file-exists-p custom-file) (load custom-file))
|
||||||
|
|
||||||
(add-to-list 'load-path "~/.emacs.d/lisp")
|
|
||||||
|
|
||||||
;; =============================================================================
|
;; =============================================================================
|
||||||
;; ELPA/package.el/MELPA
|
;; ELPA/package.el/MELPA
|
||||||
;; =============================================================================
|
;; =============================================================================
|
||||||
@ -70,7 +68,11 @@
|
|||||||
(package-initialize)
|
(package-initialize)
|
||||||
(ensure-packages-installed '(epl use-package))
|
(ensure-packages-installed '(epl use-package))
|
||||||
(require 'use-package)
|
(require 'use-package)
|
||||||
(use-package benchmark-init :ensure t)
|
|
||||||
|
(use-package benchmark-init
|
||||||
|
:ensure t
|
||||||
|
;; Set do-benchmark in custom.el
|
||||||
|
:if (and (boundp 'do-benchmark) do-benchmark))
|
||||||
|
|
||||||
;; =============================================================================
|
;; =============================================================================
|
||||||
;; Config Free Packages
|
;; Config Free Packages
|
||||||
@ -84,7 +86,7 @@
|
|||||||
(defvar packages-eager
|
(defvar packages-eager
|
||||||
'(popup auto-complete yasnippet cl-lib exec-path-from-shell paradox slime
|
'(popup auto-complete yasnippet cl-lib exec-path-from-shell paradox slime
|
||||||
xclip dired+ ctags ctags-update aggressive-indent imenu+ neotree diminish
|
xclip dired+ ctags ctags-update aggressive-indent imenu+ neotree diminish
|
||||||
gist))
|
gist load-dir))
|
||||||
|
|
||||||
(use-packages packages-eager)
|
(use-packages packages-eager)
|
||||||
|
|
||||||
@ -437,7 +439,10 @@ buffer is not visiting a file."
|
|||||||
(use-package helm
|
(use-package helm
|
||||||
:ensure t
|
:ensure t
|
||||||
:commands helm-mode
|
:commands helm-mode
|
||||||
:bind (("M-y" . helm-show-kill-ring))
|
:bind (("M-y" . helm-show-kill-ring)
|
||||||
|
("M-x" . helm-M-x))
|
||||||
|
;; :idle (helm-mode)
|
||||||
|
;; :idle-priority 1
|
||||||
:init
|
:init
|
||||||
(progn
|
(progn
|
||||||
(use-package helm-ag :ensure t :defer t))
|
(use-package helm-ag :ensure t :defer t))
|
||||||
@ -448,11 +453,14 @@ buffer is not visiting a file."
|
|||||||
|
|
||||||
(use-package projectile
|
(use-package projectile
|
||||||
:ensure t
|
:ensure t
|
||||||
:defer t
|
:commands projectile-global-mode
|
||||||
|
:idle (projectile-global-mode)
|
||||||
|
:idle-priority 1
|
||||||
:config
|
:config
|
||||||
(progn
|
(progn
|
||||||
(setq projectile-enable-caching t)
|
(message "Setting up projectile.")
|
||||||
(projectile-global-mode)
|
(projectile-global-mode)
|
||||||
|
(setq projectile-enable-caching t)
|
||||||
(setq projectile-completion-system 'helm)
|
(setq projectile-completion-system 'helm)
|
||||||
(helm-projectile-on)
|
(helm-projectile-on)
|
||||||
(diminish 'projectile-mode))
|
(diminish 'projectile-mode))
|
||||||
@ -461,24 +469,7 @@ buffer is not visiting a file."
|
|||||||
(progn
|
(progn
|
||||||
(use-package persp-projectile
|
(use-package persp-projectile
|
||||||
:ensure t
|
:ensure t
|
||||||
:defer t)
|
:commands persp-projectile)
|
||||||
(use-package ido-vertical-mode
|
|
||||||
:ensure t
|
|
||||||
:config (ido-vertical-mode 1))
|
|
||||||
(use-package flx
|
|
||||||
:ensure t
|
|
||||||
:commands (smex find-file)
|
|
||||||
:config
|
|
||||||
(progn
|
|
||||||
;; disable ido faces to see flx highlights.
|
|
||||||
(flx-ido-mode 1)
|
|
||||||
;; This makes flx-ido much faster.
|
|
||||||
(setq gc-cons-threshold 20000000)
|
|
||||||
(setq ido-use-faces nil))
|
|
||||||
:init
|
|
||||||
(progn
|
|
||||||
(use-package flx-ido
|
|
||||||
:ensure t)))
|
|
||||||
(use-package helm-projectile
|
(use-package helm-projectile
|
||||||
:ensure t
|
:ensure t
|
||||||
:commands (helm-projectile-on)
|
:commands (helm-projectile-on)
|
||||||
@ -486,19 +477,37 @@ buffer is not visiting a file."
|
|||||||
|
|
||||||
(use-package smex
|
(use-package smex
|
||||||
:ensure t
|
:ensure t
|
||||||
|
:commands smex
|
||||||
|
;; This is here because smex feels like part of ido
|
||||||
:bind ("M-x" . smex))
|
:bind ("M-x" . smex))
|
||||||
|
|
||||||
(use-package ido
|
(use-package ido
|
||||||
:ensure t
|
:ensure t
|
||||||
|
:commands ido-mode
|
||||||
:config
|
:config
|
||||||
(progn
|
(progn
|
||||||
|
(ido-everywhere 1)
|
||||||
|
(setq ido-enable-flex-matching t)
|
||||||
|
(use-package flx :ensure t)
|
||||||
|
(use-package flx-ido
|
||||||
|
:commands flx-ido-mode
|
||||||
|
:ensure t
|
||||||
|
:init (flx-ido-mode 1)
|
||||||
|
:config
|
||||||
|
(progn
|
||||||
|
;; disable ido faces to see flx highlights.
|
||||||
|
;; This makes flx-ido much faster.
|
||||||
|
(setq gc-cons-threshold 20000000)
|
||||||
|
(setq ido-use-faces nil)))
|
||||||
(use-package ido-ubiquitous
|
(use-package ido-ubiquitous
|
||||||
:ensure t
|
:ensure t
|
||||||
:disabled t
|
:commands (ido-ubiquitous-mode))
|
||||||
:config (ido-ubiquitous-mode))
|
(use-package ido-vertical-mode
|
||||||
(ido-mode t)
|
:ensure t
|
||||||
(ido-everywhere 1)
|
:config (ido-vertical-mode 1))
|
||||||
(setq ido-enable-flex-matching t)))
|
(use-package flx-ido :ensure t)))
|
||||||
|
|
||||||
|
(if (and (boundp 'use-ido) use-ido) (ido-mode))
|
||||||
|
|
||||||
;; =============================================================================
|
;; =============================================================================
|
||||||
;; elisp
|
;; elisp
|
||||||
|
Loading…
Reference in New Issue
Block a user