helm, projectile, flx-ido and helm-projectile.
This commit is contained in:
parent
d56004fd91
commit
819c3eb8ae
48
init.el
48
init.el
@ -39,19 +39,20 @@
|
|||||||
'("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
|
||||||
multiple-cursors latex-preview-pane pytest epl
|
'(cl-lib ctags ctags-update flycheck ensime
|
||||||
starter-kit-bindings zenburn-theme jedi tern
|
multiple-cursors latex-preview-pane pytest epl
|
||||||
starter-kit magit ido-ubiquitous monokai-theme
|
starter-kit-bindings zenburn-theme jedi tern
|
||||||
idle-highlight-mode find-file-in-project smex
|
starter-kit magit ido-ubiquitous monokai-theme
|
||||||
paredit inf-ruby undo-tree rainbow-delimiters
|
idle-highlight-mode find-file-in-project smex
|
||||||
solarized-theme tern-auto-complete scala-mode2
|
paredit inf-ruby undo-tree rainbow-delimiters
|
||||||
gitconfig-mode starter-kit-ruby mo-git-blame
|
solarized-theme tern-auto-complete scala-mode2
|
||||||
auto-complete project-root popup web-beautify
|
gitconfig-mode starter-kit-ruby mo-git-blame
|
||||||
js2-mode js3-mode sphinx-doc ansi-color pytest
|
auto-complete project-root popup web-beautify
|
||||||
exec-path-from-shell base16-theme slime
|
js2-mode js3-mode sphinx-doc ansi-color pytest
|
||||||
string-inflection yasnippet yaml-mode helm)
|
exec-path-from-shell base16-theme slime flx-ido
|
||||||
"Packages that must be installed at launch.")
|
string-inflection yasnippet yaml-mode projectile
|
||||||
|
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