Browse Source

Add some configurations

master
10sr 4 years ago
parent
commit
137642cbb9
Signed by: 10sr GPG Key ID: 7BEC428194130EB2
1 changed files with 13 additions and 1 deletions
  1. +13
    -1
      emacs.el

+ 13
- 1
emacs.el View File

@@ -1103,6 +1103,7 @@ THEM are function and its args."
"--inline-info " "--inline-info "
"--cycle " "--cycle "
"--reverse " "--reverse "
"--multi "
"--prompt=\"[`pwd`]> \" ")) "--prompt=\"[`pwd`]> \" "))


(set-variable 'fuzzy-finder-default-input-command (set-variable 'fuzzy-finder-default-input-command
@@ -1130,6 +1131,12 @@ THEM are function and its args."
"| " "| "
"cut -b3-")))) "cut -b3-"))))


(add-hook 'fuzzy-finder-init-hook
(lambda ()
(when (and (boundp 'company-mode)
company-mode)
(company-mode -1))))

(defun my-fuzzy-finder-or-find-file () (defun my-fuzzy-finder-or-find-file ()
"Call `fuzzy-finder' if usable or call `find-file'." "Call `fuzzy-finder' if usable or call `find-file'."
(declare (interactive-only t)) (declare (interactive-only t))
@@ -1159,7 +1166,12 @@ THEM are function and its args."
(back-to-indentation))))))) (back-to-indentation)))))))
(define-key ctl-x-map "S" 'my-fuzzy-finder-ripgrep-lines) (define-key ctl-x-map "S" 'my-fuzzy-finder-ripgrep-lines)


;; (fuzzy-finder :command "selecta")
;; (set-variable 'fuzzy-finder-default-command "selecta")
;; (set-variable 'fuzzy-finder-default-command "peco")
;; (set-variable 'fuzzy-finder-default-command "percol")
;; (set-variable 'fuzzy-finder-default-command "fzy")
;; (set-variable 'fuzzy-finder-default-command "sk --ansi --no-hscroll --reverse")
;; (set-variable 'fuzzy-finder-default-command "pick")


;; recently ;; recently




Loading…
Cancel
Save