From 2fb03ec7e571944b66a625715c15a86714072ad9 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Fri, 24 Nov 2017 20:54:56 +0100 Subject: Emacs: Configure eacl (and grep) --- emacs/.emacs.d/main.el | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'emacs') diff --git a/emacs/.emacs.d/main.el b/emacs/.emacs.d/main.el index e1d6435f..268f290d 100644 --- a/emacs/.emacs.d/main.el +++ b/emacs/.emacs.d/main.el @@ -457,6 +457,24 @@ (interactive) (projectile-switch-project-by-name (car (split-string (shell-command-to-string "ghq list --full-path dotfiles"))))) +;;;;; Grep + +(use-package grep + :config (progn + (dolist (v '("node_modules" + "bower_components" + ".sass_cache" + ".cache" + ".npm")) + (add-to-list 'grep-find-ignored-directories v)) + (dolist (v '("*.min.js" + "*.bundle.js" + "*.min.css" + "*.lock" + "package-lock.json" + "*.log")) + (add-to-list 'grep-find-ignored-files v)))) + ;;;;; The Silver Searcher (use-package ag @@ -1078,6 +1096,17 @@ (use-package company-web :after company) +;;;;; EACL + +;; Auto-complete lines by grepping the project. + +(use-package eacl + :bind (("C-c " . eacl-complete-line) + ("C-c C-;" . eacl-complete-statement) + ("C-c C-\]" . eacl-complete-snippet) + ("C-c C-/" . eacl-complete-tag))) + + ;;;; Dates & Times ;;;;; Calendar -- cgit 1.4.1