|
|
|
@ -219,6 +219,7 @@ |
|
|
|
(defun helm-prelude () |
|
|
|
"Preconfigured `helm'." |
|
|
|
(interactive) |
|
|
|
(condition-case nil |
|
|
|
(if (projectile-project-root) |
|
|
|
;; add project files and buffers when in project |
|
|
|
(helm-other-buffer '(helm-c-source-projectile-files-list |
|
|
|
@ -228,7 +229,9 @@ |
|
|
|
helm-c-source-buffer-not-found) |
|
|
|
"*helm prelude*") |
|
|
|
;; otherwise fallback to helm-mini |
|
|
|
(helm-mini))) |
|
|
|
(helm-mini)) |
|
|
|
;; fall back to helm mini if an error occurs (usually in projectile-project-root) |
|
|
|
(error (helm-mini)))) |
|
|
|
|
|
|
|
;; shorter aliases for ack-and-a-half commands |
|
|
|
(defalias 'ack 'ack-and-a-half) |
|
|
|
|