spacemacs/layers/+tools/fasd/packages.el
justbur 6eab954afe Use + instead of ! for layer categories
Helm seems to treat "!" specially in pattern matching, so having a ! in
the pattern string when traversing directories is problematic. This
change fixes #2737, because as far as I can tell "+" has no special
meaning in a helm pattern.

Of course, we can choose a different character, but I'm fond of "+" as
representing "more layers here".
2015-09-11 00:13:51 -04:00

30 lines
733 B
EmacsLisp

(setq fasd-packages
'(
fasd
))
(defun fasd-find-file-only ()
(interactive)
(fasd-find-file -1))
(defun fasd-find-directory-only ()
(interactive)
(fasd-find-file 1))
(defun fasd/init-fasd ()
"initializes fasd-emacs and adds a key binding to <SPC f z>"
(use-package fasd
:init
(progn
(global-fasd-mode 1)
(spacemacs/declare-prefix "fa" "fasd-find")
(evil-leader/set-key "fad" 'fasd-find-directory-only)
(evil-leader/set-key "faf" 'fasd-find-file-only)
(evil-leader/set-key "fas" 'fasd-find-file)
;; we will fall back to using the default completing-read function, which is helm once helm is loaded.
(setq fasd-completing-read-function 'nil)
)
)
)