From 717ec9d388efb79e3abe30dd7c681c00d47bb3b8 Mon Sep 17 00:00:00 2001 From: laurensmiers Date: Sun, 11 Nov 2018 21:27:30 +0100 Subject: [PATCH] Add (helm-)projectile - Remove clashing keymaps with helm-gtags --- config.org | 34 ++++++++++++++++++++++++++++++++-- 1 file changed, 32 insertions(+), 2 deletions(-) diff --git a/config.org b/config.org index 82a2122..df16d30 100644 --- a/config.org +++ b/config.org @@ -571,6 +571,21 @@ When we use windows as our bootloader, we have to setup some things first: To be fair, I didn't test this in a while... +* Projectile + +Projectile is a project management tool, full details on: +https://github.com/bbatsov/projectile + +#+BEGIN_SRC emacs-lisp +(use-package projectile + :ensure t + :config + (setq projectile-indexing-method 'alien) + (projectile-global-mode) + (define-key projectile-mode-map (kbd "C-c p") 'projectile-command-map) +) +#+END_SRC + * Helm ** General config @@ -641,8 +656,6 @@ To be fair, I didn't test this in a while... :bind ( "M-." . helm-gtags-find-tag-from-here) ( "M-," . helm-gtags-pop-stack) - ( "C-c f" . helm-gtags-find-files) - ( "C-c p" . helm-gtags-parse-file) :config (add-hook 'c-mode-hook 'helm-gtags-mode) (add-hook 'c++-mode-hook 'helm-gtags-mode) @@ -654,6 +667,23 @@ To be fair, I didn't test this in a while... ) #+END_SRC +** Helm-projectile + +Helm interface to projectile: +https://github.com/bbatsov/helm-projectile + +#+BEGIN_SRC emacs-lisp +(use-package helm-projectile + :ensure t + :init + (setq helm-projectile-fuzzy-match t) + (setq projectile-completion-system 'helm) + (setq projectile-switch-project-action 'helm-projectile) + :config + (helm-projectile-on) +) +#+END_SRC + * Mutliple cursors https://github.com/magnars/multiple-cursors.el