From d4831b52d94a87578f05985630688b123c564c03 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 19 Feb 2017 13:38:08 +0100 Subject: Emacs: Remove perspective It seemed to slow things down a lot, particularly on macOS. I seem to be able to get on fine without it, as well. --- tag-emacs/emacs.d/init.org | 40 +++++++--------------------------------- 1 file changed, 7 insertions(+), 33 deletions(-) (limited to 'tag-emacs/emacs.d/init.org') diff --git a/tag-emacs/emacs.d/init.org b/tag-emacs/emacs.d/init.org index 685d9f85..8408f0a1 100644 --- a/tag-emacs/emacs.d/init.org +++ b/tag-emacs/emacs.d/init.org @@ -403,7 +403,7 @@ configuration with crux.el #+BEGIN_SRC emacs-lisp (defun switch-to-dotfiles () (interactive) - (projectile-persp-switch-project (expand-file-name "dotfiles" home-project-directory))) + (projectile-switch-project-by-name (expand-file-name "dotfiles" home-project-directory))) #+END_SRC ** The Silver Searcher @@ -435,7 +435,9 @@ based upon some folder conventions I use. #+BEGIN_SRC emacs-lisp (use-package projectile - :bind (("C-c C-f" . projectile-find-file) + :bind (("s-p" . projectile-switch-project) + ("C-x b" . projectile-switch-to-buffer) + ("C-c C-f" . projectile-find-file) ("s-x s-f" . projectile-find-file) ("C-x g" . projectile-vc) ("s-G" . projectile-vc)) @@ -484,24 +486,6 @@ based upon some folder conventions I use. projectile-completion-system 'ivy))) #+END_SRC -** perspective - -This package makes buffer-switching inside of projects make sense, by -filtering the candidates to those within the project. For it to work, -it needs hooking into projectile and a key bound to switch between projects. - -#+BEGIN_SRC emacs-lisp -(use-package perspective - :bind* ("s-p" . projectile-persp-switch-project) - :demand t - :config (progn - (setq persp-show-modestring t) - (persp-mode))) - -(use-package persp-projectile - :ensure t) -#+END_SRC - ** vc This is nice for some things that magit doesn’t do, and for those rare @@ -834,8 +818,7 @@ This is a frontend to the GPG-powered =pass= program. * Buffers ** Ibuffer -Ibuffer is quite nice for listing all buffers. I don’t use it very -often though, as it doesn’t really work with perspectives. +Ibuffer is quite nice for listing all buffers. #+BEGIN_SRC emacs-lisp (use-package ibuffer @@ -1339,7 +1322,6 @@ replacement for helm so far. (bind-key "