emacsorphanage / helm-swoop

Efficiently hopping squeezed lines powered by Emacs helm interface
GNU General Public License v3.0
689 stars 55 forks source link

helm-multi-swoop buffers by major-mode #68

Closed ajsteven130 closed 9 years ago

ajsteven130 commented 9 years ago

Added a set of functions that automatically apply buffers of a certain major-mode to helm-multi-swoop. This allows us to use helm-multi-swoop without selecting each buffer individually and instead allowing them to be automatically selected by major-mode.

This commit defines 4 new functions get-buffers-matching-mode, helm-multi-swoop-by-mode, helm-multi-swoop-org, and helm-multi-swoop-current-mode. Now, we can automatically helm-multi-swoop all org buffers, or all buffers in the same major-mode as the current buffer. Users can easily define new mode specific helm-multi-swoops by:

(defun helm-multi-swoop-MAJOR-MODE () "applies all MAJOR-MODE buffers to helm-multi-swoop" (interactive) (helm-multi-swoop-by-mode 'MAJOR-MODE))

ShingoFukuyama commented 9 years ago

@ajsteven130 Thank you for the smart functions :+1: