diff options
author | Franck Cuny <franck.cuny@gmail.com> | 2018-04-08 16:13:12 -0700 |
---|---|---|
committer | Franck Cuny <franck.cuny@gmail.com> | 2018-04-08 16:13:12 -0700 |
commit | 4007ca81e0105119c8ed754e654a731934f5154c (patch) | |
tree | 41ba9d60f64866c8a098e631e8e32bf4249931fa /emacs.d/modules/module-project.el | |
parent | [emacs] fix some path after directories reorg (diff) | |
download | emacs.d-4007ca81e0105119c8ed754e654a731934f5154c.tar.gz |
[emacs] Large refactoring.
At first I wanted to add support for java, and then I realized that maintaining a giant file with all the packages was not working as I was expected. The configuration is broken down to multiple files now, with each major mode in a separate file, and the main modules in their own too. This should make it easier to maintain and organize.
Diffstat (limited to 'emacs.d/modules/module-project.el')
-rw-r--r-- | emacs.d/modules/module-project.el | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/emacs.d/modules/module-project.el b/emacs.d/modules/module-project.el new file mode 100644 index 0000000..893f135 --- /dev/null +++ b/emacs.d/modules/module-project.el @@ -0,0 +1,30 @@ +(require 'config-package) + +(use-package projectile + :diminish projectile-mode + :bind-keymap ("C-c p" . projectile-command-map) + + :init + (add-hook 'after-init-hook #'projectile-mode) + + :config + (setq projectile-switch-project-action 'projectile-dired + projectile-enable-caching t + projectile-completion-system 'ivy + projectile-known-projects-file (expand-file-name "var/projectile-bookmarks.eld" user-emacs-directory) + projectile-cache-file (expand-file-name "var/projectile.cache" user-emacs-directory)) + (add-to-list 'projectile-globally-ignored-files ".DS_Store")) + +(use-package ag + :commands (counsel-ag ag) + :bind (:map ag-mode-map + ("p" . compilation-previous-error) + ("n" . compilation-next-error) + ("N" . compilation-next-file) + ("P" . compilation-previous-file)) + :config + (setq ag-highlight-search t + ag-reuse-buffers t + ag-reuse-window t)) + +(provide 'module-project) |