helm, projectile, flx-ido and helm-projectile.
This commit is contained in:
parent
d56004fd91
commit
819c3eb8ae
30
init.el
30
init.el
@ -39,7 +39,8 @@
|
|||||||
'("melpa" . "http://melpa.org/packages/") t)
|
'("melpa" . "http://melpa.org/packages/") t)
|
||||||
(package-initialize)
|
(package-initialize)
|
||||||
|
|
||||||
(defvar my-packages '(color-theme cl-lib ctags ctags-update flycheck ensime
|
(defvar my-packages
|
||||||
|
'(cl-lib ctags ctags-update flycheck ensime
|
||||||
multiple-cursors latex-preview-pane pytest epl
|
multiple-cursors latex-preview-pane pytest epl
|
||||||
starter-kit-bindings zenburn-theme jedi tern
|
starter-kit-bindings zenburn-theme jedi tern
|
||||||
starter-kit magit ido-ubiquitous monokai-theme
|
starter-kit magit ido-ubiquitous monokai-theme
|
||||||
@ -49,9 +50,9 @@
|
|||||||
gitconfig-mode starter-kit-ruby mo-git-blame
|
gitconfig-mode starter-kit-ruby mo-git-blame
|
||||||
auto-complete project-root popup web-beautify
|
auto-complete project-root popup web-beautify
|
||||||
js2-mode js3-mode sphinx-doc ansi-color pytest
|
js2-mode js3-mode sphinx-doc ansi-color pytest
|
||||||
exec-path-from-shell base16-theme slime
|
exec-path-from-shell base16-theme slime flx-ido
|
||||||
string-inflection yasnippet yaml-mode helm)
|
string-inflection yasnippet yaml-mode projectile
|
||||||
"Packages that must be installed at launch.")
|
helm helm-projectile))
|
||||||
|
|
||||||
(defun ensure-package-installed (packages)
|
(defun ensure-package-installed (packages)
|
||||||
"Assure every package is installed, ask for installation if it’s not.
|
"Assure every package is installed, ask for installation if it’s not.
|
||||||
@ -106,10 +107,20 @@ Return a list of installed packages or nil for every package not installed."
|
|||||||
|
|
||||||
;;(set-face-attribute 'default nil :height 80)
|
;;(set-face-attribute 'default nil :height 80)
|
||||||
|
|
||||||
|
(require 'helm-config)
|
||||||
|
(helm-mode 1)
|
||||||
|
|
||||||
;; Enable ido mode.
|
;; Enable ido mode.
|
||||||
(require 'ido)
|
(require 'ido)
|
||||||
|
(require 'flx-ido)
|
||||||
(ido-mode t)
|
(ido-mode t)
|
||||||
|
(ido-everywhere 1)
|
||||||
|
(flx-ido-mode 1)
|
||||||
(setq ido-enable-flex-matching t)
|
(setq ido-enable-flex-matching t)
|
||||||
|
;; disable ido faces to see flx highlights.
|
||||||
|
(setq ido-use-faces nil)
|
||||||
|
;; This makes flx-ido much faster.
|
||||||
|
(setq gc-cons-threshold 20000000)
|
||||||
|
|
||||||
;; Give duplicate open buffers better titles.
|
;; Give duplicate open buffers better titles.
|
||||||
(require 'uniquify)
|
(require 'uniquify)
|
||||||
@ -156,6 +167,10 @@ Return a list of installed packages or nil for every package not installed."
|
|||||||
|
|
||||||
(latex-preview-pane-enable)
|
(latex-preview-pane-enable)
|
||||||
|
|
||||||
|
;; enable-projectile
|
||||||
|
(projectile-global-mode)
|
||||||
|
(setq projectile-enable-caching t)
|
||||||
|
|
||||||
(require 'project-root)
|
(require 'project-root)
|
||||||
(setq project-roots
|
(setq project-roots
|
||||||
`(("ensisme project"
|
`(("ensisme project"
|
||||||
@ -352,8 +367,11 @@ Return a list of installed packages or nil for every package not installed."
|
|||||||
;; Appearance
|
;; Appearance
|
||||||
;; =============================================================================
|
;; =============================================================================
|
||||||
|
|
||||||
(if (and (eq system-type 'darwin) window-system)
|
(defvar my-themes '(monokai solarized-dark zenburn base16-default))
|
||||||
(load-theme 'solarized-dark t) (load-theme 'monokai t))
|
(defvar my-theme (nth (random (length my-themes)) my-themes))
|
||||||
|
(load-theme my-theme t)
|
||||||
|
|
||||||
|
|
||||||
(require 'color-theme)
|
(require 'color-theme)
|
||||||
(require 'whitespace)
|
(require 'whitespace)
|
||||||
(require 'rainbow-delimiters)
|
(require 'rainbow-delimiters)
|
||||||
|
Loading…
Reference in New Issue
Block a user