From 78472b0b041329c72df2dd501f4357894f7970cc Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Thu, 1 Oct 2020 01:47:58 +0100 Subject: (Emacs)-remove a ton of switch-buffer advice Stupid idea, just gets in my way. --- Emacs/.config/emacs/config.org | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org index 3f7321d..0c7e630 100644 --- a/Emacs/.config/emacs/config.org +++ b/Emacs/.config/emacs/config.org @@ -494,14 +494,8 @@ to as a fully fledged completion framework. completion-styles '(flex partial-completion intials emacs22)) (setq-default ido-enable-flex-matching t ido-enable-dot-prefix t - ido-enable-regexp nil) + ido-enable-regexp nil) :config - (add-to-list - 'after-make-frame-functions - #'(lambda (frame) (interactive) - (with-selected-frame frame - (ido-switch-buffer)))) - (ido-mode) (ido-everywhere)) #+end_src @@ -610,15 +604,6 @@ package comes in. :general (leader "st" #'counsel-etags-find-tag)) #+end_src -**** Prompt buffer switch -Essentially add advice to the window split functions or frame creation -functions so that they run ivy-switch-buffer once they're finished. -#+begin_src emacs-lisp -(with-eval-after-load "ivy" - (with-eval-after-load "evil" - (advice-add #'evil-window-vsplit :after #'ivy-switch-buffer) - (advice-add #'evil-window-split :after #'ivy-switch-buffer))) -#+end_src *** Company Company is the auto complete system I use. I don't like having heavy setups for company as it only makes it slower to use. In this case, -- cgit v1.2.3-13-gbd6f