Reformatting

This commit is contained in:
Jeremy Dormitzer 2020-02-26 10:06:23 -05:00
parent dd393d7c5e
commit a628d82b0f

View File

@ -4191,9 +4191,6 @@ An Emacs interface to MPD, the Music Player Daemon
* Ivy
An alternative minibuffer completion framework:
#+BEGIN_SRC emacs-lisp
(defun counsel-ibuffer-kill-buffer (x)
(kill-buffer (cdr x)))
(use-package counsel
:defer 0
:config
@ -4215,6 +4212,7 @@ An alternative minibuffer completion framework:
(leader-def-key "ff" #'counsel-find-file)
(leader-def-key "oc" #'counsel-org-capture)
(leader-def-key "bb" #'counsel-ibuffer)
(if (executable-find "rg")
(leader-def-key "ig" #'counsel-rg)
(leader-def-key "ig" #'counsel-grep))
@ -4227,9 +4225,13 @@ An alternative minibuffer completion framework:
:caller 'counsel-set-frame-font)))
(set-frame-font font))
(leader-def-key "iUf" #'counsel-set-frame-font)
(defun counsel-ibuffer-kill-buffer (x)
(kill-buffer (cdr x)))
(ivy-set-actions
'counsel-ibuffer
'(("k" counsel-ibuffer-kill-buffer "kill buffer")))
;; Function to open files without Ivy to avoid lag in really huge directories
(defun find-file-default (filename &optional wildcards)
(interactive
@ -4237,6 +4239,7 @@ An alternative minibuffer completion framework:
(find-file-read-args "Find file: "
(confirm-nonexistent-file-or-buffer))))
(funcall-interactively 'find-file filename wildcards))
:general
("M-x" #'counsel-M-x)
("C-x C-f" #'counsel-find-file)