Browse Source

Add some ivy configs

master
10sr 5 years ago
parent
commit
8ade4bac39
Signed by: 10sr GPG Key ID: C384BB17CBB19347
1 changed files with 16 additions and 0 deletions
  1. +16
    -0
      emacs.el

+ 16
- 0
emacs.el View File

@@ -2353,6 +2353,22 @@ Any output will be written to current buffer."
(define-key ctl-x-map "R" 'remember) (define-key ctl-x-map "R" 'remember)




;; ivy

(when (require 'counsel nil t)
(defvar ivy-re-builders-alist)
(set-variable 'ivy-re-builders-alist
'((t . ivy--regex-fuzzy)))
;; (counsel-mode 1)
;; counsel-fzf executes fzf -f QUERY for each input
;; (define-key ctl-x-map "f"
;; (lambda ()
;; (interactive
;; (let ((process-environment (cl-copy-list process-environment)))
;; (setenv "FZF_DEFAULT_COMMAND" nil)
;; (counsel-fzf)))))
)

;; Local Variables: ;; Local Variables:
;; flycheck-disabled-checkers: (emacs-lisp-checkdoc) ;; flycheck-disabled-checkers: (emacs-lisp-checkdoc)
;; flycheck-checker: emacs-lisp ;; flycheck-checker: emacs-lisp


Loading…
Cancel
Save