Globally enabling the mode also affects buffers subsequently created by visiting files, and buffers that use a major mode other than Fundamental mode but it does not detect the creation of a new buffer in Fundamental mode.
The way that projectile-global-mode behaved before is that when turned on the keybindings are available from any buffer, but now I can't get it to work when in the splash screen (which is in Fundamental mode) after emacs starts, like Menno Smits points out in the comment.įor the sake of curiosity, I git bisect the source code history of projectile to find out which commit introduces this behavior change and finally get this, which no longer uses define-globalized-minor-mode to define the global minor mode but defines the projectile-mode as global by default with (define-minor-mode xxxxxx :global t), the difference could be told from the doc of define-globalized-minor-mode I think: I encountered a similar problem recently that projectile-global-mode doesn't work as how it worked before after I had pinned the projectile package to the melpa stable archive, which was of the version v0.14.0. After switching buffer, I can switch project.
If do M-x, I don't get project-switch-project, rather I get project-switch-to-buffer.
I have installed Emacs using following commands: brew install emacs -with-cocoaĪnd, very first time (when I launch emacs). (message "%s" "Emacs is now refreshing its package database.")Ĭ-h v output for projectile-keymap-prefix as below: projectile-keymap-prefix is a variable defined in `projectile.el'. check for new packages (package versions) if not all packages are installed, check one by one and install the missing ones. When (not (package-installed-p p)) do (return nil) method to check if all packages are installed ) "a list of packages to ensure are installed at launch.") When I do C-c p, it says: C-c p is undefinedįollowing is my ~/.emacs file. counsel-up-directory )) :init ( add-to-list 'ivy-ignore-buffers "^#" ) ( add-to-list 'ivy-ignore-buffers "^\\*irc\\-" ) ( with-eval-after-load 'evil-leader ( evil-leader/set-key "bb" 'ivy-switch-buffer "br" 'counsel-recentf "dv" 'counsel-describe-variable "df" 'counsel-describe-function "/" 'counsel-ag ))) ( use-package counsel-projectile :after ( counsel projectile ) :diminish counsel-projectile-mode :straight t :preface ( eval-when-compile ( declare-function counsel-projectile-mode nil )) :commands ( counsel-projectile-ag counsel-projectile-find-file counsel-projectile-switch-project counsel-projectile-switch-to-buffer ) :init ( with-eval-after-load 'evil-leader ( evil-leader/set-key "p/" 'counsel-projectile-ag "pf" 'counsel-projectile-find-file "pp" 'counsel-projectile-switch-project "pb" 'counsel-projectile-switch-to-buffer )) :config ( counsel-projectile-mode t )) ( use-package ivy-prescient :after ( ivy prescient ) :straight t :preface ( eval-when-compile ( declare-function ivy-prescient-mode nil )) :config ( ivy-prescient-mode t )) ( use-package ivy-rich :straight t :after ( ivy counsel ) :preface ( eval-when-compile ( defvar ivy-rich-path-style ) ( declare-function ivy-rich-mode nil )) :init ( setq ivy-rich-path-style 'abbrev ) :config ( ivy-rich-mode t )) ( use-package prescient :straight t :preface ( eval-when-compile ( declare-function prescient-persist-mode nil )) :config ( prescient-persist-mode t )) ( use-package swiper :after ivy :straight t :bind (( "\C-s". ivy-previous-line-or-history ) :map counsel-find-file-map ( "". counsel-minibuffer-history ) :map ivy-minibuffer-map ( "". counsel-M-x ) :map minibuffer-local-map ( "C-r". Keeping files out of git repository should not be confused with listing project files using projectile. I do not want projectile to get the list of files to ignore from.
Note: need to be included before counsel/swiper (same repo) ( use-package ivy :diminish ivy-mode :straight t :preface ( eval-when-compile ( declare-function ivy-mode nil )) :init ( setq ivy-use-virtual-buffers t ) :config ( ivy-mode t )) ( use-package counsel :after ivy :demand t :straight t :bind (( "C-c C-r". The problem with this is when I use projectile-find-file, these files are not listed since they are in.