Parcourir la source

Update fuzzy-finder vars

master
10sr il y a 4 ans
Parent
révision
651c210055
Signé par: 10sr ID de la clé GPG: 7BEC428194130EB2
1 fichiers modifiés avec 5 ajouts et 5 suppressions
  1. +5
    -5
      emacs.el

+ 5
- 5
emacs.el Voir le fichier

@@ -416,7 +416,7 @@ Otherwize hook it."
(setq-default major-mode 'text-mode)
(setq next-line-add-newlines nil)
(setq kill-read-only-ok t)
(setq truncate-partial-width-windows nil) ; when splitted horizontally
;; (setq truncate-partial-width-windows nil) ; when splitted horizontally
;; (setq-default line-spacing 0.2)
(setq-default indicate-empty-lines t) ; when using x indicate empty line
;; (setq-default tab-width 4)
@@ -1096,9 +1096,9 @@ THEM are function and its args."

;; fuzzy-finder

(set-variable 'fuzzy-finder-default-command
(concat "fzf "
"--ansi "
(set-variable 'fuzzy-finder-executable "fzf")
(set-variable 'fuzzy-finder-default-arguments
(concat "--ansi "
"--color='bg+:-1' "
"--inline-info "
"--cycle "
@@ -1163,7 +1163,7 @@ THEM are function and its args."
(find-file (plist-get result :file))
(when (plist-get result :linenumber)
(goto-char (point-min))
(forward-line (- (string-to-number (plist-get result :linenumber)) 1))
(forward-line (1- (string-to-number (plist-get result :linenumber))))
(back-to-indentation)))))))
(define-key ctl-x-map "S" 'my-fuzzy-finder-ripgrep-lines)



Chargement…
Annuler
Enregistrer