diff --git a/emacs/init.el b/emacs/init.el index 0c6fa44..f1d876a 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -4,6 +4,7 @@ (tool-bar-mode -1) (scroll-bar-mode -1) (setq ring-bell-function 'ignore) +(add-to-list 'default-frame-alist '(fullscreen . maximized)) (global-display-line-numbers-mode 1) @@ -59,8 +60,9 @@ ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(package-selected-packages - '(all-the-icons counsel doom-modeline doom-themes evil evil-collection - general helpful ivy ivy-rich swiper))) + '(all-the-icons counsel counsel-projectile doom-modeline doom-themes + evil evil-collection general helpful ivy ivy-rich + projectile swiper))) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. @@ -118,8 +120,13 @@ (rune/leader-keys "f" '(:ignore t :which-key "find") "ff" '(counsel-find-file :which-key "find file") + "fF" '(counsel-git :which-key "find file git") + "fb" '(counsel-switch-buffer :which-key "find buffers") + "fg" '(counsel-ag :which-key "grep") + "fG" '(counsel-git-grep :which-key "git grep") "t" '(:ignore t :which-key "toggles") - "tt" '(counsel-load-theme :which-key "choose theme"))) + "tt" '(counsel-load-theme :which-key "choose theme") + "p" '(projectile-command-map :which-key "projectile"))) (general-define-key "C-s" 'counsel-grep-or-swiper) @@ -149,3 +156,16 @@ (evil-collection-init)) +(use-package projectile + :diminish projectile-mode + :config (projectile-mode) + :custom ((projectile-completion-system 'ivy)) + :bind-keymap + ("C-c p" . projectile-command-map) + :init + (when (file-directory-p "~/personal_workspace") + (setq projectile-project-search-path '("~/personal_workspace"))) + (setq projectile-switch-project-action #'projectile-dired)) + +(use-package counsel-projectile + :config (counsel-projectile-mode))