This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/layers/+tools/fasd/packages.el

30 lines
751 B
EmacsLisp
Raw Normal View History

(setq fasd-packages
2015-01-03 16:08:11 +00:00
'(
fasd
))
2015-01-03 16:08:11 +00:00
(defun fasd-find-file-only ()
(interactive)
(fasd-find-file -1))
(defun fasd-find-directory-only ()
(interactive)
(fasd-find-file 1))
2015-01-03 16:08:11 +00:00
(defun fasd/init-fasd ()
2016-04-05 10:52:54 +00:00
"initializes fasd-emacs and adds a key binding to `SPC f z'"
2015-01-03 16:08:11 +00:00
(use-package fasd
:init
(progn
(global-fasd-mode 1)
(spacemacs/declare-prefix "fa" "fasd-find")
(spacemacs/set-leader-keys "fad" 'fasd-find-directory-only)
(spacemacs/set-leader-keys "faf" 'fasd-find-file-only)
(spacemacs/set-leader-keys "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)
)
)
)