Pārlūkot izejas kodu

Add fzf configuration

master
10sr pirms 5 gadiem
vecāks
revīzija
f94b6dc356
Parakstījis: 10sr GPG atslēgas ID: 7BEC428194130EB2
1 mainītis faili ar 8 papildinājumiem un 8 dzēšanām
  1. +8
    -8
      emacs.el

+ 8
- 8
emacs.el Parādīt failu

@@ -732,14 +732,14 @@ found, otherwise returns nil."
;; file handling

;; Cannot goto directory from fzf
'(when (autoload-eval-lazily 'fzf)
;; Too slow!
;; (set-variable 'fzf/executable "sk")
;; (set-variable 'fzf/args "--color bw --print-query")
;; Modified from hardcoded default to include directories
(let ((defcmd "set -o pipefail; command find -L . -mindepth 1 \\( -path '*/\\.*' -o -fstype 'sysfs' -o -fstype 'devfs' -o -fstype 'devtmpfs' -o -fstype 'proc' \\) -prune -o -print 2> /dev/null | cut -b3-"))
(shell-command-to-string defcmd))
(define-key ctl-x-map (kbd "C-f") 'fzf))
(when (autoload-eval-lazily 'fzf)
;; Too slow!
;; (set-variable 'fzf/executable "sk")
;; (set-variable 'fzf/args "--color bw --print-query")
;; Modified from hardcoded default to include directories
(let ((defcmd "set -o pipefail; command find -L . -mindepth 1 \\( -path '*/\\.*' -o -fstype 'sysfs' -o -fstype 'devfs' -o -fstype 'devtmpfs' -o -fstype 'proc' \\) -prune -o -print 2> /dev/null | cut -b3-"))
(setenv "FZF_DEFAULT_COMMAND" defcmd))
(define-key ctl-x-map (kbd "C-f") 'fzf))

(when (safe-require-or-eval 'recently)
(recently-mode 1))


Notiek ielāde…
Atcelt
Saglabāt